MCPcopy Index your code

hub / github.com/livekit/agents / functions

Functions7,987 in github.com/livekit/agents

↓ 11 callersMethod_create_speech_task
This method must only be used for tasks that "could" create a new SpeechHandle. When draining, every task created with this method wi
livekit-agents/livekit/agents/voice/agent_activity.py:564
↓ 11 callersFunction_inference_done
An ``INFERENCE_DONE`` event carrying the accumulated speech/silence — the shape the silero/inference VAD emits each inference window.
tests/test_audio_recognition_turn_detection.py:191
↓ 11 callersFunction_make_items
()
tests/test_tool_search.py:73
↓ 11 callersFunction_make_stream
(thresholds: dict[str, float] | None = None)
tests/test_turn_detection_fsm.py:82
↓ 11 callersFunction_make_stream_for_unit_test
Construct a SpeechStream without triggering the _main_task WebSocket loop. Patches asyncio.create_task during __init__ so the stream doesn't t
tests/test_plugin_assemblyai_stt.py:104
↓ 11 callersFunction_normalize_fallback
( fallback: list[FallbackModelType] | FallbackModelType, )
livekit-agents/livekit/agents/inference/stt.py:249
↓ 11 callersFunction_parse_model_string
(model: str)
livekit-agents/livekit/agents/inference/stt.py:221
↓ 11 callersFunction_require_coordinate
Extract and unpack a coordinate pair from Anthropic's [x, y] format.
livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/computer_tool.py:123
↓ 11 callersMethod_send_client_event
Send an event to the Ultravox WebSocket.
livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/realtime_model.py:467
↓ 11 callersMethod_send_event
( self, event: agent_pb.AgentSessionEvent, created_at: float | None = None )
livekit-agents/livekit/agents/voice/remote_session.py:431
↓ 11 callersFunction_streaming_recognize_response_to_speech_data
( resp: cloud_speech_v2.StreamingRecognizeResponse | cloud_speech_v1.StreamingRecognizeResponse, *,
livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py:1001
↓ 11 callersFunction_wait_for_elements
(q: asyncio.Queue, num_elements: int)
tests/test_ipc.py:272
↓ 11 callersMethodaclose
(self)
examples/hotel_receptionist/ui_view.py:61
↓ 11 callersMethodavailability_changed_ch
( self, tts: TTS, )
tests/test_tts_fallback.py:42
↓ 11 callersMethodemit
(self, record: logging.LogRecord)
livekit-agents/livekit/agents/telemetry/traces.py:122
↓ 11 callersFunctionformat_currency
(value: float)
examples/telephony/bank-ivr/mock_bank_service.py:230
↓ 11 callersFunctionfunction_arguments_to_pydantic_model
Create a Pydantic model from a function's signature. (excluding context types)
livekit-agents/livekit/agents/llm/utils.py:313
↓ 11 callersMethodjoin
(self)
livekit-agents/livekit/agents/cli/_legacy.py:1470
↓ 11 callersFunctionlog_event_data
(event_data: dict)
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/pretty_printer.py:40
↓ 11 callersMethodon
(self, event_name: str, handler: object)
livekit-plugins/livekit-plugins-hamming/tests/test_recording.py:25
↓ 11 callersMethodpush_frame
(self, frame: rtc.AudioFrame)
tests/test_stt_fallback.py:162
↓ 11 callersMethodread
(self)
livekit-agents/livekit/agents/utils/audio.py:336
↓ 11 callersMethodshutdown
(self, _: str = "")
examples/avatar/actions.py:104
↓ 11 callersMethodskip_next_event_if
( self, *, type: Literal["message"], role: NotGivenOr[llm.ChatRole] = NOT_GIVEN )
livekit-agents/livekit/agents/voice/run_result.py:372
↓ 11 callersMethodupdate_options
( self, *, fake_exception: NotGivenOr[Exception | None] = NOT_GIVEN, fake_tran
tests/fake_stt.py:74
↓ 10 callersFunction_clean_env
Patch env vars: keys with None get removed, others get set.
tests/test_audio_turn_detector_fallback.py:62
↓ 10 callersFunction_collect
(stream)
tests/test_transcription_filter.py:320
↓ 10 callersFunction_events_of_type
(captured: list[Any], event_type: stt.SpeechEventType)
livekit-plugins/livekit-plugins-sarvam/tests/test_speech_timing.py:62
↓ 10 callersMethod_handle_search
(self, raw_arguments: dict[str, object])
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:149
↓ 10 callersFunction_main_llm
()
examples/drive-thru/test_agent.py:11
↓ 10 callersFunction_make_pcm
(sample_rate: int, num_channels: int, duration_ms: int)
tests/test_audio_emitter.py:17
↓ 10 callersFunction_normalize_lower_string
(value: object, *, fallback: str)
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_plugin.py:1606
↓ 10 callersMethod_raise
(self, message: str)
livekit-agents/livekit/agents/voice/run_result.py:590
↓ 10 callersMethod_raise_with_debug_info
(self, message: str, index: int | None = None)
livekit-agents/livekit/agents/voice/run_result.py:305
↓ 10 callersFunction_register_fake
Stub a _RunningTask into the executor so policy methods can be tested without choreographing real execute() lifetimes. Caller must clean up the
tests/test_tools.py:1263
↓ 10 callersFunction_resolved_prediction
A resolved prediction future, as if the transport already answered.
tests/test_audio_recognition_turn_detection.py:130
↓ 10 callersFunction_run_and_capture
Run _run_worker and return the config that was active when run() was called.
tests/test_worker_config.py:41
↓ 10 callersFunction_run_emitter
Run emitter, collect events until we've seen expect_finals is_final events.
tests/test_audio_emitter.py:37
↓ 10 callersMethod_send_raw_event
Low-level helper that serialises event_json and forwards it to the bidirectional stream. Args: event_json (str): The JSON payload
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/realtime_model.py:768
↓ 10 callersFunction_stream_text
(text: str, chunk_size: int)
tests/test_transcription_filter.py:315
↓ 10 callersFunction_ws_message
(**transcript_overrides: Any)
livekit-plugins/livekit-plugins-sarvam/tests/test_speech_timing.py:49
↓ 10 callersMethodaclose
(self)
tests/utils/audio_test.py:77
↓ 10 callersMethodapply
(self, exp: float, sample: NotGivenOr[float] = NOT_GIVEN)
livekit-agents/livekit/agents/utils/exp_filter.py:38
↓ 10 callersFunctioncreate_api_error_from_http
Create an APIStatusError from an HTTP status code. When the message carries extra detail beyond the standard reason phrase, both the message
livekit-agents/livekit/agents/_exceptions.py:121
↓ 10 callersMethodend_input
(self)
examples/other/translation/multi-user-translator.py:120
↓ 10 callersMethodflush
(self)
livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallestai/stt.py:76
↓ 10 callersFunctionfunction_tool
( f: Callable[_P, _R], *, raw_schema: RawFunctionDescription | dict[str, Any], flags: ToolFlag
livekit-agents/livekit/agents/llm/tool_context.py:263
↓ 10 callersFunctionget_inference_headers
Build identification headers for inference requests. Always includes User-Agent with SDK version and Python version. Includes X-LiveKit-Room-
livekit-agents/livekit/agents/inference/_utils.py:42
↓ 10 callersFunctionparse_model_ref
(model: str)
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/gateway_adapter.py:314
↓ 10 callersMethodread
(self, b: io.BytesIO)
livekit-agents/livekit/agents/ipc/channel.py:18
↓ 10 callersMethodrun
(self, data: bytes)
livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/base.py:151
↓ 10 callersMethodsearch
( self, query: str, items: list[SearchItem], max_results: int )
tests/test_tool_search.py:325
↓ 10 callersMethodsend
(self, send: _SendT)
livekit-plugins/livekit-durable/livekit/durable/function.py:255
↓ 10 callersMethodset_next_in_chain
Replace the downstream sink, transferring playback listeners and on_attached/on_detached state.
livekit-agents/livekit/agents/voice/io.py:328
↓ 10 callersMethodstart_as_current_span
(self, *args: Any, **kwargs: Any)
livekit-agents/livekit/agents/telemetry/traces.py:77
↓ 10 callersMethodsynthesize
( self, text: str, *, conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS )
tests/fake_tts.py:93
↓ 10 callersMethodto_provider_format
( self, format: Literal["openai", "openai.responses"], *, inject_dummy_user_me
livekit-agents/livekit/agents/llm/chat_context.py:649
↓ 10 callersMethodwrite
(self, b: io.BytesIO)
livekit-agents/livekit/agents/ipc/channel.py:16
↓ 9 callersFunction_cleanup_fakes
(*exe_tasks)
tests/test_tools.py:1290
↓ 9 callersMethod_close_current_generation
(self, interrupted: bool)
livekit-plugins/livekit-plugins-phonic/livekit/plugins/phonic/realtime/realtime_model.py:889
↓ 9 callersMethod_esc
(cls, *codes: int)
livekit-agents/livekit/agents/cli/log.py:176
↓ 9 callersFunction_judge_llm
()
examples/drive-thru/test_agent.py:18
↓ 9 callersFunction_parse_model_string
Parse a model string into a model and voice Args: model (str): Model string to parse Returns: tuple[str, str | None]: Model an
livekit-agents/livekit/agents/inference/tts.py:76
↓ 9 callersMethod_send_client_event
(self, event: ClientEvents)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/realtime_api.py:721
↓ 9 callersFunction_update
( conn: apsw.Connection, table: str, set_fields: dict[str, Any], where: dict[str, Any] )
examples/hotel_receptionist/hotel_db.py:2057
↓ 9 callersFunction_validate_str_param
(value: object, name: str, literal_type: Any)
livekit-plugins/livekit-plugins-inworld/livekit/plugins/inworld/tts.py:77
↓ 9 callersMethod_verified_booking
Verify the caller once per call. Tools that mutate the booking (modify, cancel) update or clear the cache themselves.
examples/hotel_receptionist/tools_rooms.py:214
↓ 9 callersFunction_wait_for
Yield to the event loop until ``predicate()`` is true or we run out of ticks. Replaces fragile ``await asyncio.sleep(0)`` counts now that the
tests/test_audio_turn_detector_fallback.py:51
↓ 9 callersMethodbuild_index
(self, items: list[SearchItem])
tests/test_tool_search.py:320
↓ 9 callersMethodcancel_inference
(self, *, timed_out: bool = False)
livekit-agents/livekit/agents/voice/turn.py:72
↓ 9 callersMethodcapture_frame
(self, frame: rtc.AudioFrame)
tests/test_audio_sink_proxy.py:71
↓ 9 callersMethodclose
(self)
examples/hotel_receptionist/hotel_db.py:531
↓ 9 callersMethodcollect
Collect the entire stream into a single response. Example: ```python from livekit.agents import llm resp
livekit-agents/livekit/agents/llm/llm.py:427
↓ 9 callersMethodcount
(self)
tests/utils/__init__.py:56
↓ 9 callersFunctionexecute_function_call
Execute a function tool call and return the result.
livekit-agents/livekit/agents/llm/utils.py:733
↓ 9 callersMethodfrom_bytes
(cls, seed_bytes: bytes, *, on_change: OnChange | None = None)
examples/hotel_receptionist/hotel_db.py:512
↓ 9 callersMethodget
(self)
livekit-agents/livekit/agents/utils/aio/counter.py:21
↓ 9 callersMethodget_nowait
Best-effort non-async read — safe if no await between read and use.
livekit-agents/livekit/agents/utils/aio/counter.py:43
↓ 9 callersMethodlaunch_job
(self, info: RunningJobInfo)
livekit-agents/livekit/agents/ipc/proc_pool.py:164
↓ 9 callersFunctionnew_userdata
()
examples/drive-thru/agent.py:437
↓ 9 callersMethodon_playback_finished
Developers building audio sinks must call this method when a playback/segment is finished. Segments are segmented by calls to flush()
livekit-agents/livekit/agents/voice/io.py:192
↓ 9 callersMethodpush_audio
(self, frame: rtc.AudioFrame)
livekit-agents/livekit/agents/voice/amd/detector.py:302
↓ 9 callersMethodread
(self, b: io.BytesIO)
livekit-agents/livekit/agents/ipc/proto.py:147
↓ 9 callersMethodread
(self, b: io.BytesIO)
tests/test_ipc.py:46
↓ 9 callersMethodrun
(self)
livekit-agents/livekit/agents/ipc/proc_client.py:57
↓ 9 callersMethodstart_span
(self, *args: Any, **kwargs: Any)
livekit-agents/livekit/agents/telemetry/traces.py:73
↓ 9 callersMethodtruncate
Truncate the chat context to the last N items in place. Removes leading function calls to avoid partial function outputs. Preserves t
livekit-agents/livekit/agents/llm/chat_context.py:530
↓ 9 callersMethodupdate
(self)
livekit-agents/livekit/agents/cli/_legacy.py:783
↓ 9 callersMethodwait_for_playout
Wait for the past audio segments to finish playing out. Returns: PlaybackFinishedEvent: The event that was emitted when
livekit-agents/livekit/agents/voice/io.py:221
↓ 8 callersFunction_build_tts_request
(opts: _TTSOptions, *, text: str = "")
livekit-plugins/livekit-plugins-fishaudio/livekit/plugins/fishaudio/tts.py:234
↓ 8 callersMethod_check_duplicate
( self, fnc_name: str, *, on_duplicate: DuplicateMode, confirm_duplica
livekit-agents/livekit/agents/voice/tool_executor.py:523
↓ 8 callersFunction_cleanup
Drain and close a session, suppressing errors from missing context.
tests/test_recording.py:59
↓ 8 callersFunction_create_simple_session
Create a minimal AgentSession without TranscriptSynchronizer to avoid leaked tasks.
tests/test_recording.py:45
↓ 8 callersFunction_duration_to_seconds
(duration: Duration | timedelta)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py:934
↓ 8 callersFunction_get_tool_params
(tool: FunctionTool | RawFunctionTool)
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:185
↓ 8 callersMethod_handle_call
(self, ctx: RunContext[Any], raw_arguments: dict[str, object])
livekit-agents/livekit/agents/beta/toolsets/tool_proxy.py:113
↓ 8 callersFunction_make_stream
Construct a Soniox `SpeechStream` without spawning its real `_main_task`. Patches `asyncio.create_task` (the call site in `RecognizeStream.__init
tests/test_plugin_soniox_stt.py:156
↓ 8 callersFunction_mock_ctx
()
tests/test_tool_proxy.py:70
↓ 8 callersFunction_normalize_optional_string
(value: object)
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_plugin.py:1614
↓ 8 callersMethod_on_track_available
( self, track: rtc.RemoteTrack, publication: rtc.RemoteTrackPublication, parti
livekit-agents/livekit/agents/voice/room_io/_input.py:191
← previousnext →201–300 of 7,987, ranked by callers