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
↓ 5 callers
Method
_set_result
(self, result: WarmTransferResult | Exception)
livekit-agents/livekit/agents/beta/workflows/warm_transfer.py:254
↓ 5 callers
Function
_split_frame
(frame: rtc.AudioFrame, position: float)
livekit-agents/livekit/agents/voice/recorder_io/recorder_io.py:564
↓ 5 callers
Method
_start_new_generation
Start a new response generation.
livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/realtime_model.py:807
↓ 5 callers
Method
_status
(self)
examples/hotel_receptionist/get_card.py:76
↓ 5 callers
Method
_status
(self)
examples/hotel_receptionist/book_restaurant.py:59
↓ 5 callers
Function
_stt
(**kwargs: object)
tests/test_plugin_elevenlabs_stt.py:86
↓ 5 callers
Method
_summarize
( self, llm_v: LLM, *, keep_last_turns: int = 2, )
livekit-agents/livekit/agents/llm/chat_context.py:739
↓ 5 callers
Method
_synthesize_with_stream
Helper method to implement synthesize() using stream() for TTS providers that only support streaming inference. This creates a stream
livekit-agents/livekit/agents/tts/tts.py:136
↓ 5 callers
Function
_to_deepgram_url
(opts: dict, base_url: str, *, websocket: bool)
livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/_utils.py:41
↓ 5 callers
Function
_tool_completed
(out: ToolExecutionOutput)
livekit-agents/livekit/agents/voice/generation.py:576
↓ 5 callers
Method
_try_emit_result
(self)
livekit-agents/livekit/agents/voice/amd/classifier.py:302
↓ 5 callers
Method
_update_dob_impl
( self, year: int, month: int, day: int, ctx: RunContext )
livekit-agents/livekit/agents/beta/workflows/dob.py:151
↓ 5 callers
Method
_upsert_item
Update an item with the same ID if it exists, otherwise append it.
livekit-agents/livekit/agents/llm/chat_context.py:729
↓ 5 callers
Method
_wakeup_next
(self, waiters: deque[asyncio.Future[T | None]])
livekit-agents/livekit/agents/utils/aio/channel.py:64
↓ 5 callers
Function
_ws_message
Build the outer WS message dict expected by ``_handle_transcript_data``. Default shape mirrors a Saaras v3 streaming final-transcript chunk.
livekit-plugins/livekit-plugins-sarvam/tests/test_language_probability.py:45
↓ 5 callers
Method
aclose
(self)
livekit-agents/livekit/agents/llm/realtime.py:119
↓ 5 callers
Method
aclose
(self)
livekit-agents/livekit/agents/voice/room_io/_output.py:83
↓ 5 callers
Function
add_event_message
(agent: Agent, *, content: str)
examples/telephony/bank-ivr/ivr_system_agent.py:96
↓ 5 callers
Function
apply_instructions_modality
( chat_ctx: ChatContext, *, modality: Literal["audio", "text"] )
livekit-agents/livekit/agents/voice/generation.py:925
↓ 5 callers
Method
barrier
(self)
livekit-agents/livekit/agents/voice/transcription/synchronizer.py:583
↓ 5 callers
Function
build_livekit_monitoring_envelope
( *, config: PayloadBuildConfig, report: SessionReportLike, participant_identity: str | None,
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_payload.py:64
↓ 5 callers
Method
cancel
(self)
examples/avatar/actions.py:96
↓ 5 callers
Method
clear_buffer
Clear the buffer, stopping playback immediately
livekit-agents/livekit/agents/voice/io.py:268
↓ 5 callers
Method
contains_function_call
Assert existence of a function call event matching criteria. Args: name (str, optional): Function name to match.
livekit-agents/livekit/agents/voice/run_result.py:501
↓ 5 callers
Method
create_pair
(cls)
tests/test_remote_session.py:30
↓ 5 callers
Method
done
(self)
livekit-agents/livekit/agents/voice/speech_handle.py:138
↓ 5 callers
Method
drain
When timeout isn't None, it will raise asyncio.TimeoutError if the processes didn't finish in time.
livekit-agents/livekit/agents/worker.py:912
↓ 5 callers
Method
flush
Mark the end of the current segment
livekit-agents/livekit/agents/stt/stt.py:493
↓ 5 callers
Method
flush
(self)
tests/test_audio_sink_proxy.py:74
↓ 5 callers
Method
flush
Force callback to be called with current total if non-zero
livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/_utils.py:33
↓ 5 callers
Method
from_dict
(cls, data: dict[str, Any])
livekit-agents/livekit/agents/llm/chat_context.py:867
↓ 5 callers
Function
get_default_inference_url
Get the default inference URL based on the environment. Priority: 1. LIVEKIT_INFERENCE_URL if set 2. If LIVEKIT_URL contains '.staging.li
livekit-agents/livekit/agents/inference/_utils.py:23
↓ 5 callers
Method
hyphenate_word
Given a word, returns a list of pieces, broken at the possible hyphenation points.
livekit-agents/livekit/agents/tokenize/_basic_hyphenator.py:39
↓ 5 callers
Method
increment
(self, n: int = 1)
livekit-agents/livekit/agents/utils/aio/counter.py:11
↓ 5 callers
Method
kill
forcefully kill the supervised process
livekit-agents/livekit/agents/ipc/supervised_proc.py:356
↓ 5 callers
Function
kind_match
(p: rtc.Participant)
livekit-agents/livekit/agents/utils/participant.py:172
↓ 5 callers
Method
list_room_types_available
( self, *, check_in: date, check_out: date, guests: int, smoki
examples/hotel_receptionist/hotel_db.py:537
↓ 5 callers
Function
menu_instructions
(category: ItemCategory, *, items: list[MenuItem])
examples/drive-thru/database.py:604
↓ 5 callers
Method
on_end_of_turn
(self, info: _EndOfTurnInfo)
tests/test_agent_session.py:1314
↓ 5 callers
Method
on_playback_started
(self, *, created_at: float)
livekit-agents/livekit/agents/voice/io.py:189
↓ 5 callers
Method
on_playback_started
(self, *, created_at: float)
livekit-agents/livekit/agents/voice/transcription/synchronizer.py:666
↓ 5 callers
Method
play
(self, action_id: str)
examples/avatar/actions.py:107
↓ 5 callers
Method
prewarm
Pre-warm connection to the LLM service
livekit-agents/livekit/agents/llm/llm.py:146
↓ 5 callers
Method
push
(self, data: bytes)
livekit-agents/livekit/agents/utils/codecs/decoder.py:180
↓ 5 callers
Method
qsize
the number of elements queued (unread) in the channel buffer
livekit-agents/livekit/agents/utils/aio/channel.py:158
↓ 5 callers
Function
render_prompt
()
livekit-agents/livekit/agents/cli/_legacy.py:1084
↓ 5 callers
Method
rotate_segment
(self)
livekit-agents/livekit/agents/voice/transcription/synchronizer.py:569
↓ 5 callers
Method
search
( self, query: str, items: list[SearchItem], max_results: int )
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:38
↓ 5 callers
Function
session
Yield a function that starts an `AgentSession` for a given agent. Handles LLM lifecycle, the `_TASK_TRANSITION_DELAY` after `start()`, and a
examples/survey/test_survey_agent.py:94
↓ 5 callers
Method
setup
Initialize the MCP server connection and fetch available tools. If the MCP server is not yet connected, this will call ``MCPServer.in
livekit-agents/livekit/agents/llm/mcp.py:448
↓ 5 callers
Function
setup_deepgram_stt_proxy
(toxiproxy: Toxiproxy)
tests/test_tts.py:60
↓ 5 callers
Method
stop
(self)
livekit-agents/livekit/agents/ipc/log_queue.py:29
↓ 5 callers
Function
to_xml
( tag_name: str, content: str | None = None, attrs: dict[str, Any] | None = None, )
livekit-agents/livekit/agents/llm/chat_context.py:957
↓ 5 callers
Method
tokenize
(self, text: str, *, language: str | None = None)
livekit-agents/livekit/agents/tokenize/basic.py:84
↓ 5 callers
Method
update
(self, frame: rtc.AudioFrame)
livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py:70
↓ 5 callers
Method
update_stt
(self, stt: io.STTNode | None, *, pipeline: _STTPipeline | None = None)
livekit-agents/livekit/agents/voice/audio_recognition.py:708
↓ 5 callers
Method
validate
(self)
livekit-plugins/livekit-plugins-azure/livekit/plugins/azure/tts.py:102
↓ 5 callers
Method
wait_for_idle
Wait until the current activity is idle and return it. Re-targets on handoff. Raises ``ActivityClosedError`` if the session is closing,
livekit-agents/livekit/agents/voice/agent_session.py:1366
↓ 5 callers
Method
with_filler
Schedule filler speech while a long-running step blocks the tool. While the context is open, a background scheduler waits for the session to
livekit-agents/livekit/agents/voice/events.py:105
↓ 5 callers
Method
wrap
(self, sent_stream: SentenceStream, audio_emitter: AudioEmitter)
livekit-agents/livekit/agents/tts/stream_pacer.py:35
↓ 4 callers
Function
TTS_opts
Build a _TTSOptions with sensible test defaults, overriding as needed.
tests/test_plugin_fishaudio_tts.py:72
↓ 4 callers
Method
__init__
(self, *, id: str, tools: Sequence[Tool | Toolset] | None = None)
livekit-agents/livekit/agents/llm/tool_context.py:73
↓ 4 callers
Method
__init__
( self, room: rtc.Room, *, track_source: rtc.TrackSource.ValueType | list[rtc.
livekit-agents/livekit/agents/voice/room_io/_input.py:28
↓ 4 callers
Method
__init__
( self, *, voice: GnaniTTSVoices | str = "Karan", model: str = "vachana-voice-
livekit-plugins/livekit-plugins-gnani/livekit/plugins/gnani/tts.py:91
↓ 4 callers
Method
__init__
Create a new instance of xAI STT. Args: enable_interim_results (bool, optional): Whether to return interim (non-final) transcript
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/stt.py:64
↓ 4 callers
Method
__init__
Create a new instance of OpenAI LLM. ``api_key`` must be set to your OpenAI API key, either using the argument or by setting the
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py:89
↓ 4 callers
Method
__init__
(self)
examples/healthcare/agent.py:75
↓ 4 callers
Method
__init__
(self)
examples/survey/agent.py:259
↓ 4 callers
Method
_aclose_impl
( self, *, reason: CloseReason, drain: bool = False, error: (
livekit-agents/livekit/agents/voice/agent_session.py:954
↓ 4 callers
Function
_add_current_word
(start: int, end: int)
livekit-agents/livekit/agents/tokenize/_basic_word.py:42
↓ 4 callers
Function
_agent_audio_publications
All audio publications the user sees from the agent.
tests/test_room.py:266
↓ 4 callers
Function
_apply_text_transforms
( text: AsyncIterable[str], transforms: Sequence[TextTransforms] )
livekit-agents/livekit/agents/voice/transcription/text_transforms.py:17
↓ 4 callers
Function
_build_executor_map
Map each tool to its owning executor: AsyncToolset tools route to that toolset's own executor; everything else falls back to ``default``.
livekit-agents/livekit/agents/voice/tool_executor.py:580
↓ 4 callers
Function
_build_headers
(opts: GnaniTTSOptions)
livekit-plugins/livekit-plugins-gnani/livekit/plugins/gnani/tts.py:213
↓ 4 callers
Function
_build_payload
(opts: GnaniTTSOptions, text: str)
livekit-plugins/livekit-plugins-gnani/livekit/plugins/gnani/tts.py:198
↓ 4 callers
Method
_cancel_backchannel_boundary
(self)
livekit-agents/livekit/agents/voice/audio_recognition.py:376
↓ 4 callers
Method
_cancel_eos_fallback
(self)
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:1000
↓ 4 callers
Method
_cloud
(overrides: Any = NOT_GIVEN)
tests/test_audio_turn_detector_fallback.py:326
↓ 4 callers
Function
_collect_errors
( detector: AdaptiveInterruptionDetector, )
tests/test_interruption/test_interruption_failover.py:57
↓ 4 callers
Method
_confirmation_required
(self, ctx: RunContext)
livekit-agents/livekit/agents/beta/workflows/dob.py:299
↓ 4 callers
Function
_count_caller_turns
How many times the caller has spoken so far - the signal for whether a booking flow was actually driven by the caller or silently re-run by the mo
examples/hotel_receptionist/common.py:39
↓ 4 callers
Function
_create_detector
( mock_session: AsyncMock, *, inference_timeout: float = 0.1 )
tests/test_interruption/test_interruption_failover.py:45
↓ 4 callers
Method
_detach_reusable_resources
Detach reusable resources for handoff to *new_activity*.
livekit-agents/livekit/agents/voice/agent_activity.py:670
↓ 4 callers
Method
_disable_vad_interruption_soon
Disable VAD interruption after the backchannel boundary expires.
livekit-agents/livekit/agents/voice/agent_activity.py:3909
↓ 4 callers
Function
_do_stream
(tts_v: tts.TTS, segments: list[str], *, conn_options: APIConnectOptions)
tests/test_tts.py:471
↓ 4 callers
Function
_download_from_hf_hub
(repo_id: str, filename: str, **kwargs: Any)
livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/base.py:29
↓ 4 callers
Method
_emit_error
(self, api_error: Exception, recoverable: bool)
livekit-agents/livekit/agents/llm/llm.py:269
↓ 4 callers
Method
_emit_error
(self, api_error: Exception, recoverable: bool)
livekit-agents/livekit/agents/inference/interruption.py:485
↓ 4 callers
Method
_emit_error
(self, api_error: Exception, recoverable: bool)
livekit-agents/livekit/agents/stt/stt.py:256
↓ 4 callers
Method
_emit_error
(self, api_error: Exception, recoverable: bool)
livekit-agents/livekit/agents/stt/stt.py:429
↓ 4 callers
Method
_emit_error
(self, error: Exception, recoverable: bool)
livekit-plugins/livekit-plugins-phonic/livekit/plugins/phonic/realtime/realtime_model.py:1032
↓ 4 callers
Method
_emit_error
(self, error: Exception, recoverable: bool)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/realtime_api.py:1531
↓ 4 callers
Method
_emit_recognition_usage
(self)
livekit-plugins/livekit-plugins-azure/livekit/plugins/azure/stt.py:365
↓ 4 callers
Function
_end_of_speech
()
tests/test_audio_recognition_turn_detection.py:215
↓ 4 callers
Function
_extract_test_case_run_id
( *, participant_metadata_raw: str | None, recording_context: RecordingContext | None, )
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_plugin.py:1837
↓ 4 callers
Method
_flush_held_transcripts
Flush held transcripts. When ``force`` is True, all buffered events are emitted unconditionally; this is used during interruption-det
livekit-agents/livekit/agents/voice/audio_recognition.py:517
↓ 4 callers
Function
_get_end_time
(word: cloud_speech_v2.WordInfo | cloud_speech_v1.WordInfo)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py:948
↓ 4 callers
Function
_get_start_time
(word: cloud_speech_v2.WordInfo | cloud_speech_v1.WordInfo)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py:942
↓ 4 callers
Method
_interrupt_by_audio_activity
Interrupt the current speech or generation, and optionally ignore the user transcript until the given timestamp. Args: i
livekit-agents/livekit/agents/voice/agent_activity.py:1781
↓ 4 callers
Function
_is_arcana_ref
(ref: ModelRef)
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/gateway_adapter.py:379
← previous
next →
501–600 of 7,987, ranked by callers