Back to prompt library
Pydantic AI Agent Setup
Linked challenge: Johor-Batam Truck Ferry Logistics Scheduling Agent with Pydantic AI
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Using `pydantic_ai`, define an `Agent` returning a validated `RouteItinerary` Pydantic model. Use `@agent.tool` to inject live port delay status.