Fast, responsive agent server.
Note
This library is in early development and subject to change.
The server that powers agent-tui. It is a general server that can be used to power agent driven experiences.
The goals of this server are to make interacting with agents feel more responsive.
Start the server:
uv run agent-server --host 0.0.0.0 --port 8001 --reloadConnect to the WebSocket and send a message:
import asyncio
import json
import websockets
async def main():
async with websockets.connect("ws://127.0.0.1:8000/agent") as ws:
await ws.send(json.dumps({"type": "user_message", "content": "Hello!"}))
async for message in ws:
print(json.loads(message))
asyncio.run(main())See scripts/ws_client.py for a full interactive client.