mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-23 00:42:54 +00:00

* Improving the readme and renaming examples dir * fix ci * updating name * nuance the wording
25 lines
505 B
Python
25 lines
505 B
Python
import asyncio
|
|
import logging
|
|
import os
|
|
|
|
from agnext.worker.worker_runtime import WorkerAgentRuntime
|
|
from app import build_app
|
|
|
|
|
|
async def main() -> None:
|
|
runtime = WorkerAgentRuntime()
|
|
await runtime.setup_channel(os.environ["AGENT_HOST"])
|
|
|
|
await build_app(runtime)
|
|
|
|
# just to keep the runtime running
|
|
try:
|
|
await asyncio.sleep(1000000)
|
|
except KeyboardInterrupt:
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
asyncio.run(main())
|