Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/livekit/agents
/ functions
Functions
7,987 in github.com/livekit/agents
⨍
Functions
7,987
◇
Types & classes
1,654
↳
Endpoints
22
↓ 2 callers
Method
advance
(self, seconds: float)
tests/virtual_time.py:230
↓ 2 callers
Function
asend_message
(dplx: utils.aio.duplex_unix._AsyncDuplex, msg: Message)
livekit-agents/livekit/agents/ipc/channel.py:50
↓ 2 callers
Method
assert_audio_continuous
Assert RMS stays above `min_rms` for `duration` seconds. Raises `AssertionError` if RMS drops below threshold at any sample.
tests/utils/audio_test.py:181
↓ 2 callers
Function
assert_valid_synthesized_audio
( *, frames: AudioBuffer, text: str, sample_rate: int, num_channels: int )
tests/test_tts.py:66
↓ 2 callers
Method
attach
(self, stream: _BaseStreamingTurnDetectorStream)
livekit-agents/livekit/agents/inference/eot/base.py:54
↓ 2 callers
Function
build_combined_graph
Graph with both fake LLM and StreamWriter for multi-mode testing.
tests/test_langgraph.py:67
↓ 2 callers
Function
build_expected
Construct the expected end state by applying `expected_state` SQL to a fresh seed. The agent's DB is compared against this by *state* (see diff_da
examples/hotel_receptionist/benchmark.py:122
↓ 2 callers
Method
build_index
(self, items: list[SearchItem])
livekit-agents/livekit/agents/beta/toolsets/tool_search.py:276
↓ 2 callers
Function
build_legacy_openai_schema
non-strict mode tool description see https://serde.rs/enum-representations.html for the internally tagged representation
livekit-agents/livekit/agents/llm/utils.py:209
↓ 2 callers
Function
build_seed_bytes
(today: date)
examples/hotel_receptionist/fake_data/seed.py:291
↓ 2 callers
Method
calculate_total_card_balance
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:205
↓ 2 callers
Method
calculate_total_deposits
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:197
↓ 2 callers
Method
cancel
(self, call_id: str)
livekit-agents/livekit/agents/voice/tool_executor.py:372
↓ 2 callers
Method
check_loop_detection
(self)
livekit-agents/livekit/agents/voice/ivr/ivr_activity.py:134
↓ 2 callers
Method
clear_audio
(self)
livekit-agents/livekit/agents/llm/realtime.py:241
↓ 2 callers
Method
clear_buffer
(self)
tests/test_audio_sink_proxy.py:77
↓ 2 callers
Method
close
(self)
livekit-agents/livekit/agents/utils/aio/duplex_unix.py:111
↓ 2 callers
Method
close_context
Close a specific context
livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/tts.py:659
↓ 2 callers
Function
coherence_judge
Judge that evaluates if responses are coherent and logical. Checks if the agent presents ideas in an organized manner without contradictions
livekit-agents/livekit/agents/evals/judge.py:462
↓ 2 callers
Method
commit_user_turn
Commit the user turn and generate a reply. Returns a future that resolves with the user's audio transcript once STT is complete and e
livekit-agents/livekit/agents/voice/agent_session.py:1311
↓ 2 callers
Method
compare_and_swap
(self, expected: int, new: int)
livekit-agents/livekit/agents/utils/aio/counter.py:29
↓ 2 callers
Function
compose_instructions
(persona: Persona)
examples/avatar/personas.py:224
↓ 2 callers
Function
conciseness_judge
Judge that evaluates if responses are appropriately concise. Critical for voice AI where brevity matters. Checks for unnecessary verbosity, r
livekit-agents/livekit/agents/evals/judge.py:482
↓ 2 callers
Function
concurrency_mode
Resolve the effective run mode. Under pytest-xdist (`-n`) concurrency can't work -- a group shares one event loop and xdist would split it ac
tests/concurrency.py:177
↓ 2 callers
Function
configure_hamming
Configure Hamming monitoring export for LiveKit AgentSession. After configuring, attach to each AgentSession via ``hamming.attach_session(session
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_setup.py:59
↓ 2 callers
Function
consume
(idx: int, peer)
tests/test_aio_itertools.py:50
↓ 2 callers
Method
cpu_percent
CPU usage percentage between 0 and 1
livekit-agents/livekit/agents/utils/hw/cpu.py:19
↓ 2 callers
Function
create_function_response
( output: llm.FunctionCallOutput, *, vertexai: bool = False, tool_response_scheduling: NotGive
livekit-plugins/livekit-plugins-google/livekit/plugins/google/utils.py:51
↓ 2 callers
Function
create_mock_room
()
livekit-agents/livekit/agents/ipc/mock_room.py:9
↓ 2 callers
Method
create_prompt_end_block
(self)
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:290
↓ 2 callers
Method
create_text_content_block
( self, content_name: str, role: ROLE, content: str, )
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:266
↓ 2 callers
Method
create_text_content_event
( self, content_name: str, content: str, )
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:470
↓ 2 callers
Method
create_text_content_start_event
( self, content_name: str, role: ROLE, )
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:400
↓ 2 callers
Function
create_tools_config
( tool_ctx: llm.ToolContext, *, tool_behavior: NotGivenOr[types.Behavior] = NOT_GIVEN, use_par
livekit-plugins/livekit-plugins-google/livekit/plugins/google/utils.py:20
↓ 2 callers
Method
customer_exists
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:173
↓ 2 callers
Method
decrement
(self, n: int = 1)
livekit-agents/livekit/agents/utils/aio/counter.py:16
↓ 2 callers
Method
delete
(self, item_id: str)
livekit-agents/livekit/agents/llm/remote_chat_context.py:74
↓ 2 callers
Method
delete
(cls, url: str, **kwargs)
tests/toxic_proxy.py:53
↓ 2 callers
Method
destroy
(self, proxy: Proxy)
tests/toxic_proxy.py:197
↓ 2 callers
Method
detach
(self)
livekit-agents/livekit/agents/utils/aio/duplex_unix.py:103
↓ 2 callers
Method
detach
(self)
livekit-agents/livekit/agents/inference/eot/base.py:55
↓ 2 callers
Method
do_inference
(self, method: str, data: bytes)
livekit-agents/livekit/agents/ipc/job_proc_lazy_main.py:144
↓ 2 callers
Function
drain_send_queue
Yield until the outbound channel is empty (sender task has drained it).
tests/fake_turn_detector_ws.py:149
↓ 2 callers
Function
drop_unsupported_params
Remove parameters that are not supported by the given model. Strips any provider prefix (e.g. ``openai/o3-pro`` -> ``o3-pro``) before matchin
livekit-agents/livekit/agents/inference/llm.py:77
↓ 2 callers
Method
dtmf_reply_running
(self)
livekit-agents/livekit/agents/beta/workflows/dtmf_inputs.py:183
↓ 2 callers
Function
encode
Encode a rtc.VideoFrame to a portable image format (JPEG or PNG). See EncodeOptions for more details.
livekit-agents/livekit/agents/utils/images/image.py:76
↓ 2 callers
Method
end_input
Mark the end of input, no more audio will be pushed
livekit-agents/livekit/agents/voice/transcription/_speaking_rate.py:264
↓ 2 callers
Method
ensure_session
(self)
livekit-plugins/livekit-plugins-telnyx/livekit/plugins/telnyx/common.py:27
↓ 2 callers
Method
evaluate
Evaluate a conversation with all judges. Automatically tags the session with results when called within a job context. Args:
livekit-agents/livekit/agents/evals/evaluation.py:132
↓ 2 callers
Method
event
(self)
livekit-agents/livekit/agents/voice/run_result.py:594
↓ 2 callers
Function
filter_emoji
Filter out emojis from the text.
livekit-agents/livekit/agents/voice/transcription/filters.py:150
↓ 2 callers
Method
find_booking
( self, *, last_name: str, confirmation_code: str | None = None, email
examples/hotel_receptionist/hotel_db.py:572
↓ 2 callers
Method
find_deposit_account
(self, customer_id: str, account_number: str)
examples/telephony/bank-ivr/mock_bank_service.py:191
↓ 2 callers
Method
flush
(self)
livekit-agents/livekit/agents/inference/eot/base.py:52
↓ 2 callers
Method
flush
(self)
tests/test_turn_detection_fsm.py:50
↓ 2 callers
Function
format_task
(task)
tests/conftest.py:304
↓ 2 callers
Function
format_transactions
(transactions: Iterable[Transaction])
examples/telephony/bank-ivr/mock_bank_service.py:234
↓ 2 callers
Method
format_words
(self, words: list[str])
livekit-agents/livekit/agents/tokenize/tokenizer.py:76
↓ 2 callers
Function
forward_generation
Forward one segment's audio/text to the outputs, then wait for its playout. Returns when the segment has fully played, been interrupted, or never
livekit-agents/livekit/agents/voice/generation.py:444
↓ 2 callers
Method
from_cache_entry
Initialize the event from a cache entry. Args: entry: The cache entry to initialize the event from. is_interruption:
livekit-agents/livekit/agents/inference/interruption.py:176
↓ 2 callers
Function
get_api_key
(api_key: str | None = None)
livekit-plugins/livekit-plugins-telnyx/livekit/plugins/telnyx/common.py:15
↓ 2 callers
Function
get_content_type_from_output_format
Get MIME type based on output format
livekit-plugins/livekit-plugins-upliftai/livekit/plugins/upliftai/tts.py:53
↓ 2 callers
Method
get_doctor_by_name
(self, name: str)
examples/healthcare/fake_database.py:69
↓ 2 callers
Function
get_dtmf_task
(ask_for_confirmation: bool)
tests/test_workflows.py:56
↓ 2 callers
Method
get_event_type
(cls, json_data: dict)
livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/events.py:235
↓ 2 callers
Method
get_invoice
(self, booking_code: str)
examples/hotel_receptionist/hotel_db.py:606
↓ 2 callers
Method
get_outstanding_balance
(self, name: str)
examples/healthcare/fake_database.py:129
↓ 2 callers
Method
get_rewards
(self, customer_id: str)
examples/telephony/bank-ivr/mock_bank_service.py:226
↓ 2 callers
Function
get_runtime
()
livekit-plugins/livekit-plugins-hamming/livekit/plugins/hamming/_plugin.py:1106
↓ 2 callers
Method
go_back
(self)
livekit-plugins/livekit-plugins-browser/livekit/plugins/browser/page_actions.py:202
↓ 2 callers
Method
go_forward
(self)
livekit-plugins/livekit-plugins-browser/livekit/plugins/browser/page_actions.py:206
↓ 2 callers
Function
handoff_judge
Judge that evaluates context preservation across agent handoffs. Handoffs can be silent (seamless) or explicit ("transferring you to..."). Ei
livekit-agents/livekit/agents/evals/judge.py:364
↓ 2 callers
Method
init_recording
(self, options: RecordingOptions)
livekit-agents/livekit/agents/job.py:762
↓ 2 callers
Method
initialize
(self)
livekit-agents/livekit/agents/ipc/proc_client.py:35
↓ 2 callers
Method
initialize
(self, init_req: InitializeRequest, client: _ProcClient)
livekit-agents/livekit/agents/ipc/job_proc_lazy_main.py:216
↓ 2 callers
Method
interrupt
(self)
livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/realtime_api.py:809
↓ 2 callers
Function
is_cloud
(url: str)
livekit-agents/livekit/agents/utils/misc.py:40
↓ 2 callers
Function
is_context_type
(ty: type, *, allow_subclasses: bool = False)
livekit-agents/livekit/agents/llm/utils.py:121
↓ 2 callers
Function
is_end_token
Return True if the given token marks an end or finalized event.
livekit-plugins/livekit-plugins-soniox/livekit/plugins/soniox/stt.py:55
↓ 2 callers
Function
is_rime_arcana_model
(model: str)
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/gateway_adapter.py:395
↓ 2 callers
Function
is_virtual_time
(node: pytest.Item)
tests/virtual_time.py:96
↓ 2 callers
Method
list_customer_ids
(self)
examples/telephony/bank-ivr/mock_bank_service.py:170
↓ 2 callers
Method
list_restaurant_availability
( self, *, on_date: date, party_size: int )
examples/hotel_receptionist/hotel_db.py:561
↓ 2 callers
Method
list_tools
(self)
livekit-agents/livekit/agents/llm/mcp.py:143
↓ 2 callers
Function
livekit_item_to_openai_item
(item: llm.ChatItem)
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/utils.py:131
↓ 2 callers
Function
lookup_function
Lookup a registered function by key. Args: key: Unique identifier for the function. Returns: RegisteredFunction: the functio
livekit-plugins/livekit-durable/livekit/durable/registry.py:93
↓ 2 callers
Function
make_agent
(p: Persona)
examples/avatar/agent.py:92
↓ 2 callers
Function
make_avatar
(p: Persona)
examples/avatar/agent.py:80
↓ 2 callers
Function
make_function_call_output
Create a FunctionCallResult, handling ToolError, StopResponse, and validation.
livekit-agents/livekit/agents/llm/utils.py:660
↓ 2 callers
Function
map_by_sizes
( items: list[MenuItem], )
examples/drive-thru/database.py:589
↓ 2 callers
Function
mock_tool_1
Test tool 1 Args: arg1: The first argument opt_arg2: The optional second argument
tests/test_tools.py:36
↓ 2 callers
Method
mock_tool_in_agent
Mock tool in agent Args: arg1: The first argument opt_arg2: The optional second argument
tests/test_tools.py:92
↓ 2 callers
Method
monotonic_read
Strictly-increasing wall-clock read off this loop's clock (see _VirtualClock.read).
tests/virtual_time.py:310
↓ 2 callers
Method
navigate
(self, url: str)
livekit-plugins/livekit-plugins-browser/livekit/plugins/browser/page_actions.py:198
↓ 2 callers
Function
normalize_region_override
( region_override: str | list[str] | None, )
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/gateway_adapter.py:286
↓ 2 callers
Function
normalize_tts_voice
(model: str, voice: str)
livekit-plugins/livekit-plugins-slng/livekit/plugins/slng/gateway_adapter.py:460
↓ 2 callers
Method
notify_playback_started
Notify the sender that playback has started
livekit-agents/livekit/agents/voice/avatar/_types.py:36
↓ 2 callers
Method
on_end_of_overlap_speech
End interruption inference when agent is speaking and overlap speech ends.
livekit-agents/livekit/agents/voice/audio_recognition.py:476
↓ 2 callers
Method
on_final_transcript
(self, ev: stt.SpeechEvent, *, speaking: bool | None = None)
livekit-agents/livekit/agents/voice/audio_recognition.py:135
↓ 2 callers
Method
on_interim_transcript
(self, ev: stt.SpeechEvent, *, speaking: bool | None)
livekit-agents/livekit/agents/voice/audio_recognition.py:134
← previous
next →
1,301–1,400 of 7,987, ranked by callers