“pydantic-ai”
Decoupling Agent Triggers from Agent Execution with Task Queues
Synchronous agent invocation inside a webhook handler breaks under real traffic. Put a task queue between 'something happened' and 'the agent runs', and get the queue semantics, payload design, and retry split right.
Building the Same AI Agent across Three SDKs: Pydantic AI, LangGraph, and CrewAI
Architectural comparison and code migration guide implementing a research assistant agent across Pydantic AI, LangGraph, and CrewAI.
Escalation Ladders for AI Agents: Designing Human-in-the-Loop Safeguards
Architecting tiered escalation paths for autonomous financial and payment agents when transaction limits, fraud scores, or confidence thresholds trigger human review.
AI Patient Intake Agents: Transforming Clinical Forms into HIPAA-Compliant EHR Data
Processing handwritten/PDF patient medical intake questionnaires into FHIR/EHR JSON models with strict Pydantic validation, PII redaction, and zero-data-retention pipelines.
Automating Tax Preparation Workflows with Specialized Multi-Agent Fleets
Multi-agent tax document ingestion (W-2, 1099, 1098), calculation agents, compliance checkers, and audit log generation using Gemini 3 & Pydantic AI.
Building an E-Commerce Cart Agent with Structured Tool Outputs
Cart tools that return free text push JSON parsing into your agent prompt. Build a Pydantic AI cart agent where add, update, remove, price, and checkout-prepare each return a validated Pydantic model, with recoverable validation errors and TestModel tests.
Compliance as an Agent Task: Automating Policy Checks with Verifier Agents
Build verifier agents that check every proposed agent action against codified policy, with fail-closed defaults, guardrail placement, and eval-backed tests.
Insurance Claims Triage Agents with Structured Classification
Build an intake agent that classifies claims with Pydantic schemas, verifiable evidence, confidence-based escalation, evals, and a full audit trail.
Sharing State Across Agent Boundaries: Context Contracts
Define type-safe context contracts with PydanticAI to share validated state safely across multi-agent handoffs and boundary transitions.
Sanitizing Agent Inputs: Prompt Validation Before Inference
Protect PydanticAI agents against prompt injection, jailbreaks, and malformed inputs using typed input contracts and pre-inference sanitization filters.
Creating Effective File-Based Skills
A comprehensive guide on creating file-based skills for AI agents, covering the structure of SKILL.md and best practices for writing custom scripts.