feat(agent): max_iterations joins the reserved agent-node inputs - #65
Merged
Conversation
A workflow payload can now carry the iteration budget the way it carries context, model, and agent_id: a positive-integer max_iterations input overrides the arena config; absent keeps the configured or default cap.
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.
The agent node reserves the inputs context, model, and agent_id; the iteration budget was the one arena dial with no runtime carrier, so a workflow-lowered agent node always ran at the configured or default cap regardless of what the operator dialed.
max_iterations is now the fourth reserved input: a positive integer overrides arena.max_iterations for the run; anything else is rejected as input validation; absent keeps existing behavior. It renders no prompt tag, same as the other reserved carriers.
Tests: 961 sqlite suite green (reserved-input unit cases extended, plus a validation case).