Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 2611165

Browse files
committed
small fix in agent_system class
1 parent c29b871 commit 2611165

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

litemultiagent/core/agent_system.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ def __init__(self, main_agent_config, system_config: Dict[str, Any]) -> None:
2525

2626
# TODO: add shared_memory
2727
# TODO: add shared_context
28+
# set up agent hierarchy
29+
agent_manager = AgentManager()
30+
self.main_agent = agent_manager.get_agent(main_agent_config)
2831

32+
# set up agent system shared config
2933
# create shared_config for agents to share
3034
self.shared_config = {
3135
"task_id": 0,
@@ -36,10 +40,6 @@ def __init__(self, main_agent_config, system_config: Dict[str, Any]) -> None:
3640
"model_name": system_config["model_name"],
3741
"tool_choice": system_config["tool_choice"]
3842
}
39-
40-
41-
agent_manager = AgentManager()
42-
self.main_agent = agent_manager.get_agent(main_agent_config)
4343
self.main_agent.set_shared_config(self.shared_config)
4444

4545
def execute(self, task: str):

0 commit comments

Comments
 (0)