Back to prompt library
Pydantic AI Agent Initialization
Linked challenge: Type-Safe Senior Living Site Selection and Care Demand Agent with Pydantic AI
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Write a Python script using `pydantic_ai` (`from pydantic_ai import Agent`) with a result type defined by a Pydantic `BaseModel` called `SiteEvaluation`. Evaluate senior housing location suitability based on zip code demographic inputs.