File size: 346 Bytes
0e02b97
 
 
 
 
 
 
 
bedb8e2
 
 
0e02b97
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from __future__ import annotations

import asyncio

from src.chat import ChatSession


async def _main() -> None:
    async with ChatSession() as chat:
        answer = await chat.chat("What is 10 + 23?")
        print("\n>>>", answer)


if __name__ == "__main__":
    try:
        asyncio.run(_main())
    except KeyboardInterrupt:
        pass