mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 22:19:28 +00:00
fix(agent): Remove resources of planner agent (#1540)
This commit is contained in:
@@ -291,21 +291,13 @@ class MultiAgents(BaseComponent, ABC):
|
||||
else:
|
||||
raise ValueError(f"Unknown Agent Team Mode!{team_mode}")
|
||||
manager = (
|
||||
await manager.bind(context)
|
||||
.bind(llm_config)
|
||||
.bind(depend_resource)
|
||||
.bind(agent_memory)
|
||||
.build()
|
||||
await manager.bind(context).bind(llm_config).bind(agent_memory).build()
|
||||
)
|
||||
manager.hire(employees)
|
||||
recipient = manager
|
||||
|
||||
user_proxy: UserProxyAgent = (
|
||||
await UserProxyAgent()
|
||||
.bind(context)
|
||||
.bind(depend_resource)
|
||||
.bind(agent_memory)
|
||||
.build()
|
||||
await UserProxyAgent().bind(context).bind(agent_memory).build()
|
||||
)
|
||||
if is_retry_chat:
|
||||
# retry chat
|
||||
|
Reference in New Issue
Block a user