LiveKit LLM plugin that delegates to ConversationEngine. This module provides VoicetestLLM, a LiveKit-compatible LLM that uses the same ConversationEngine as the test runner. This ensures tests and live calls behave identically.
# Source: https://github.com/voicetestdev/voicetest | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""LiveKit LLM plugin that delegates to ConversationEngine.
This module provides VoicetestLLM, a LiveKit-compatible LLM that uses
the same ConversationEngine as the test runner. This ensures tests and
live calls behave identically.
"""
from __future__ import annotations
import asyncio
from collections.abc import Callable
import sys
from livekit.agents import llm as livekit_llm
from livekit.agents.llm.llm import APIConnectOptions
from voicetest.engine.conversation import ConversationEngine
class VoicetestLLM(livekit_llm.LLM):
"""LiveKit LLM that delegates to ConversationEng
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key