Challenge

Claude Agents SDK Perinatal Psychiatry Safety Review

Perinatal mental health clinicians face complex diagnostic and liability landscapes requiring strict clinical decision support. Build a Claude Agents SDK application with extended thinking to evaluate electronic health records for postpartum risk indicators and generate liability risk reviews. Achieve 100 percent adherence to clinical safety guidelines.

Data ScienceHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Develop a deep reasoning perinatal clinical review agent using Anthropic Claude Agents SDK with extended thinking to identify postpartum psychiatric risks.

Delivery guide

How work is evaluated

Evaluation

Evaluates risk stratification accuracy, safety escalation compliance, and reasoning trace completeness.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

safety_escalation_pass

Verifies that acute risk indicators trigger immediate escalation flag.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

risk_tier_accuracy

Accuracy of assigned risk tier compared to expert consensus. • target: 0.95 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Configure Claude Agents SDK agent with extended thinking budget for deep medical reasoning

  • Parse multi-visit EHR progression notes to identify subtle postpartum mood and psychosis red flags

  • Implement safety guardrails enforcing critical escalation protocols for acute risk flags

  • Generate structured clinical risk summaries with actionable intervention checklists

Resources and assets

Reference links and supporting material

Dataset notes

Synthetic clinical vignettes detailing perinatal psychiatric evaluations with annotated risk levels and safety escalation flags.

How this agent runs

Evaluates risk stratification accuracy, safety escalation compliance, and reasoning trace completeness.

Challenge input

JSON containing patient_history_text and visit_notes array

Claude Agents SDK

Required framework for deep reasoning agent implementations.

Claude 3.7 Sonnet

Supports extended thinking mode for complex differential diagnosis.

Evaluated output

JSON with risk_tier, acute_escalation_required, risk_factors, and clinical_plan

Checks for
  • Verifies that acute risk indicators trigger immediate escalation flag.
  • Accuracy of assigned risk tier compared to expert consensus. • target: 0.95 • range: 0-1
Proof of success
  • Benchmark: PerinatalSafety-Bench
  • Risk Tier Accuracy target: 0.95
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox (unavailable on Versalist)
View technical recipe

Configured tools

Action Space
  • Lovable · Required
  • Protecto · Optional
Policy Serving
  • DeepSeek R1 · Optional

Evaluation contract

  • safety_escalation_pass · Weight 1
  • risk_tier_accuracy · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Claude Agents SDK Perinatal Psychiatry Safety Review