Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/livekit/agents
/ types & classes
Types & classes
1,654 in github.com/livekit/agents
⨍
Functions
7,987
◇
Types & classes
1,654
↳
Endpoints
22
↓ 300 callers
Class
LanguageCode
Normalized BCP-47 language identifier. Accepts any common format. Examples:: LanguageCode("english") # → "en" LanguageCode("eng
livekit-agents/livekit/agents/language.py:74
↓ 228 callers
Class
APIConnectionError
Raised when an API request failed due to a connection error.
livekit-agents/livekit/agents/_exceptions.py:103
↓ 182 callers
Class
APIStatusError
Raised when an API response has a status code of 4xx or 5xx.
livekit-agents/livekit/agents/_exceptions.py:48
↓ 129 callers
Class
ToolError
livekit-agents/livekit/agents/llm/tool_context.py:122
↓ 127 callers
Class
AgentSession
livekit-agents/livekit/agents/voice/agent_session.py:209
↓ 101 callers
Class
AgentServer
livekit-agents/livekit/agents/worker.py:296
↓ 98 callers
Class
APITimeoutError
Raised when an API request timed out.
livekit-agents/livekit/agents/_exceptions.py:110
↓ 57 callers
Class
Agent
livekit-agents/livekit/agents/voice/agent.py:38
↓ 54 callers
Class
STT
livekit-plugins/livekit-plugins-assemblyai/livekit/plugins/assemblyai/stt.py:88
↓ 54 callers
Class
ToolContext
Stateless container for a set of AI functions
livekit-agents/livekit/agents/llm/tool_context.py:493
↓ 45 callers
Class
TimedString
A string with optional start and end timestamps for word-level alignment. Attributes: start_time: Word start time in seconds (NOT_GIVEN w
livekit-agents/livekit/agents/types.py:121
↓ 36 callers
Class
DynamicEndpointing
livekit-agents/livekit/agents/voice/endpointing.py:49
↓ 35 callers
Class
APIConnectOptions
livekit-agents/livekit/agents/types.py:81
↓ 35 callers
Class
FakeActions
tests/fake_session.py:131
↓ 35 callers
Class
TTS
livekit-agents/livekit/agents/tts/tts.py:66
↓ 34 callers
Class
Instructions
Instructions that adapt based on the user's input modality (audio vs. text). ``str(self)`` is what providers see when treating this as a plain st
livekit-agents/livekit/agents/llm/chat_context.py:38
↓ 32 callers
Class
ChatContext
livekit-agents/livekit/agents/llm/chat_context.py:398
↓ 25 callers
Class
AudioArrayBuffer
livekit-agents/livekit/agents/utils/audio.py:262
↓ 25 callers
Class
BoundedDict
livekit-agents/livekit/agents/utils/bounded_dict.py:13
↓ 24 callers
Class
APIError
Raised when an API request failed. This is used on our TTS/STT/LLM plugins.
livekit-agents/livekit/agents/_exceptions.py:14
↓ 23 callers
Class
ChatMessage
livekit-agents/livekit/agents/llm/chat_context.py:316
↓ 22 callers
Class
SessionHost
livekit-agents/livekit/agents/voice/remote_session.py:350
↓ 21 callers
Class
FunctionToolCall
livekit-agents/livekit/agents/llm/llm.py:53
↓ 21 callers
Class
RealtimeModel
livekit-agents/livekit/agents/llm/realtime.py:94
↓ 20 callers
Class
Metadata
livekit-agents/livekit/agents/metrics/base.py:8
↓ 20 callers
Class
MyAgent
tests/test_agent_session.py:47
↓ 19 callers
Class
FakeAudioOutput
tests/fake_io.py:35
↓ 18 callers
Class
NotFound
examples/hotel_receptionist/hotel_db.py:463
↓ 18 callers
Class
STT
livekit-agents/livekit/agents/stt/stt.py:145
↓ 17 callers
Class
_ScriptedTransport
Fake transport that structurally satisfies ``_StreamingTurnDetectionTransport``. Behavior is scriptable: ``run`` either sleeps until cancelled, r
tests/test_audio_turn_detector_fallback.py:73
↓ 16 callers
Class
LLM
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py:88
↓ 16 callers
Class
SpeechData
livekit-agents/livekit/agents/stt/stt.py:54
↓ 16 callers
Class
Unavailable
examples/hotel_receptionist/hotel_db.py:459
↓ 16 callers
Class
_ToolExecutor
Lifecycle manager for in-flight tool calls. Activity-scoped (``owning_activity`` set): tasks belong to one AgentActivity and are cancelled or
livekit-agents/livekit/agents/voice/tool_executor.py:208
↓ 15 callers
Class
ToolProxyToolset
Exposes exactly two fixed tools: search_tools and call_tool. Unlike ToolSearchToolset which dynamically modifies the tool list, ToolProxyTool
livekit-agents/livekit/agents/beta/toolsets/tool_proxy.py:33
↓ 15 callers
Class
_FakeSession
Minimal AgentSession stand-in. Idle by default; tests emit state events via ``emit_agent_state`` / ``emit_user_state``.
tests/test_filler.py:62
↓ 15 callers
Class
_FakeSpeechHandle
tests/test_filler.py:15
↓ 14 callers
Class
DataStreamAudioOutput
AudioOutput implementation that streams audio to a remote avatar worker using LiveKit DataStream.
livekit-agents/livekit/agents/voice/avatar/_datastream_io.py:30
↓ 14 callers
Class
FakeTTS
tests/fake_tts.py:37
↓ 13 callers
Class
ExpFilter
livekit-agents/livekit/agents/utils/exp_filter.py:5
↓ 13 callers
Class
FakeLLM
tests/fake_llm.py:45
↓ 13 callers
Class
FunctionCall
livekit-agents/livekit/agents/llm/chat_context.py:344
↓ 13 callers
Class
FunctionCallOutput
livekit-agents/livekit/agents/llm/chat_context.py:360
↓ 13 callers
Class
LLMAdapter
livekit-plugins/livekit-plugins-langchain/livekit/plugins/langchain/langgraph.py:38
↓ 13 callers
Class
ToolSearchToolset
Wraps tools/toolsets and exposes a tool_search function for dynamic loading. Instead of loading all tool definitions into LLM context, this expos
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:56
↓ 13 callers
Class
WeatherToolset
tests/test_tool_search.py:46
↓ 13 callers
Class
_FillerScheduler
Background task that fires filler speech during a long-running step.
livekit-agents/livekit/agents/voice/filler_scheduler.py:18
↓ 12 callers
Class
BitHumanException
Exception for BitHuman errors
livekit-plugins/livekit-plugins-bithuman/livekit/plugins/bithuman/avatar.py:93
↓ 12 callers
Class
Event
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:213
↓ 12 callers
Class
FinanceToolset
tests/test_tool_search.py:55
↓ 12 callers
Class
WeatherToolset
tests/test_tool_proxy.py:60
↓ 12 callers
Class
_Item
tests/test_utils/test_bounded_dict.py:11
↓ 12 callers
Class
_PassthroughWrapper
Minimal wrapper that forwards capture_frame/flush/clear_buffer through next_in_chain. Used to exercise the auto-wrap and swap mechanics without
tests/test_audio_sink_proxy.py:35
↓ 11 callers
Class
Debounced
livekit-agents/livekit/agents/utils/aio/debounce.py:8
↓ 11 callers
Class
DriveThruAgent
examples/drive-thru/agent.py:53
↓ 11 callers
Class
FakeLLMResponse
Map from input text to output content, tool calls, ttft, and duration
tests/fake_llm.py:28
↓ 11 callers
Class
FakeSTT
tests/fake_stt.py:44
↓ 11 callers
Class
FallbackModel
Inference Fallback Adapter: configuration for a fallback STT model that runs server-side in LiveKit Inference, providing automatic fallback between pr
livekit-agents/livekit/agents/inference/stt.py:202
↓ 11 callers
Class
SpeechEvent
livekit-agents/livekit/agents/stt/stt.py:113
↓ 11 callers
Class
ThresholdOptions
livekit-agents/livekit/agents/inference/eot/languages.py:41
↓ 11 callers
Class
TurnDetector
livekit-agents/livekit/agents/inference/eot/detector.py:33
↓ 10 callers
Class
AsyncToolset
Session-scoped toolset whose tools survive agent handoff. Background updates from tools in this toolset are delivered to whichever agent is c
livekit-agents/livekit/agents/llm/async_toolset.py:37
↓ 10 callers
Class
AvailableSlot
examples/frontdesk/calendar_api.py:24
↓ 10 callers
Class
ServerEnvOption
livekit-agents/livekit/agents/worker.py:136
↓ 10 callers
Class
StreamBuffer
A thread-safe buffer that behaves like an IO stream. Allows writing from one thread and reading from another.
livekit-agents/livekit/agents/utils/codecs/decoder.py:66
↓ 10 callers
Class
_TestableServer
AgentServer that captures config at run() time instead of blocking.
tests/test_worker_config.py:24
↓ 9 callers
Class
AgentSessionUsage
livekit-agents/livekit/agents/metrics/usage.py:129
↓ 9 callers
Class
DummyProviderTool
tests/test_tools.py:119
↓ 9 callers
Class
DuplexClosed
Exception raised when the duplex connection is closed.
livekit-agents/livekit/agents/utils/aio/duplex_unix.py:8
↓ 9 callers
Class
FallbackModel
Inference Fallback Adapter: configuration for a fallback TTS model that runs server-side in LiveKit Inference, providing automatic fallback between pr
livekit-agents/livekit/agents/inference/tts.py:90
↓ 9 callers
Class
LLM
livekit-agents/livekit/agents/llm/llm.py:97
↓ 9 callers
Class
Persona
examples/avatar/personas.py:7
↓ 9 callers
Class
STT
livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py:133
↓ 9 callers
Class
ServerOptions
livekit-agents/livekit/agents/worker.py:178
↓ 9 callers
Class
_CapturingAgent
Test agent that captures on_user_turn_exceeded events instead of responding.
tests/test_user_turn_exceeded.py:17
↓ 8 callers
Class
DisputePolicy
examples/hotel_receptionist/hotel_db.py:96
↓ 8 callers
Class
EndpointingOptions
Configuration for endpointing. All keys are optional. Missing keys inherit from the session default (at the ``Agent`` level) or use the docum
livekit-agents/livekit/agents/voice/turn.py:113
↓ 8 callers
Class
ModelSettings
livekit-agents/livekit/agents/voice/agent.py:33
↓ 8 callers
Class
STTCapabilities
livekit-agents/livekit/agents/stt/stt.py:124
↓ 8 callers
Class
SimpleAgent
tests/test_recording.py:40
↓ 8 callers
Class
SpeechStream
livekit-agents/livekit/agents/inference/stt.py:661
↓ 8 callers
Class
_ReceivedEvent
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/tts.py:70
↓ 7 callers
Class
AudioConfig
Definition for the audio to be played in the background Args: volume: The volume of the audio (0.0-1.0) probability: The pro
livekit-agents/livekit/agents/voice/background_audio.py:104
↓ 7 callers
Class
CLIError
livekit-agents/livekit/agents/_exceptions.py:117
↓ 7 callers
Class
LineItem
examples/hotel_receptionist/hotel_db.py:244
↓ 7 callers
Class
MenuItem
examples/drive-thru/database.py:59
↓ 7 callers
Class
MockToolset1
tests/test_tools.py:124
↓ 7 callers
Class
RealtimeModelMetrics
livekit-agents/livekit/agents/metrics/base.py:131
↓ 7 callers
Class
SearchItem
A search candidate derived from a single tool at index time.
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:26
↓ 7 callers
Class
TTS
livekit-plugins/livekit-plugins-inworld/livekit/plugins/inworld/tts.py:823
↓ 7 callers
Class
_AudioSinkProxy
Stable swap point at the bottom of an audio wrapper chain. Wrappers above hold a reference to the proxy; the actual sink lives in ``next_in_c
livekit-agents/livekit/agents/voice/io.py:293
↓ 7 callers
Class
_FakeRoom
tests/test_room_io.py:24
↓ 6 callers
Class
AgentActivity
livekit-agents/livekit/agents/voice/agent_activity.py:161
↓ 6 callers
Class
AudioOutputCapabilities
livekit-agents/livekit/agents/voice/io.py:127
↓ 6 callers
Class
AudioStreamDecoder
A class that can be used to decode audio stream into PCM AudioFrames. Decoders are stateful, and it should not be reused across multiple streams.
livekit-agents/livekit/agents/utils/codecs/decoder.py:336
↓ 6 callers
Class
EndCallTool
livekit-agents/livekit/agents/beta/tools/end_call.py:27
↓ 6 callers
Class
EventCollector
tests/utils/__init__.py:43
↓ 6 callers
Class
FallbackAdapterTester
tests/test_tts_fallback.py:19
↓ 6 callers
Class
FunctionCallResult
livekit-agents/livekit/agents/llm/utils.py:650
↓ 6 callers
Class
Language
examples/other/translation/multi-user-translator.py:54
next →
1–100 of 1,654, ranked by callers