Skip to content

Fix max_steps parsing for agent execute #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2025

Conversation

miguelg719
Copy link
Collaborator

@miguelg719 miguelg719 commented Aug 17, 2025

why

config.max_steps was overriding the user provided max_steps. This caused the values passed on execute to be disregarded, and the values (or default value) in the agent constructor to be the predominant one.

what changed

Updated the execute function to take the parameter max_steps from its arguments and only fall back to the config if value is None

test plan

@miguelg719 miguelg719 marked this pull request as ready for review August 17, 2025 17:35
@filip-michalsky filip-michalsky self-assigned this Aug 18, 2025
@miguelg719 miguelg719 merged commit 51ca053 into main Aug 18, 2025
13 checks passed
@github-actions github-actions bot mentioned this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants