You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/06/29 11:02:57 UTC
[I] Migrate common.ai provider to pydantic-ai 2.x and remove the <2 cap [airflow]
potiuk opened a new issue, #69122:
URL: https://github.com/apache/airflow/issues/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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Migrate common.ai provider to pydantic-ai 2.x and remove the <2 cap [airflow]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil closed issue #69122: Migrate common.ai provider to pydantic-ai 2.x and remove the <2 cap
URL: https://github.com/apache/airflow/issues/69122
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org