Add optional input data#4
Merged
Merged
Conversation
b0517d0 to
fe3d60b
Compare
bdd8ff6 to
e513d4f
Compare
lmorchard
added a commit
that referenced
this pull request
May 16, 2026
The hard rejection from the previous commit (be609b6) caused two task failures on the 100-task CI eval (Google Map #4 and ESPN #0): gemini-2.5-flash passes outputSchema:{}, sees the recoverable error, retries with outputSchema:{} again, and after 5 consecutive errors the agent layer aborts the whole task. Soften the guard: when outputSchema is non-null but has no keys, silently treat it as if it were omitted (fall through to the markdown branch). An empty {} schema gave no validation anyway — the structured branch with an empty schema is indistinguishable from the markdown branch. The fall-through is logged via an AGENT_STATUS event so the downgrade is visible in traces. Updated the outputSchema prompt copy: "an empty {} provides no validation and is silently downgraded to a markdown extract" instead of "will be REJECTED with a recoverable error". Test: updated to assert the markdown branch IS called and the status event IS emitted when outputSchema:{} is passed. Previously asserted the recoverable-error shape; that behavior is gone.
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.
You can now pass in input data (a js/json object) which gets used in planning and then is available to the agent as it browses. Also updated the README with examples.