setup().
Install
Python
Structured Agent With Tools
Python
What To Look For
- Agent run spans from Pydantic AI
- An outer AGENT span with
agent.id=weather-agentwhen you use the wrapper - Tool spans for
get_weather - Model spans from the provider used by Pydantic AI
- Structured
WeatherReportoutput in the captured span data