XAIPlugin (xai/__init__.py)

livekit/agents · livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/__init__.py · python · Apache-2.0
voice, Voice / Speech

LiveKit plugin providing xAI tools and models for agents.

# Source: https://github.com/livekit/agents | 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.
"""xAI plugin for LiveKit Agents"""

from . import realtime, responses
from .stt import STT
from .tools import FileSearch, WebSearch, XSearch
from .tts import TTS
from .types import GrokRealtimeModels, GrokVoices, STTLanguages, TTSLanguages
from .version import __version__

__all__ = [
    "realtime",
    "responses",
    "WebSearch",
    "XSearch",
    "STT",
    "STTLanguages",
    "TTS",
    "TTSLanguages",
    "FileSearch",
    "GrokRealtimeModels",
    "GrokVoices",
    "__version__",
]


from livekit.agents import Plugin

from .log import logger


class XAIPlugin(Plugin):
    def __ini

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key