Back to prompt library
Initialize Claude Agents SDK and Pydantic Schema
Linked challenge: Cyber Threat Intelligence Triage Agent using Claude Agents SDK and Pydantic AI
Prompt source
planning1 lines1 sectionsNo variables0 checklist items
Import Agent from anthropic_agents or claude_agent_sdk and Agent from pydantic_ai. Define a structured output class `ThreatReport` using Pydantic, specifying severity, confidence_score, and mitigation_action.