Troubleshooting
Common/known issues are shown below with associated solutions.
Jupyter Notebooks
If you're running pydantic-ai
in a jupyter notebook, you might consider using nest-asyncio
to manage conflicts between event loops that occur between Jupyter's event loops and pydantic-ai
's.
Before you execute any agent runs, do the following:
import nest_asyncio
nest_asyncio.apply()