Skip to content

Repository files navigation

agent-server

Fast, responsive agent server.

uv ty License: MIT

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.

Usage

Start the server:

uv run agent-server --host 0.0.0.0 --port 8001 --reload

Connect 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.

Documentation

Documentation

About

The server that powers agent-tui

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages