mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-14 02:34:56 -05:00
Agent factory can be async (#247)
This commit is contained in:
@@ -30,7 +30,7 @@ class Printer(TypeRoutedAgent):
|
||||
async def main() -> None:
|
||||
runtime = SingleThreadedAgentRuntime()
|
||||
await build_app(runtime)
|
||||
runtime.register("Printer", lambda: Printer())
|
||||
await runtime.register("Printer", lambda: Printer())
|
||||
|
||||
ctx = runtime.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user