Agent Framework plugin for Ojin avatars.
pip install livekit-plugins-ojinfrom livekit.agents import AgentSession
from livekit.plugins import ojin
avatar = ojin.AvatarSession(
api_key="your-api-key",
config_id="your-config-id",
)
# In your agent entrypoint function:
await avatar.start(agent_session, room)See the examples for a complete working implementation.
OJIN_API_KEY: Your Ojin API keyOJIN_CONFIG_ID: Your Ojin configuration IDOJIN_WS_URL: WebSocket URL (optional, defaults towss://models.ojin.ai/realtime)