mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-19 23:11:22 +00:00

* add writer impl * add graphic designer * add worker and auditor, remove writer * add worker, add simple test main
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())
|