Skip to main content

WebSocket translator for LiveKit Agents Adapter — connect any agent service to LiveKit

Project description

livekit-agents-adapter-websocket

WebSocket translator for livekit-agents-adapter. Connect any remote agent service to LiveKit via a persistent WebSocket connection.

Installation

pip install livekit-agents-adapter-websocket

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_agents_adapter_websocket-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file livekit_agents_adapter_websocket-0.1.1.tar.gz.

File metadata

File hashes

Hashes for livekit_agents_adapter_websocket-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0c03487d69952ba1e90d42230b8326e14dc545f34e0e27f18482b5566687f5d
MD5 fbf7d2d1be70e9a7fb1c5466d2f4d562
BLAKE2b-256 555801de689852ceef005b5ab0178364af65e3cb2de041a335d66de6dc4f1c31

See more details on using hashes here.

File details

Details for the file livekit_agents_adapter_websocket-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_agents_adapter_websocket-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec6c147a8d2b9fd1acad62c3a7cf7b805ffa50ac6b394ef606654b6d9ce64839
MD5 562addee5ea58953e32e4cdbdb2d47d8
BLAKE2b-256 c72a2551927c191836576346f7732a9d566d9001503b8aa008125f60b2bbeb85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page