llmOS-Agent / run.py
tech-envision
Add user-based session tracking
bf45c7d
raw
history blame
362 Bytes
from __future__ import annotations
import asyncio
from src.chat import ChatSession
async def _main() -> None:
async with ChatSession(user="demo_user") as chat:
answer = await chat.chat("What is 10 + 23?")
print("\n>>>", answer)
if __name__ == "__main__":
try:
asyncio.run(_main())
except KeyboardInterrupt:
pass