Skip to content

Reference Integrations

Three small, runnable examples under examples/reference-integrations/ in the monorepo. Each uses only the Runtime SDK (no internal engine imports), synthetic data only, and demonstrates a distinct runtime outcome.

A. Discharge Summary Agent

Uses the engine's shipped discharge-summary-agent and submits a medication recommendation that cites no supporting source. medication_requires_review fires — as it does for any medication recommendation regardless of evidence — landing the session in waiting_for_human_review. The example then approves it and retrieves the replay.

bash
npm run dev:engine
npm run dev --workspace=examples/reference-integrations/discharge-summary

Outcome: require_human_review → approved → completed.

B. Radiology Follow-up Agent

Activates the engine's seeded radiology-follow-up-agent (registered draft, with no backing adapter — it exists to demonstrate the lifecycle gate) and submits an evidence-supported recommendation: "Repeat CT imaging in three months," citing a real retrieved source. Demonstrates the engine confirming the task is allowed for this agent, that the claim is evidence-supported, and whether review is required.

bash
npm run dev:engine
npm run dev --workspace=examples/reference-integrations/radiology-followup

Outcome: allowcompleted directly, no review required — this output is a synthetic demonstration only and is not medical advice.

C. Clinical Documentation Agent

A lower-risk documentation workflow. Registers a new example agent that reuses the existing discharge_summary task type (no new task type or policy was added — the platform brief explicitly avoids that unless genuinely necessary, and it wasn't here) and submits a clean, fully grounded output: no medication recommendation, no unsupported claim, discharge instructions present. No seeded policy triggers.

bash
npm run dev:engine
npm run dev --workspace=examples/reference-integrations/clinical-documentation

Outcome: allowcompleted directly, at low computed risk.

Comparing the three

A. Discharge SummaryB. Radiology Follow-upC. Clinical Documentation
AgentShipped, activeSeeded draft → activatedNewly registered
Task typedischarge_summaryradiology_follow_up_recommendationdischarge_summary
Medication recommendationYes (no source)NoNo
Claim evidencen/aSupportedSupported
Control actionrequire_human_reviewallowallow
Human reviewYesNoNo

Next

Developer Platform v1 — Clinical Agent Runtime Control Platform