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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
