Back to Prompt Library
implementation
Pydantic AI Trial Matcher Agent Setup
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Anti-Inflammatory Clinical Trial Matching Triage with Pydantic AI
Format
Code-aware
Lines
3
Sections
1
Linked challenge
Anti-Inflammatory Clinical Trial Matching Triage with Pydantic AI
Prompt source
Original prompt text with formatting preserved for inspection.
3 lines
1 sections
No variables
0 checklist items
Build a type-safe agent using Pydantic AI and OpenHands to match patients for anti-inflammatory cardiovascular trials. Show initial imports: from pydantic_ai import Agent, ModelRetry from pydantic import BaseModel
Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.