Ryan Sweet 89db8b12f1 Improving the readme and renaming examples dir (#218)
* Improving the readme and renaming examples dir

* fix ci

* updating name

* nuance the wording
2024-07-15 15:24:31 -07:00

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())