MCPcopy Index your code

hub / github.com/livekit/agents / functions

Functions7,987 in github.com/livekit/agents

↓ 22 callersMethodrecv
(self)
livekit-agents/livekit/agents/utils/aio/channel.py:100
↓ 22 callersMethodwrite
(self, b: io.BytesIO)
tests/test_ipc.py:40
↓ 21 callersMethodon_detached
(self)
livekit-agents/livekit/agents/voice/io.py:67
↓ 21 callersMethodpush
(self, frame: rtc.AudioFrame | float)
tests/fake_io.py:20
↓ 21 callersMethodpush_text
(self, text: str)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/realtime_api.py:182
↓ 21 callersMethodschedule
(self)
livekit-agents/livekit/agents/utils/aio/debounce.py:14
↓ 20 callersMethod_handle_events
Handle VAD (Voice Activity Detection) events.
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:1634
↓ 20 callersFunction_insert
(conn: apsw.Connection, table: str, row: dict[str, Any])
examples/hotel_receptionist/hotel_db.py:2050
↓ 20 callersFunction_make_activity
(agent: Agent, stt: object, turn_detection: object = None)
tests/test_audio_recognition_handoff.py:20
↓ 20 callersFunction_run_script
(script: str, *, timeout: int = TIMEOUT_SEC)
livekit-plugins/livekit-blockguard/test_blockguard.py:30
↓ 20 callersMethodaclose
(self)
livekit-agents/livekit/agents/voice/remote_session.py:387
↓ 20 callersMethoddone
(self)
livekit-agents/livekit/agents/utils/aio/wait_group.py:26
↓ 20 callersMethodflush
(self)
tests/fake_io.py:154
↓ 20 callersMethodon_user_speech_started
(self)
livekit-agents/livekit/agents/voice/amd/classifier.py:185
↓ 20 callersFunctionprepare_function_arguments
Create the positional and keyword arguments to call a function tool from the raw function output from the LLM. Argument-validation failures (
livekit-agents/livekit/agents/llm/utils.py:470
↓ 20 callersMethodput
Mark a connection as available for reuse. If connection has been reset, it will not be added to the pool. Args: conn: Th
livekit-agents/livekit/agents/utils/connection_pool.py:127
↓ 20 callersMethodstart
(self)
livekit-agents/livekit/agents/voice/remote_session.py:380
↓ 20 callersMethodstart_listening
Open the input gate and arm the no-speech timer. Call once we expect audible speech to begin (e.g. after sip answer for outbound call
livekit-agents/livekit/agents/voice/amd/classifier.py:165
↓ 20 callersMethodupdate_tools
Updates the agent's available function tools. If the agent is running in realtime mode, this method also updates the tools f
livekit-agents/livekit/agents/voice/agent.py:189
↓ 19 callersFunction_event
(signal_type: str, *, occured_at: float | None = None)
livekit-plugins/livekit-plugins-sarvam/tests/test_speech_timing.py:42
↓ 19 callersMethodis_function_call
Verify this event is a function call with matching details. Args: name (str, optional): Expected function name.
livekit-agents/livekit/agents/voice/run_result.py:597
↓ 19 callersMethodis_function_call_output
Verify this event is a function call output with matching details. Args: output (str, optional): Expected output text.
livekit-agents/livekit/agents/voice/run_result.py:636
↓ 19 callersMethodlookup_backchannel
(self, language: LanguageCode | None)
livekit-agents/livekit/agents/inference/eot/languages.py:96
↓ 19 callersMethodno_more_events
Assert that there are no further events. Raises: AssertionError: If unexpected events remain. Example:
livekit-agents/livekit/agents/voice/run_result.py:483
↓ 19 callersMethodstart
(self)
examples/hotel_receptionist/ui_view.py:30
↓ 19 callersMethodstream
( self, *, language: str | None = None, conn_options: APIConnectOptions = DEFA
tests/fake_stt.py:136
↓ 19 callersMethodunlikely_threshold
(self, language: LanguageCode | None)
livekit-agents/livekit/agents/voice/turn.py:46
↓ 18 callersFunction_make_classifier
( llm: FakeLLM | None = None, *, human_speech_threshold: float = 2.5, human_silence_threshold:
tests/test_amd_classifier.py:27
↓ 18 callersFunction_make_stt
Helper to create STT with required credentials.
tests/test_inference_stt_fallback.py:18
↓ 18 callersMethodadd
Adds an AgentTask to the TaskGroup. Args: task_factory (Callable): A callable that returns a task instance id (str):
livekit-agents/livekit/agents/beta/workflows/task_group.py:73
↓ 18 callersMethodconnection
Get a connection from the pool and automatically return it when done. Yields: An active connection object
livekit-agents/livekit/agents/utils/connection_pool.py:81
↓ 18 callersMethodon_user_speech_ended
(self, silence_duration: float)
livekit-agents/livekit/agents/voice/amd/classifier.py:202
↓ 18 callersMethodpredict
(self)
livekit-agents/livekit/agents/voice/turn.py:71
↓ 18 callersMethodpush
(self, value: T)
livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallestai/stt.py:68
↓ 18 callersMethodreplace_audio_tail
Switch the tail sink at the bottom of the chain, keeping wrappers attached. Walks the chain looking for a :class:`_AudioSinkProxy` and swaps
livekit-agents/livekit/agents/voice/io.py:677
↓ 18 callersMethodspeak
(self, message: str)
examples/telephony/bank-ivr/ivr_system_agent.py:336
↓ 18 callersMethodupdate
(self, token: dict[str, Any])
livekit-plugins/livekit-plugins-soniox/livekit/plugins/soniox/stt.py:693
↓ 17 callersMethod__new__
( cls, text: str, start_time: NotGivenOr[float] = NOT_GIVEN, end_time: NotGive
livekit-agents/livekit/agents/types.py:144
↓ 17 callersFunction_final_token
(text: str, language: str, translation_status: str | None = None)
tests/test_plugin_soniox_stt.py:211
↓ 17 callersMethodcapture_frame
(self, frame: rtc.AudioFrame)
tests/fake_io.py:94
↓ 17 callersMethodflatten
Flatten the tool context to a list of tools.
livekit-agents/livekit/agents/llm/tool_context.py:518
↓ 17 callersMethodjudge
Evaluate whether the message fulfills the given intent. Args: llm_v (llm.LLM): LLM instance for judgment. in
livekit-agents/livekit/agents/voice/run_result.py:878
↓ 17 callersMethodpush
Add a value to the accumulator
livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/_utils.py:23
↓ 17 callersMethodupdate_chat_ctx
Updates the agent's chat context. If the agent is running in realtime mode, this method also updates the chat context for th
livekit-agents/livekit/agents/voice/agent.py:220
↓ 16 callersMethod_handle_transcript_data
Handle transcription result messages.
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:1577
↓ 16 callersFunctionconnect_room
( identity: str, room_name: str, *, kind: str | None = None, agent: bool = False )
tests/test_room.py:66
↓ 16 callersMethodon_attached
(self)
livekit-agents/livekit/agents/voice/io.py:63
↓ 16 callersMethodregister_session
(self, session: AgentSession)
livekit-agents/livekit/agents/voice/remote_session.py:366
↓ 16 callersMethodstart
(self, agent_session: AgentSession, room: rtc.Room)
livekit-agents/livekit/agents/voice/avatar/_types.py:86
↓ 16 callersMethodupdate_options
Update STT configuration options.
livekit-agents/livekit/agents/inference/stt.py:618
↓ 15 callersFunction_make_stream_with_transport
Construct a stream wired to a scripted transport. The cloud model starts with empty thresholds (its defaults arrive via ``SessionCreated`` —
tests/test_audio_turn_detector_fallback.py:129
↓ 15 callersMethod_run_eou_detection
( self, chat_ctx: llm.ChatContext, *, trigger: Literal["vad", "stt", "manual"]
livekit-agents/livekit/agents/voice/audio_recognition.py:1311
↓ 15 callersMethod_update_agent_state
( self, state: AgentState, *, otel_context: otel_context.Context | None = None
livekit-agents/livekit/agents/voice/agent_session.py:1609
↓ 15 callersMethod_update_defaults
( self, server_thresholds: dict[str, float], server_default: float, backchanne
livekit-agents/livekit/agents/inference/eot/languages.py:119
↓ 15 callersMethodadd
(self, item: OrderedItem)
examples/drive-thru/order.py:65
↓ 15 callersMethodconnect
Open the WebSocket and start the send/recv/keepalive loops.
livekit-plugins/livekit-plugins-soniox/livekit/plugins/soniox/tts.py:393
↓ 15 callersMethodlogging_extra
(self)
livekit-agents/livekit/agents/ipc/supervised_proc.py:634
↓ 15 callersFunctionopen
Bind a process-local aiohttp.ClientSession to the current asyncio context. Use this when running plugins outside a job worker (e.g. tests, script
livekit-agents/livekit/agents/utils/http_context.py:66
↓ 15 callersMethodsend_nowait
(self, event: stt.SpeechEvent)
tests/test_plugin_elevenlabs_stt.py:18
↓ 15 callersFunctionspeak_time
A clock time as natural speech, e.g. '7 PM', '6:30 PM'.
examples/hotel_receptionist/hotel_db.py:68
↓ 14 callersMethod_queue_input
(self, coro: Any)
livekit-plugins/livekit-plugins-browser/livekit/plugins/browser/session.py:177
↓ 14 callersMethodcreate
( allow_interruptions: bool = True, input_details: InputDetails = DEFAULT_INPUT_DETAILS, )
livekit-agents/livekit/agents/voice/speech_handle.py:69
↓ 14 callersMethodend_input
(self)
livekit-agents/livekit/agents/tts/tts.py:887
↓ 14 callersMethodflush
(self)
livekit-agents/livekit/agents/tts/tts.py:878
↓ 14 callersMethodinitialize
( self, *, request_id: str, sample_rate: int, num_channels: int,
livekit-agents/livekit/agents/tts/tts.py:755
↓ 14 callersMethodlistener_count
(self, event: str)
tests/test_room_io.py:42
↓ 14 callersMethodpushed_duration
(self, idx: int = -1)
livekit-agents/livekit/agents/tts/tts.py:744
↓ 14 callersMethodsend_event
(self, event: RealtimeClientEvent | dict[str, Any])
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/realtime_model.py:852
↓ 14 callersMethodsetup
(self, *, reload: bool = False)
livekit-agents/livekit/agents/beta/toolsets/tool_proxy.py:93
↓ 13 callersFunction_make_chat_ctx_stub
ChatContext stub that survives the `.copy()` + `.add_message` + `.items[-N:]` calls inside `_run_eou_detection`.
tests/test_audio_recognition_turn_detection.py:120
↓ 13 callersMethodaclose
(self)
examples/other/translation/multi-user-translator.py:111
↓ 13 callersMethodadd_message
(message: dict[str, Any])
livekit-plugins/livekit-plugins-speechmatics/livekit/plugins/speechmatics/stt.py:656
↓ 13 callersMethodchat
( self, *, chat_ctx: ChatContext, tools: list[Tool] | None = None, con
livekit-agents/livekit/agents/llm/llm.py:135
↓ 13 callersMethodremove
Remove a specific connection from the pool. Marks the connection to be closed during the next drain cycle. Args: conn: T
livekit-agents/livekit/agents/utils/connection_pool.py:147
↓ 13 callersMethodsay
(self, text: Any, **kwargs: Any)
tests/test_filler.py:100
↓ 13 callersMethodsend_message
(self, msg: agent_pb.AgentSessionMessage)
livekit-agents/livekit/agents/voice/remote_session.py:65
↓ 13 callersMethodset_audio_enabled
(self, enable: bool)
livekit-agents/livekit/agents/voice/io.py:466
↓ 13 callersMethodwait_if_not_interrupted
(self, aw: list[asyncio.futures.Future[Any]])
livekit-agents/livekit/agents/voice/speech_handle.py:201
↓ 12 callersFunction_build_cli
(server: AgentServer)
livekit-agents/livekit/agents/cli/_legacy.py:1607
↓ 12 callersFunction_collect_text
(gen_ev: llm.GenerationCreatedEvent)
tests/test_realtime/test_realtime.py:79
↓ 12 callersFunction_input_task
(stream: SynthesizeStream, text: str)
tests/test_tts_fallback.py:92
↓ 12 callersMethod_interval_for_retry
Return the interval for the given number of retries. The first retry is immediate, and then uses specified retry_interval
livekit-agents/livekit/agents/types.py:107
↓ 12 callersFunction_make_server
(**kwargs)
tests/test_cli_log_level.py:14
↓ 12 callersFunction_make_stream_under_test
( *, eos_fallback_timeout: float = 0.01 )
livekit-plugins/livekit-plugins-sarvam/tests/test_speech_timing.py:16
↓ 12 callersFunction_normalize_fallback
( fallback: list[FallbackModelType] | FallbackModelType, )
livekit-agents/livekit/agents/inference/tts.py:123
↓ 12 callersMethodfail
Mark the session as failed. Args: reason: Optional reason for the failure (stored separately from the tag).
livekit-agents/livekit/agents/observability.py:63
↓ 12 callersMethodinterrupt
Interrupt the current speech generation and any queued speeches. Returns: An asyncio.Future that completes when the interruption
livekit-agents/livekit/agents/voice/agent_activity.py:1398
↓ 12 callersMethodpush_timed_transcript
(self, delta_text: TimedString | list[TimedString])
livekit-agents/livekit/agents/tts/tts.py:865
↓ 12 callersMethodremove
Remove a tag from the session. Args: tag: The tag string to remove.
livekit-agents/livekit/agents/observability.py:83
↓ 12 callersMethodreset
(self)
livekit-agents/livekit/agents/voice/ivr/ivr_activity.py:125
↓ 12 callersMethodset_participant
Switch audio and video streams to specified participant
livekit-agents/livekit/agents/voice/room_io/room_io.py:296
↓ 12 callersMethodsetup
(self, *, reload: bool = False)
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:106
↓ 12 callersFunctionspeak
(agent: Agent, instructions: str)
examples/telephony/bank-ivr/ivr_system_agent.py:62
↓ 12 callersFunctionspeech_only
The conversation without tool mechanics, for handing to a sub-task. Tool calls in the history are scoped to the agent that made them. A sub-t
examples/hotel_receptionist/context.py:8
↓ 12 callersMethodstart
(self)
livekit-agents/livekit/agents/ipc/proc_pool.py:88
↓ 12 callersMethodsynthesize
( self, text: str, *, conn_options: APIConnectOptions = DEFAULT_API_CONNECT_OPTIONS )
livekit-agents/livekit/agents/tts/tts.py:125
↓ 12 callersMethodtrace
(self, message: str, *args: Any, **kwargs: Any)
livekit-agents/livekit/agents/log.py:11
↓ 11 callersFunction_assert_eq
(buf: AudioArrayBuffer, expected: list[int])
tests/test_utils/test_audio_array_buffer.py:28
↓ 11 callersFunction_chat_item_to_proto
(item: llm.ChatItem)
livekit-agents/livekit/agents/voice/remote_session.py:280
↓ 11 callersMethod_conversation_item_added
(self, message: llm.ChatMessage)
livekit-agents/livekit/agents/voice/agent_session.py:1731
← previousnext →101–200 of 7,987, ranked by callers