-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Thanks for providing examples of smolagents.
In the context of multi-agents:
Do you have experience passing additional args to a manager agent, such as when a code agent needs them for tool arguments?
For example, with a single agent you can do the following:
single_agent= CodeAgent(
tools=[<tool that needs specific args>],
model=llm,
)
single_agent.run(input, additional_args=<dict with your args>)
But if you pass it to a manager agent it does not work:
single_agent= CodeAgent(
tools=[<tool that needs specific args>],
model=llm,
)
managed_agent = ManagedAgent(
agent=single_agent,
name="managed_agent",
)
manager_agent = CodeAgent(
tools=[]
model=llm,
managed_agents=[managed_agent],
)
manager_agent.run(input, additional_args=<dict with your args>)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels