Repository navigation
Fix stale Common AI docs and add a guide to writing a toolset - #74904
Merged
Merged
Conversation
Correct statements in the Common AI provider docs that do not match what the provider does, found while testing 1.0.0rc1 (apache#74741): - Supported services: list every shipped sandbox backend, only the managed-agent services a provider hook implements, Azure Blob Storage and GCS for DataFusion, and System One servers for the pydanticai connection. - Changelog: a full get_schema result has no "truncated" key, so callers read it with result.get("truncated"). - Install lines: the Anthropic, Strands and ADK guides and the DataFusion toolset need the sql extra for sqlglot. - New guide for subclassing AirflowToolset and implementing execute_tool.
The example now constrains package names and versions with a pattern, so the model cannot point the HTTP call at another path on the host, and gives the blocking request a 30-second timeout, since run_blocking serializes every blocking call in the process. The guide also says what a changed toolset id costs a durable retry: every step from that toolset's first call on runs again.
potiuk
approved these changes
Oct 17, 2026
potiuk
left a comment
Member
There was a problem hiding this comment.
Two of the provider metadata tests fail in every Compat, Non-DB and LowestDeps job, and both failures come from this PR. The suggestions below fix them. rc2 of 1.0.0 is already cut, so this will ship in 1.0.1.
Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting
Co-authored-by: Jarek Potiuk <[email protected]>
…er_info.py Co-authored-by: Jarek Potiuk <[email protected]>
Co-authored-by: Jarek Potiuk <[email protected]>
1 task done
Member
Member
|
Ah I see you just merged it :) |
1 task done
potiuk
added a commit
that referenced
this pull request
Oct 17, 2026
1 task done
potiuk
added a commit
to potiuk/airflow
that referenced
this pull request
Oct 17, 2026
…he#74935 The entry merged in apache#74937 cited apache#74935, which was closed in favour of apache#74904 before this fix could land through it; the fix ships through apache#74939. apache#74937 itself goes in the excluded block. Generated-by: Claude Opus 5
potiuk
added a commit
that referenced
this pull request
Oct 17, 2026
…#74939) * Keep the custom-toolset example's version from changing the PyPI path The writing-a-toolset guide says the example's pattern constraints keep a name or version from changing the URL the hook calls, but the version pattern accepted "." and "..", which step the request onto another PyPI path. It now has to start with a letter or digit, like the name pattern. Generated-by: Claude Opus 5 * Point the 1.0.0 changelog entry at this PR instead of the closed #74935 The entry merged in #74937 cited #74935, which was closed in favour of #74904 before this fix could land through it; the fix ships through #74939. #74937 itself goes in the excluded block. Generated-by: Claude Opus 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes docs statements in the Common AI provider that don't match what the provider does. Each one turned up while testing 1.0.0rc1 (#74741), and each was rechecked against
mainbefore editing.BedrockAgentCoreHook(amazon) andAgentEngineHook(google) implement the managed-agent contract onmain. The DataFusion row gains Azure Blob Storage (Add Azure Blob Storage support to the DataFusion object storage layer #73374) and GCS, whichcommon.sql's DataFusion object-store providers support.pydanticaiconnection'sexternal-servicesinprovider.yaml. The supported-services page is generated from that list, anddecision_models.rstdocuments thesystem-one:prefix.get_provider_info.pyis regenerated.get_schemanote. It said "checktruncatedfirst". A full result has notruncatedkey, soresult["truncated"]raisesKeyErroron every table that isn't summarized. It now saysresult.get("truncated").SQLToolset, which importssqlglotfrom this provider'ssqlextra. Following any of them in a fresh environment failed withModuleNotFoundError: No module named 'sqlglot'.DataFusionToolsethas the same import guard, so its page now names both extras.toolsets/custom.rst). Until now, subclassingAirflowToolsetand implementingexecute_tool(Makeexecute_toolthe public methodAirflowToolsetsubclasses implement #73938) was documented only in docstrings. The guide uses a new example Dag, a small toolset over PyPI's JSON API throughHttpHook. It coversid,get_tools,execute_tool,agent_template_fields,replayable, which exceptions reach the model and which fail the task,run_blocking, and using the toolset from other frameworks. The JSON output and retry prompt shown on the page come from a run of the toolset against pypi.org. Like everything not on the stability page's stable list, the page is marked experimental.README.rst'shtt pstypo is left alone. The release-prep README regeneration rewrites the whole file from a template that has the correct URL.The durable-execution items from the same testing are fixed in code in a separate PR, so the 1.0.0 changelog's durable note stays as it is: the code change makes it accurate.