Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/livekit/agents
/ functions
Functions
7,987 in github.com/livekit/agents
⨍
Functions
7,987
◇
Types & classes
1,654
↳
Endpoints
22
↓ 8 callers
Function
_resolve_async_tool_options
Return a fully-populated ``AsyncToolOptions`` with defaults filled in for absent keys.
livekit-agents/livekit/agents/voice/tool_executor.py:142
↓ 8 callers
Function
_room_name
()
tests/test_room.py:78
↓ 8 callers
Function
_strip_wav_header
Strip the RIFF/WAV header if present, returning only PCM samples.
livekit-plugins/livekit-plugins-gnani/livekit/plugins/gnani/tts.py:226
↓ 8 callers
Method
_update_user_state
( self, state: UserState, *, last_speaking_time: float | None = None )
livekit-agents/livekit/agents/voice/agent_session.py:1668
↓ 8 callers
Method
_watch_handle
(self, handle: SpeechHandle | asyncio.Task)
livekit-agents/livekit/agents/voice/run_result.py:171
↓ 8 callers
Method
aclose
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:488
↓ 8 callers
Method
aclose
(self)
livekit-agents/livekit/agents/ipc/proc_pool.py:106
↓ 8 callers
Method
availability_changed_ch
( self, stt: STT, )
tests/test_stt_fallback.py:51
↓ 8 callers
Method
capture_frame
Capture an audio frame for playback, frames can be pushed faster than real-time
livekit-agents/livekit/agents/voice/io.py:256
↓ 8 callers
Method
chat
( self, *, chat_ctx: ChatContext, tools: list[llm.Tool] | None = None,
livekit-plugins/livekit-plugins-langchain/livekit/plugins/langchain/langgraph.py:69
↓ 8 callers
Method
clear
(self)
tests/utils/__init__.py:59
↓ 8 callers
Function
collect_chunks
Collect all content chunks from a stream.
tests/test_langgraph.py:91
↓ 8 callers
Method
disconnect
Disconnect from service
livekit-plugins/livekit-plugins-upliftai/livekit/plugins/upliftai/tts.py:314
↓ 8 callers
Method
end_input
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:395
↓ 8 callers
Function
find_items_by_id
( items: list[MenuItem], item_id: str, size: ItemSize | None = None )
examples/drive-thru/database.py:598
↓ 8 callers
Method
flush
Mark the current text segment as complete (e.g LLM generation is complete)
livekit-agents/livekit/agents/voice/io.py:402
↓ 8 callers
Method
initialize
(self)
examples/frontdesk/calendar_api.py:37
↓ 8 callers
Method
invalidate
Clear all existing connections. Marks all current connections to be closed during the next drain cycle.
livekit-agents/livekit/agents/utils/connection_pool.py:160
↓ 8 callers
Function
is_dict
(obj: object)
livekit-agents/livekit/agents/llm/_strict.py:203
↓ 8 callers
Method
messages
Return only chat messages, ignoring function calls, outputs, and other events.
livekit-agents/livekit/agents/llm/chat_context.py:414
↓ 8 callers
Method
push
Add audio data to the buffer and retrieve fixed-size frames. Parameters: data (bytes): The incoming audio data to buffer
livekit-agents/livekit/agents/utils/audio.py:129
↓ 8 callers
Function
run_menu
( agent: Agent, *, prompt: str, options: dict[str, str], invalid_message: str = "I did not
examples/telephony/bank-ivr/ivr_system_agent.py:103
↓ 8 callers
Method
send
(self, msg: Message)
livekit-agents/livekit/agents/ipc/proc_client.py:81
↓ 8 callers
Method
set_or_update
Set a value for a key if it doesn't exist, or update it if it does. Args: key: The key to set or update. factory: The
livekit-agents/livekit/agents/utils/bounded_dict.py:53
↓ 8 callers
Method
to_dict
( self, *, exclude_image: bool = True, exclude_audio: bool = True, exc
livekit-agents/livekit/agents/llm/chat_context.py:600
↓ 8 callers
Method
to_language_name
Return the English language name (e.g. ``'english'``), or ``None`` if unknown.
livekit-agents/livekit/agents/language.py:127
↓ 8 callers
Function
to_strict_json_schema
(model: type[BaseModel] | TypeAdapter[Any])
livekit-agents/livekit/agents/llm/_strict.py:10
↓ 8 callers
Method
update_options
Args: voice (str, optional): Voice. model (TTSModels | str, optional): TTS model to use. language (str, o
livekit-agents/livekit/agents/inference/tts.py:554
↓ 8 callers
Method
wait_for_participant
Returns a participant that matches the given identity. If identity is None, the first participant that joins the room will be returne
livekit-agents/livekit/agents/job.py:544
↓ 8 callers
Function
wer
(hypothesis: str, reference: str)
tests/utils/__init__.py:21
↓ 7 callers
Method
_cancel_preemptive_generation
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:1379
↓ 7 callers
Method
_check_vad_silence_requirement
( self, detector: NotGivenOr[_TurnDetector | _StreamingTurnDetector | None] = NOT_GIVEN, )
livekit-agents/livekit/agents/voice/audio_recognition.py:738
↓ 7 callers
Method
_close_current_generation
Helper that closes all channels of the active generation.
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/realtime_model.py:1382
↓ 7 callers
Function
_close_test_session
(session: object)
tests/test_agent_session.py:1356
↓ 7 callers
Method
_connect_ws
(self)
tests/fake_turn_detector_ws.py:85
↓ 7 callers
Function
_detach_stt_if_reusable
Call the real _detach_reusable_resources, return stt_pipeline.
tests/test_audio_recognition_handoff.py:36
↓ 7 callers
Function
_drive_recv
Drive `_recv_messages_task` with canned messages, return collected events. Sets `stream._ws = None` after collecting events so the plugin's outer
tests/test_plugin_soniox_stt.py:180
↓ 7 callers
Function
_drive_until_called
Drive a task to completion across multiple turns and return the matching calls. The LLM may respond conversationally before calling a completion
examples/survey/test_survey_agent.py:140
↓ 7 callers
Method
_fall_back_to_local
(self, *, reason: BaseException)
livekit-agents/livekit/agents/inference/eot/base.py:347
↓ 7 callers
Method
_finalize_generation
(self, *, interrupted: bool = False)
livekit-plugins/livekit-plugins-nvidia/livekit/plugins/nvidia/experimental/realtime/realtime_model.py:634
↓ 7 callers
Function
_find
(items: list[MenuItem], id: str, size=None)
examples/drive-thru/agent.py:381
↓ 7 callers
Method
_get_activity_or_raise
Get the current activity context for this task (internal)
livekit-agents/livekit/agents/voice/agent.py:412
↓ 7 callers
Function
_get_activity_task_info
(task: asyncio.Task[Any])
livekit-agents/livekit/agents/voice/agent.py:1014
↓ 7 callers
Function
_get_model_config
(model: str)
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:186
↓ 7 callers
Method
_item_added
(self, item: llm.ChatItem)
livekit-agents/livekit/agents/voice/run_result.py:155
↓ 7 callers
Function
_make_llm
(**kwargs)
tests/test_plugin_anthropic.py:14
↓ 7 callers
Method
_make_mock_session
(self)
tests/test_session_host.py:424
↓ 7 callers
Function
_make_run_context
Build a minimal RunContext — only what the executor and update() actually read.
tests/test_tools.py:1101
↓ 7 callers
Method
_process_fragments
Helper method to process a list of (text, speaker_id) fragments.
tests/test_speaker_id_grouping.py:26
↓ 7 callers
Method
_process_stream_event
(self, data: dict)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/stt.py:399
↓ 7 callers
Method
_queue_msg
_queue_msg raises aio.ChanClosed when the worker is closing/closed
livekit-agents/livekit/agents/worker.py:1049
↓ 7 callers
Method
_restore_interruption_by_audio_activity
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:3926
↓ 7 callers
Method
_send_request
( self, request: agent_pb.SessionRequest, timeout: float = 60.0, )
livekit-agents/livekit/agents/voice/remote_session.py:992
↓ 7 callers
Function
_session_usage_to_proto
(usage: AgentSessionUsage)
livekit-agents/livekit/agents/voice/remote_session.py:856
↓ 7 callers
Method
_should_emit_memory_warning
True (and records the emission) if the cooldown elapsed or usage grew by _MEMORY_WARN_RESET_DELTA_MB since the last warning.
livekit-agents/livekit/agents/ipc/supervised_proc.py:539
↓ 7 callers
Function
_silence
(duration_s: float = 0.01, sample_rate: int = 16000)
tests/test_audio_sink_proxy.py:25
↓ 7 callers
Method
_status
(self)
examples/hotel_receptionist/book_room.py:81
↓ 7 callers
Method
_vad_event
( type_: VADEventType, *, speech_duration: float = 0.0, silence_duration: floa
tests/test_speech_start_time_persistence.py:75
↓ 7 callers
Method
aclose
(self)
livekit-agents/livekit/agents/voice/audio_recognition.py:191
↓ 7 callers
Method
aclose
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:1107
↓ 7 callers
Method
aclose
(self)
tests/test_ipc.py:214
↓ 7 callers
Method
add
(self, item: llm.ChatItem)
livekit-agents/livekit/agents/llm/_provider_format/utils.py:120
↓ 7 callers
Method
as_modality
Return a copy whose ``str`` value is the correct variant for *modality*. Both ``_audio_variant`` and ``_text_variant`` are preserved so this
livekit-agents/livekit/agents/llm/chat_context.py:109
↓ 7 callers
Method
cleanup
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:123
↓ 7 callers
Method
close
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:130
↓ 7 callers
Method
close
Close the HTTP session if we own it.
livekit-plugins/livekit-plugins-rtzr/livekit/plugins/rtzr/rtzrapi.py:199
↓ 7 callers
Method
cpu_count
Number of logical CPUs. Returns a float to allow for fractional CPUs (in the case of cgroups).
livekit-agents/livekit/agents/utils/hw/cpu.py:12
↓ 7 callers
Method
create
( self, upstream: str, name: str, listen: str | None = None, enabled: bool | None = None )
tests/toxic_proxy.py:182
↓ 7 callers
Method
delete_room
Deletes the room and disconnects all participants.
livekit-agents/livekit/agents/job.py:624
↓ 7 callers
Method
drain
(self)
livekit-agents/livekit/agents/voice/agent_session.py:922
↓ 7 callers
Method
flush
Force callback to be called with current total if non-zero
livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/_utils.py:32
↓ 7 callers
Method
get_by_id
(self, item_id: str)
livekit-agents/livekit/agents/llm/chat_context.py:461
↓ 7 callers
Method
get_profile
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:180
↓ 7 callers
Method
is_agent_handoff
Verify this event is an agent handoff. Args: new_agent_type (type, optional): Expected new agent class. Returns
livekit-agents/livekit/agents/voice/run_result.py:695
↓ 7 callers
Method
is_alive
(self)
livekit-agents/livekit/agents/ipc/inference_proc_executor.py:112
↓ 7 callers
Method
is_running
(self)
livekit-agents/livekit/agents/utils/aio/debounce.py:35
↓ 7 callers
Method
join
(self)
livekit-agents/livekit/agents/ipc/job_executor.py:30
↓ 7 callers
Method
load
Load and initialize the Silero VAD model. This method loads the ONNX model and prepares it for inference. When options are not provi
livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/vad.py:60
↓ 7 callers
Function
make_tool_output
( *, fnc_call: llm.FunctionCall, output: Any, exception: BaseException | None )
livekit-agents/livekit/agents/voice/generation.py:812
↓ 7 callers
Method
parse_function_tools
( self, format: Literal["openai"], *, strict: bool = True )
livekit-agents/livekit/agents/llm/tool_context.py:624
↓ 7 callers
Function
process_base_url
( url: str, model: str, is_azure: bool = False, azure_deployment: str | None = None, api_v
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/realtime_model.py:756
↓ 7 callers
Method
push
(self, chunk: bytes)
livekit-agents/livekit/agents/utils/codecs/decoder.py:372
↓ 7 callers
Method
read
Read data from the buffer in a reader thread.
livekit-agents/livekit/agents/utils/codecs/decoder.py:91
↓ 7 callers
Method
record
(self)
livekit-agents/livekit/agents/cli/cli.py:110
↓ 7 callers
Function
resolve_env_var
Resolve an environment variable from a list of potential sources. Args: val: The value to resolve. *env_vars: The environmen
livekit-agents/livekit/agents/utils/env.py:7
↓ 7 callers
Method
shift
Shift the buffer to the left by the given size. Args: size: The size to shift the buffer by.
livekit-agents/livekit/agents/utils/audio.py:326
↓ 7 callers
Method
shutdown
(self)
livekit-agents/livekit/agents/cli/_legacy.py:1473
↓ 7 callers
Method
simplify
(self)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/utils.py:123
↓ 7 callers
Method
start_detection_timer
Arm the overall detection-timeout budget.
livekit-agents/livekit/agents/voice/amd/classifier.py:152
↓ 7 callers
Method
to_dict
(self)
livekit-agents/livekit/agents/voice/report.py:36
↓ 7 callers
Method
update_options
( self, *, min_delay: NotGivenOr[float] = NOT_GIVEN, max_delay: NotGivenOr[flo
livekit-agents/livekit/agents/voice/endpointing.py:288
↓ 7 callers
Function
wait_for_participant
( room: rtc.Room, *, identity: str | None = None, kind: list[rtc.ParticipantKind.ValueType] |
livekit-agents/livekit/agents/utils/participant.py:134
↓ 6 callers
Method
_attach_activity
Bind this toolset to a scope. ``activity=None`` makes it session-scoped (replies survive handoff); otherwise replies stay with ``activity``'s
livekit-agents/livekit/agents/llm/async_toolset.py:78
↓ 6 callers
Function
_create_proc
( *, close_timeout: float, mp_ctx: BaseContext, initialize_timeout: float = 20.0, job_entr
tests/test_ipc.py:460
↓ 6 callers
Method
_emit_error
(self, error: Exception, recoverable: bool)
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/realtime_model.py:2128
↓ 6 callers
Method
_ensure_user_turn_span
(self, start_time: float | None = None)
livekit-agents/livekit/agents/voice/audio_recognition.py:1764
↓ 6 callers
Method
_extract_provider_model
Extract provider and model from metrics metadata.
livekit-agents/livekit/agents/metrics/usage.py:146
↓ 6 callers
Function
_format_chat_ctx
Format a ChatContext into a string.
livekit-agents/livekit/agents/evals/judge.py:72
↓ 6 callers
Function
_generate_fake_job
()
tests/test_ipc.py:117
↓ 6 callers
Method
_handle_request
(self, req: agent_pb.SessionRequest)
livekit-agents/livekit/agents/voice/remote_session.py:615
← previous
next →
301–400 of 7,987, ranked by callers