Skip to content

[BUG] example code doesn't work #1431

@fwwucn

Description

@fwwucn

examples\multi_llm_agent.py L42:

agent = CodeAgent(tools=[WebSearchTool()], model=model, stream_outputs=True, return_full_results=True)

Error:

Traceback (most recent call last):
  File "...\smolagents\examples\multi_llm_agent.py", line 42, in <module>
    agent = CodeAgent(tools=[WebSearchTool()], model=model, stream_outputs=True, return_full_results=True)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\smolagents\src\smolagents\agents.py", line 1456, in __init__
    super().__init__(
TypeError: MultiStepAgent.__init__() got an unexpected keyword argument 'return_full_results'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions