kaxil opened a new pull request, #68405: URL: https://github.com/apache/airflow/pull/68405
pydantic-ai deprecated calling `AgentRunResult.usage()` as a method, so every agent run that goes through [`log_run_summary`](https://github.com/apache/airflow/blob/a5ffa6c794a1c4e64bcfa934a44915df9166d6c4/providers/common/ai/src/airflow/providers/common/ai/utils/logging.py#L39) currently emits a `PydanticAIDeprecationWarning` in task logs. This drops the parentheses at the single call site and updates the test mocks to set `.usage` as an attribute instead of a `return_value`. No version-floor bump is needed: the provider floor `pydantic-ai-slim>=1.99.0` already exposes `usage` as a deprecated-callable property (both access forms work there), so property access is valid across the whole supported range. Verified by running `log_run_summary` against a real `AgentRunResult` with `PydanticAIDeprecationWarning` escalated to an error: the property form is clean and the old method-call form raises. -- 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]
