Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2800·smolagents

DOC: zh/examples/multiagents.md imports the removed `ManagedAgent` symbol

Author: zhi-codeCreated Sep 15, 2026Updated Sep 17, 2026
Labelsdocumentation

Problem The Chinese translation of the multi-agent example imports ManagedAgent from smolagents, but that name is no longer exported by the package, so the snippet fails as soon as it is run:

from smolagents import (
    CodeAgent,
    ToolCallingAgent,
    ManagedAgent,
    InferenceClientModel,
    WebSearchTool,
)

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

Location of the documentation

  • File: /smolagents/docs/source/zh/examples/multiagents.md, line 116 (import block spans lines 111–128)
  • URL: https://github.com/huggingface/smolagents/tree/main/docs/source/zh/examples/multiagents.md

Suggested improvement Delete the ManagedAgent line from that import block so it matches the English source.

Additional context (optional)


Checklist

  • I have searched the existing issues and have not found a similar issue.
  • I am willing to work on this issue and submit a pull request. (optional)

Source: huggingface/smolagents

View original on GitHubView discussion on GitHub