Skip to main content
Loading navigation

Define Pydantic AI Agent Architecture

Prompt source

planning1 lines1 sectionsNo variables0 checklist items
Import `pydantic_ai` and set up an Agent with model `anthropic:claude-4-sonnet`. Define a Pydantic model `TelemetryDiagnostic` containing `node_id`, `anomaly_detected`, `severity` (enum: LOW, MEDIUM, HIGH, CRITICAL), `root_cause`, and `recommended_action`. Write the system prompt directing the agent to act as a senior SCADA systems engineer.