Repository navigation
Make Common AI example Dags reach the behaviour they show - #74901
Merged
Merged
Conversation
The tool-approval example's order lookup now reports the parcel lost, so the agent goes on to refund it and the task pauses for approval. The Anthropic tool runner example fails the task on a model refusal instead of returning an empty string. The escalation example raises the bar on ``permanent``, so its ambiguous failure reaches the text model. The retry-policy prompt said "attempt N of max_tries", but max_tries is the retry count, so a task with retries=1 read "attempt 1 of 1" with a retry still left. It now counts the first try. The Anthropic, Strands and ADK examples now install the ``sql`` extra that SQLToolset needs.
kaxil
requested review from
phanikumv and
vatsrahul1001
and removed request for
gopidesupavan
October 17, 2026 12:56
phanikumv
approved these changes
Oct 17, 2026
1 task done
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.
Three Common AI example Dags ran without error in 1.0.0rc1 testing but never reached the behaviour they exist to show when pointed at a real model. They are rendered into the docs through
exampleinclude, so a user copying one sees nothing happen. The same testing turned up a miscount in the retry-policy prompt.example_agent_tool_approval.py: the order lookup said the order was "delivered", so the model declined to refund it and the task never paused for approval. The lookup now says the carrier marked the parcel lost, asexample_agent_tool_judge.pyalready does, so a refund is the obvious next step.example_anthropic_tool_runner.py: on a refusal the runner's final message has no text, and the task succeeded with an empty XCom. The example now checksstop_reason == "refusal"and fails the task.example_llm_retry_policy.py:task_ambiguousis meant to show escalation to the text model, but jev-1.13.0 pickspermanentfor its message every time, at a confidence that sits right at that category's 0.9 bar. In RC testing it scored 0.79 to 0.91, so some runs appliedpermanentand failed the task without escalating.escalating_policynow raises the bar onpermanentto 0.95 and leavessnowflake_policyunchanged. With a text model to ask, a wrongpermanentcosts more than an escalation, and the higher bar also catches the wrongpermanentat 0.90 from the calibration run noted in the example. Scored 13 more times against the same categories, the message pickedpermanentevery time, at 0.79 to 0.86.attempt {try_number} of {max_tries}, butmax_triesis the last try number that may still retry (the task'sretriesuntil it is cleared), so a task withretries=1read "attempt 1 of 1" with a retry still left. In one live run the model's reasoning quoted that as "the retry budget may already be exhausted". The prompt now saysof {max_tries + 1}, the same total core uses in its failure email ("Try {{try_number}} out of {{max_tries + 1}}"). The new test fails on main with "attempt 1 of 1" and "attempt 2 of 1".The Anthropic tool runner, Strands and ADK examples also told users to install only the
anthropicextra, but each usesSQLToolset, which needs thesqlextra. Without it a fresh venv fails withNo module named 'sqlglot'.Related to #74741