MCPcopy Index your code

hub / github.com/livekit/agents / functions

Functions7,987 in github.com/livekit/agents

↓ 8 callersFunction_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 callersFunction_room_name
()
tests/test_room.py:78
↓ 8 callersFunction_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 callersMethod_update_user_state
( self, state: UserState, *, last_speaking_time: float | None = None )
livekit-agents/livekit/agents/voice/agent_session.py:1668
↓ 8 callersMethod_watch_handle
(self, handle: SpeechHandle | asyncio.Task)
livekit-agents/livekit/agents/voice/run_result.py:171
↓ 8 callersMethodaclose
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:488
↓ 8 callersMethodaclose
(self)
livekit-agents/livekit/agents/ipc/proc_pool.py:106
↓ 8 callersMethodavailability_changed_ch
( self, stt: STT, )
tests/test_stt_fallback.py:51
↓ 8 callersMethodcapture_frame
Capture an audio frame for playback, frames can be pushed faster than real-time
livekit-agents/livekit/agents/voice/io.py:256
↓ 8 callersMethodchat
( self, *, chat_ctx: ChatContext, tools: list[llm.Tool] | None = None,
livekit-plugins/livekit-plugins-langchain/livekit/plugins/langchain/langgraph.py:69
↓ 8 callersMethodclear
(self)
tests/utils/__init__.py:59
↓ 8 callersFunctioncollect_chunks
Collect all content chunks from a stream.
tests/test_langgraph.py:91
↓ 8 callersMethoddisconnect
Disconnect from service
livekit-plugins/livekit-plugins-upliftai/livekit/plugins/upliftai/tts.py:314
↓ 8 callersMethodend_input
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:395
↓ 8 callersFunctionfind_items_by_id
( items: list[MenuItem], item_id: str, size: ItemSize | None = None )
examples/drive-thru/database.py:598
↓ 8 callersMethodflush
Mark the current text segment as complete (e.g LLM generation is complete)
livekit-agents/livekit/agents/voice/io.py:402
↓ 8 callersMethodinitialize
(self)
examples/frontdesk/calendar_api.py:37
↓ 8 callersMethodinvalidate
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 callersFunctionis_dict
(obj: object)
livekit-agents/livekit/agents/llm/_strict.py:203
↓ 8 callersMethodmessages
Return only chat messages, ignoring function calls, outputs, and other events.
livekit-agents/livekit/agents/llm/chat_context.py:414
↓ 8 callersMethodpush
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 callersFunctionrun_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 callersMethodsend
(self, msg: Message)
livekit-agents/livekit/agents/ipc/proc_client.py:81
↓ 8 callersMethodset_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 callersMethodto_dict
( self, *, exclude_image: bool = True, exclude_audio: bool = True, exc
livekit-agents/livekit/agents/llm/chat_context.py:600
↓ 8 callersMethodto_language_name
Return the English language name (e.g. ``'english'``), or ``None`` if unknown.
livekit-agents/livekit/agents/language.py:127
↓ 8 callersFunctionto_strict_json_schema
(model: type[BaseModel] | TypeAdapter[Any])
livekit-agents/livekit/agents/llm/_strict.py:10
↓ 8 callersMethodupdate_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 callersMethodwait_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 callersFunctionwer
(hypothesis: str, reference: str)
tests/utils/__init__.py:21
↓ 7 callersMethod_cancel_preemptive_generation
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:1379
↓ 7 callersMethod_check_vad_silence_requirement
( self, detector: NotGivenOr[_TurnDetector | _StreamingTurnDetector | None] = NOT_GIVEN, )
livekit-agents/livekit/agents/voice/audio_recognition.py:738
↓ 7 callersMethod_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 callersFunction_close_test_session
(session: object)
tests/test_agent_session.py:1356
↓ 7 callersMethod_connect_ws
(self)
tests/fake_turn_detector_ws.py:85
↓ 7 callersFunction_detach_stt_if_reusable
Call the real _detach_reusable_resources, return stt_pipeline.
tests/test_audio_recognition_handoff.py:36
↓ 7 callersFunction_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 callersFunction_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 callersMethod_fall_back_to_local
(self, *, reason: BaseException)
livekit-agents/livekit/agents/inference/eot/base.py:347
↓ 7 callersMethod_finalize_generation
(self, *, interrupted: bool = False)
livekit-plugins/livekit-plugins-nvidia/livekit/plugins/nvidia/experimental/realtime/realtime_model.py:634
↓ 7 callersFunction_find
(items: list[MenuItem], id: str, size=None)
examples/drive-thru/agent.py:381
↓ 7 callersMethod_get_activity_or_raise
Get the current activity context for this task (internal)
livekit-agents/livekit/agents/voice/agent.py:412
↓ 7 callersFunction_get_activity_task_info
(task: asyncio.Task[Any])
livekit-agents/livekit/agents/voice/agent.py:1014
↓ 7 callersFunction_get_model_config
(model: str)
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:186
↓ 7 callersMethod_item_added
(self, item: llm.ChatItem)
livekit-agents/livekit/agents/voice/run_result.py:155
↓ 7 callersFunction_make_llm
(**kwargs)
tests/test_plugin_anthropic.py:14
↓ 7 callersMethod_make_mock_session
(self)
tests/test_session_host.py:424
↓ 7 callersFunction_make_run_context
Build a minimal RunContext — only what the executor and update() actually read.
tests/test_tools.py:1101
↓ 7 callersMethod_process_fragments
Helper method to process a list of (text, speaker_id) fragments.
tests/test_speaker_id_grouping.py:26
↓ 7 callersMethod_process_stream_event
(self, data: dict)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/stt.py:399
↓ 7 callersMethod_queue_msg
_queue_msg raises aio.ChanClosed when the worker is closing/closed
livekit-agents/livekit/agents/worker.py:1049
↓ 7 callersMethod_restore_interruption_by_audio_activity
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:3926
↓ 7 callersMethod_send_request
( self, request: agent_pb.SessionRequest, timeout: float = 60.0, )
livekit-agents/livekit/agents/voice/remote_session.py:992
↓ 7 callersFunction_session_usage_to_proto
(usage: AgentSessionUsage)
livekit-agents/livekit/agents/voice/remote_session.py:856
↓ 7 callersMethod_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 callersFunction_silence
(duration_s: float = 0.01, sample_rate: int = 16000)
tests/test_audio_sink_proxy.py:25
↓ 7 callersMethod_status
(self)
examples/hotel_receptionist/book_room.py:81
↓ 7 callersMethod_vad_event
( type_: VADEventType, *, speech_duration: float = 0.0, silence_duration: floa
tests/test_speech_start_time_persistence.py:75
↓ 7 callersMethodaclose
(self)
livekit-agents/livekit/agents/voice/audio_recognition.py:191
↓ 7 callersMethodaclose
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:1107
↓ 7 callersMethodaclose
(self)
tests/test_ipc.py:214
↓ 7 callersMethodadd
(self, item: llm.ChatItem)
livekit-agents/livekit/agents/llm/_provider_format/utils.py:120
↓ 7 callersMethodas_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 callersMethodcleanup
(self)
livekit-agents/livekit/agents/voice/agent_activity.py:123
↓ 7 callersMethodclose
(self)
livekit-agents/livekit/agents/utils/codecs/decoder.py:130
↓ 7 callersMethodclose
Close the HTTP session if we own it.
livekit-plugins/livekit-plugins-rtzr/livekit/plugins/rtzr/rtzrapi.py:199
↓ 7 callersMethodcpu_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 callersMethodcreate
( self, upstream: str, name: str, listen: str | None = None, enabled: bool | None = None )
tests/toxic_proxy.py:182
↓ 7 callersMethoddelete_room
Deletes the room and disconnects all participants.
livekit-agents/livekit/agents/job.py:624
↓ 7 callersMethoddrain
(self)
livekit-agents/livekit/agents/voice/agent_session.py:922
↓ 7 callersMethodflush
Force callback to be called with current total if non-zero
livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/_utils.py:32
↓ 7 callersMethodget_by_id
(self, item_id: str)
livekit-agents/livekit/agents/llm/chat_context.py:461
↓ 7 callersMethodget_profile
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:180
↓ 7 callersMethodis_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 callersMethodis_alive
(self)
livekit-agents/livekit/agents/ipc/inference_proc_executor.py:112
↓ 7 callersMethodis_running
(self)
livekit-agents/livekit/agents/utils/aio/debounce.py:35
↓ 7 callersMethodjoin
(self)
livekit-agents/livekit/agents/ipc/job_executor.py:30
↓ 7 callersMethodload
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 callersFunctionmake_tool_output
( *, fnc_call: llm.FunctionCall, output: Any, exception: BaseException | None )
livekit-agents/livekit/agents/voice/generation.py:812
↓ 7 callersMethodparse_function_tools
( self, format: Literal["openai"], *, strict: bool = True )
livekit-agents/livekit/agents/llm/tool_context.py:624
↓ 7 callersFunctionprocess_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 callersMethodpush
(self, chunk: bytes)
livekit-agents/livekit/agents/utils/codecs/decoder.py:372
↓ 7 callersMethodread
Read data from the buffer in a reader thread.
livekit-agents/livekit/agents/utils/codecs/decoder.py:91
↓ 7 callersMethodrecord
(self)
livekit-agents/livekit/agents/cli/cli.py:110
↓ 7 callersFunctionresolve_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 callersMethodshift
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 callersMethodshutdown
(self)
livekit-agents/livekit/agents/cli/_legacy.py:1473
↓ 7 callersMethodsimplify
(self)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/utils.py:123
↓ 7 callersMethodstart_detection_timer
Arm the overall detection-timeout budget.
livekit-agents/livekit/agents/voice/amd/classifier.py:152
↓ 7 callersMethodto_dict
(self)
livekit-agents/livekit/agents/voice/report.py:36
↓ 7 callersMethodupdate_options
( self, *, min_delay: NotGivenOr[float] = NOT_GIVEN, max_delay: NotGivenOr[flo
livekit-agents/livekit/agents/voice/endpointing.py:288
↓ 7 callersFunctionwait_for_participant
( room: rtc.Room, *, identity: str | None = None, kind: list[rtc.ParticipantKind.ValueType] |
livekit-agents/livekit/agents/utils/participant.py:134
↓ 6 callersMethod_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 callersFunction_create_proc
( *, close_timeout: float, mp_ctx: BaseContext, initialize_timeout: float = 20.0, job_entr
tests/test_ipc.py:460
↓ 6 callersMethod_emit_error
(self, error: Exception, recoverable: bool)
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/realtime_model.py:2128
↓ 6 callersMethod_ensure_user_turn_span
(self, start_time: float | None = None)
livekit-agents/livekit/agents/voice/audio_recognition.py:1764
↓ 6 callersMethod_extract_provider_model
Extract provider and model from metrics metadata.
livekit-agents/livekit/agents/metrics/usage.py:146
↓ 6 callersFunction_format_chat_ctx
Format a ChatContext into a string.
livekit-agents/livekit/agents/evals/judge.py:72
↓ 6 callersFunction_generate_fake_job
()
tests/test_ipc.py:117
↓ 6 callersMethod_handle_request
(self, req: agent_pb.SessionRequest)
livekit-agents/livekit/agents/voice/remote_session.py:615
← previousnext →301–400 of 7,987, ranked by callers