AgentAPI принимает base_url (по идее ws://host:port) и сам дописывает нужный эндпоинт

This commit is contained in:
Егор Кандрушин 2026-04-19 15:24:14 +03:00
parent 8256453bbf
commit 4c3e7253c7
3 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ from lambda_agent_api.server import MsgEventTextChunk, MsgEventToolCallChunk, Ms
async def main():
chat_id = input("Chat id: ") or 0
api = AgentApi("agent-1", "ws://localhost:8000/agent_ws/", chat_id=chat_id)
api = AgentApi("agent-1", "ws://localhost:8000/", chat_id=chat_id)
try:
await api.connect()