mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-12 19:05:17 -05:00
Agent factory can be async (#247)
This commit is contained in:
@@ -191,8 +191,8 @@ async def main() -> None:
|
||||
)
|
||||
]
|
||||
# Register agents.
|
||||
runtime.register("tool_executor", lambda: ToolExecutorAgent("Tool Executor", tools))
|
||||
runtime.register(
|
||||
await runtime.register("tool_executor", lambda: ToolExecutorAgent("Tool Executor", tools))
|
||||
await runtime.register(
|
||||
"tool_use_agent",
|
||||
lambda: ToolUseAgent(
|
||||
description="Tool Use Agent",
|
||||
|
||||
Reference in New Issue
Block a user