翻篇收录说明
翻篇网页快照

Changelog — apache-airflow-providers-common-ai Documentation

https://airflow.apache.org/docs/apache-airflow-providers-common-ai/stable/changelog.html

最近抓取:2026-12-04 17:30:04(北京时间)

最近内容变化:2026-12-02 04:24:55(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

正文摘录

Home Changelog ↑↓ Navigate ⏎ Select Esc Close apache-airflow-providers-common-ai Changelog¶ 1.2.0¶ Release Date: 2026-11-23 Note When every connection of a fallback_conn_ids chain fails, LLMOperator and AgentOperator now raise airflow.providers.common.ai.fallback_exceptions.FallbackChainExhaustedError instead of pydantic-ai’s FallbackExceptionGroup. It subclasses FallbackExceptionGroup, so except clauses and RetryRule(exception=FallbackExceptionGroup) keep matching, and __cause__ is the group the chain raised. LLMRetryPolicy and ClassifierRetryPolicy now also match their fallback_rules against the last connection’s error, and show the model each connection’s error and how many durable journal steps the attempt replayed and recorded. Note @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis and @task.llm_schema_compare now render only the prompt returned by the decorated function inside execute(). Their other template fields (system_prompt, op_args, op_kwargs, …) are rendered once before execute() and are no longer rendered a second time. The returned prompt is still rendered as a Jinja template, and every argument the task is called with, positional ones included, can be referenced in it by name; see the @task.llm documentation for how to include text from function arguments in it. Note run_durably() and run_durably_sync() for the OpenAI Agents SDK no longer return a run that stopped for a tool call that needs approval (needs_approval, or require_approval on an MCP server). On Airflow 3.4+ with a standard provider that has request_input(), a @task or PythonOperator pauses in Required Actions and the run resumes with the reviewer’s answer; otherwise the task fails with UnsupportedToolDeferralError. Earlier versions returned the stopped run with its result.interruptions. Code that approved them with result.to_state() and state.approve() after run_durably_sync() should call Runner.run and handle result.interruptions itself. Note Significant change: output serialization of the LLM operators LLMOperator, @task.llm and LLMFileAnalysisOperator now push a model as a JSON-compatible dict, where 1.1.0 pushed it as a model instance, in these cases: On Airflow 3.3 and later, the model is itself the output, serialize_output is not set, and output_type is one the worker cannot register a class for (a list of output types such as [Summary, int], an output marker, an output function, a TypeAliasType or a NewType). On Airflow 3.3 and later, the model is inside a list, tuple, set or dict in the output and the worker cannot register its class, whether or not serialize_output is set. On Airflow < 3.3, the model is inside a list, tuple, set or dict in the output, whatever the output_type (for example list[MyModel]). When a model inside a list, tuple, set or dict is dumped, the whole output is dumped with it, so a tuple in the output arrives as a list and a date next to the model arrives as a string. A downstream task indexes the dict (result["field"]) instead of using attribute access. As in 1.1.0, a model that is itself the output is dumped with model_dump() when serialize_output=True is set or on Airflow < 3.3. AgentOperator and @task.agent already pushed these models as dicts in 1.1.0. Compared with 1.1.0, when they dump to JSON values, a model that sets serialize_by_alias=True now arrives with its field names (full_name, not fullName), a tuple in the output arrives as a list, and a date next to the model arrives as a string. A model inside a set is now dumped too, and the set arrives as a list. A model that is itself the output and is dumped with model_dump() keeps its aliases, as in 1.1.0. See When a model arrives as a dict. Note Signature change: MCP ``tool_prefix`` The tool_prefix parameter of MCPHook and MCPToolset now defaults to "" and is typed str; in 1.1.0 it defaulted to None and was typed str | None. This changes only the signature and the annotated type, not the behaviour. Features¶ Show common.ai retry policies why each fallback connection failed (#76999) Let SQLToolset agents see table comments and search large schemas; the sql extra now needs common-sql 3.1.0 (#76799) Park HITL reviews between rounds and let durable agent tasks use them (#76916) Let durable agent tasks pause for tool approval (#76882) Let durable agent tasks use toolsets without an id (#76877) Let durable agent tasks run chosen tools on every attempt instead of replaying them; raise pydantic-ai-slim minimum to 2.46.0 (#76864) Push LLM operator models as dicts where the worker cannot register their class, and add tool_prefix to SQLToolset and DataFusionToolset (#74695) Accept '.filtered()', '.prefixed()' and '.renamed()' toolsets in the agent framework adapters (#76752) Pause an OpenAI Agents SDK durable run for tool approval in Required Actions, and fail the task where that is not available (#76785, #76786) Add Ollama model readiness check to PydanticAIHook (#75369) Support multimodal prompts with enable_hitl_review in AgentOperator (#74389) Support fail_on_reject on every LLM approval operator (#74493) Suggest common model providers in the pydanticai connection form (#76053) Show which skills an agent was offered and used in the AI Model tab (#76309, #76541) Bug Fixes¶ Fail the attempt when 'SQLToolset' cannot reach its database (#76783) Fix durable agent retries replaying the same failing tool call on every attempt (#76862) Stop ObjectStorage journal write failures from failing durable tasks (#75916) Fix durable agent tasks failing when a tool returns bytes (#76861) Count replayed tool errors against the retry limit in OpenAI Agents durable runs (#76790) Stop durable agent tasks failing when pydantic-ai 2.66 cannot fingerprint a tool return (#76334) Parse HookToolset :param descriptions by indentation (#76701) Say in the AI Model tab which values are kept in external storage (#76747) Keep SQL deep scan on for custom read-only allowed_types (#76688) Keep CSV quoting in LLMFileAnalysisOperator sample rows (#76389) Keep parallel tool results replayable across retries in OpenAI Agents durable runs (#76015) Key LLM batch and durable Strands state on the task loop iteration (#76201) Render only the returned value in TaskFlow decorators that template it (#76244) Misc¶ Reduce task state store calls made by durable agent tasks (#76863) Name the caller's own MCP client and durable setup in Common AI errors (#76495) Doc-only¶ Correct what clearing a durable agent task replays in common.ai docs (#76860) Correct sbx swap guidance in Common AI sandbox docs (#76879) Split the Common AI sandbox backends page into one page per backend (#76853) Document that the llamaindex and openai extras cannot be installed together (#76503) Add a review loop example Dag for task loops (#76435) Rewrite the OpenAI Agents SDK guide to stand on its own (#76340) 1.1.0¶ Release Date: 2026-11-01 Note Significant change: AgentOperator output serialization The worker cannot register a model class for XCom deserialization when output_type is a list of output types such as [Summary, int], an output marker such as ToolOutput(Summary), an output function, a TypeAliasType or a NewType. For these output types, AgentOperator and @task.agent now push each model in the output as a JSON-compatible dict (model_dump(mode="json")), including models inside a list, tuple or dict. On Airflow < 3.3, the worker registers no model class at all, so a model inside a list, tuple or dict is now pushed as a JSON-compatible dict for every output_type. A top-level model is still dumped with plain model_dump() when serialize_output=True is set or on Airflow < 3.3. The new behaviour changes the type that a downstream task receives after an upgrade. Version 1.0.0 pushed these models as model instances. It dumped a top-level model with plain model_dump() only in HITL review, with serialize_output=True or on Airflow < 3.3. A downstream task loaded a model instance when the model’s class was listed in [core] allowed_deserialization_classes, or on Airflow >= 3.3 when another task in the same Dag declared the class as its output_type. That downstream task now gets a dict and must read result["field"] instead of result.field. In HITL review on Airflow >= 3.3 without serialize_output=True, values such as datetime, date, timedelta, UUID and Decimal in a top-level model now arrive as strings, for example "PT1M30S" for a timedelta. Tuples and sets in that model now arrive as lists. See Structured output and XCom. Warning The following changes affect code written against 1.0.0: PydanticAIHook: when a connection supplies credentials (password or host) and the provider class rejects the resulting keyword arguments (TypeError), the hook now raises ValueError. In 1.0.0 it logged a warning and fell back to environment-variable authentication, which could authenticate as a different identity than the connection. Fix the connection fields for that provider, or remove the credentials from the connection if environment-variable authentication is what you want. MCPHook.get_conn() when optional MCP dependencies are missing, and airflow.providers.common.ai.policies.retry when imported without the Airflow RetryPolicy support (Airflow older than 3.3) now raise AirflowOptionalProviderFeatureException instead of ImportError. It is not an ImportError subclass (it derives from AirflowException), so a Dag that guards the import with except ImportError: as in the 1.0.0 example Dag now fails to parse on those versions. Catch both, importing the exception from airflow.providers.common.compat.sdk (works on Airflow 2.11 and 3.x): from airflow.providers.common.compat.sdk import AirflowOptionalProviderFeatureException try: from airflow.providers.common.ai.policies.retry import LLMRetryPolicy except (ImportError, AirflowOptionalProviderFeatureException): LLMRetryPolicy = None Note LlamaIndexHook and LangChainHook (both experimental, see Stable and experimental features): passing embed_model and llm_model positionally is