Skip to content

Commit

Permalink
Multi agents with manager (#32687)
Browse files Browse the repository at this point in the history
* Add Multi agents with a hierarchical system
  • Loading branch information
aymeric-roucher authored Sep 4, 2024
1 parent d2dcff9 commit 2cb543d
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 52 deletions.
4 changes: 2 additions & 2 deletions src/transformers/agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


_import_structure = {
"agents": ["Agent", "CodeAgent", "ReactAgent", "ReactCodeAgent", "ReactJsonAgent", "Toolbox"],
"agents": ["Agent", "CodeAgent", "ManagedAgent", "ReactAgent", "ReactCodeAgent", "ReactJsonAgent", "Toolbox"],
"llm_engine": ["HfApiEngine", "TransformersEngine"],
"monitoring": ["stream_to_gradio"],
"tools": ["PipelineTool", "Tool", "ToolCollection", "launch_gradio_demo", "load_tool"],
Expand All @@ -45,7 +45,7 @@
_import_structure["translation"] = ["TranslationTool"]

if TYPE_CHECKING:
from .agents import Agent, CodeAgent, ReactAgent, ReactCodeAgent, ReactJsonAgent, Toolbox
from .agents import Agent, CodeAgent, ManagedAgent, ReactAgent, ReactCodeAgent, ReactJsonAgent, Toolbox
from .llm_engine import HfApiEngine, TransformersEngine
from .monitoring import stream_to_gradio
from .tools import PipelineTool, Tool, ToolCollection, launch_gradio_demo, load_tool
Expand Down
Loading

0 comments on commit 2cb543d

Please sign in to comment.