Back to prompt library
Define Pydantic AI Output Model
Linked challenge: Deploy Real-time Anti-Scam Voice Intelligence with Pydantic AI and VAPI
Prompt source
planning1 lines1 sectionsNo variables0 checklist items
Define a Pydantic model `ThreatAssessment` with fields `is_scam`, `threat_category`, `urgency_score`, and `recommended_action`. Instantiate a Pydantic AI Agent enforcing this schema.