Skip to content

Question multi-agent smolagents #1

@simeonwetzel

Description

@simeonwetzel

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>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions