Metadata-Version: 2.4
Name: livekit-agents-adapter-websocket
Version: 0.1.1
Summary: WebSocket translator for LiveKit Agents Adapter — connect any agent service to LiveKit
Project-URL: Homepage, https://github.com/guttume/livekit_agents_adapter
Project-URL: Repository, https://github.com/guttume/livekit_agents_adapter
Project-URL: Issues, https://github.com/guttume/livekit_agents_adapter/issues
Project-URL: Changelog, https://github.com/guttume/livekit_agents_adapter/blob/main/CHANGELOG.md
Author-email: Amit Kumar Dubey <guttume@gmail.com>
License: MIT
Keywords: adapter,agents,ai,livekit,voice,websocket
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Communications :: Conferencing
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: livekit-agents-adapter
Description-Content-Type: text/markdown

# livekit-agents-adapter-websocket

WebSocket translator for [livekit-agents-adapter](../livekit-agents-adapter/).
Connect any remote agent service to LiveKit via a persistent WebSocket connection.

## Installation

```bash
pip install livekit-agents-adapter-websocket
```

## Usage

```python
from livekit_agents_adapter import AgentAdapter, AgentAdapterConfig
from livekit_agents_adapter_websocket import WebSocketTranslator

translator = WebSocketTranslator("ws://localhost:8000/ws")

config = AgentAdapterConfig(
    translator=translator,
)

agent = AgentAdapter(
    config=config,
    instructions="You are a helpful assistant.",
)
```

See `examples/websocket_reference_server.py` for a reference WebSocket server implementation.
