Skip to content

Conversation

@nflo
Copy link
Contributor

@nflo nflo commented Oct 17, 2025

_setup_managed_agents in MultiStepAgent defines a schema for managed_agents.
The schema contains additional_args.
additional_args is not always needed when managed_agents are called and some models don't set it when calling the agent.

When using managed agents I ran into them being called and giving the error
Argument additional_args is required
until the maximum number of steps is exhausted.

Making additional_args nullable in the schema fixes this.

Copy link
Collaborator

@aymeric-roucher aymeric-roucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@aymeric-roucher
Copy link
Collaborator

aymeric-roucher commented Oct 27, 2025

Failing test again linked to tokenizers install in python 3.12, not to this PR

@aymeric-roucher aymeric-roucher merged commit 317b573 into huggingface:main Oct 27, 2025
2 of 3 checks passed
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