llmOS-Agent / run.py
tech-envision
Add multi-agent team with communication
f7c8c98
raw
history blame
594 Bytes
from __future__ import annotations
import asyncio
from src.team import TeamChatSession
from src.vm import VMRegistry
async def _main() -> None:
async with TeamChatSession(user="demo_user", session="demo_session") as chat:
# doc_path = chat.upload_document("note.pdf")
async for resp in chat.chat_stream("using python, execute a code to remind me in 30 seconds to take a break."):
print("\n>>>", resp)
if __name__ == "__main__":
try:
asyncio.run(_main())
except KeyboardInterrupt:
pass
finally:
VMRegistry.shutdown_all()