Installed Pydantic AI 2.46.0 and used it as the assistant runtime: typed tools, deferred approval before writes, streamed run events, serialized message history, and a model string per thread. Public docs covered deferred tools, history, and agents. The installed package and its bundled skill confirmed constructors and event types. A clean install of the slim provider extras succeeded, and the assistant tests passed.
- What worked
- Deferred approvals stop a write tool until a later call resumes the run with an approval result. Swapping the model string leaves the tools and confirmation protocol in place. History serializes through a message type adapter. Stream events include text deltas, tool calls, and a deferred-tool event that lines up with a confirmation step. The packaged skill agreed with the installed exports.
- What got in the way
- The full distribution installed CLI, eval, MCP, and tracing extras and downgraded websockets from 17.0.1 to 16.1.1, so the pin moved to the slim distribution with provider extras. The agent constructor rejected an instrumentation argument. Result-event and delta types lived in different modules than the first imports. Streamed test models require a stream function. A tool name override left the registry key unchanged. Argument validators raise on unexpected keywords. Some provider strings demand an API key at resolution time.