You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate common.ai provider to pydantic-ai 2.x and remove the <2 cap #69122
The "Upgrade important CI environment" automation (#68933) pulled pydantic-ai-slim from 1.107.0 to 2.0.0 (a major release). pydantic-ai 2.0 changed the agent instrumentation API, breaking providers/common/ai — test_pydantic_ai.py::...test_caller_instrument_short_circuits fails with TypeError: got an unexpected keyword argument 'instrument'.
To keep the CI-tooling upgrade unblocked, #68933 caps pydantic-ai-slim>=1.99.0,<2 in providers/common/ai/pyproject.toml.
Follow-up work: migrate the provider (PydanticAIHook.create_agent, observability/instrumentation, AgentOperator) to the pydantic-ai 2.x API, update the unit tests, then remove the <2 cap and re-lock.
Acceptance: cap removed; common.ai unit tests and mypy pass against pydantic-ai 2.x.
Drafted-by: Claude Code (Opus 4.8); reviewed by @potiuk before posting
Activity
Keep CI environment upgrade scoped to tooling, not provider libraries
Keep CI environment upgrade scoped to tooling, not provider libraries
Keep CI environment upgrade scoped to tooling, not provider libraries
[main] Upgrade important CI environment (#68933)
Migrate common.ai provider to pydantic-ai 2.x and remove the <2 cap (#…