Skip to content

Execution Error in Agents recipes #316

@Shrey327

Description

@Shrey327

In the Agents Recipes when i executed the code from "Have several agents collaborate in a multi-agent hierarchy" in colab notebook then in the 6th code cell i got this error:

ImportError: cannot import name 'ManagedAgent' from 'smolagents' (/usr/local/lib/python3.11/dist-packages/smolagents/init.py)

The code in the cell was:

from smolagents import (
CodeAgent,
ToolCallingAgent,
InferenceClientModel,
DuckDuckGoSearchTool
)

model = InferenceClientModel(model_id)

web_agent = ToolCallingAgent(
tools=[DuckDuckGoSearchTool(), visit_webpage],
model=model,
max_iterations=10,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions