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
↓ 1,258 callers
Function
is_given
(obj: NotGivenOr[_T])
livekit-agents/livekit/agents/utils/misc.py:26
↓ 1,089 callers
Method
get
Get an available connection or create a new one if needed. Returns: An active connection object
livekit-agents/livekit/agents/utils/connection_pool.py:96
↓ 477 callers
Method
create_task
( self, coro: Coroutine[Any, Any, _T], name: str | None = None )
livekit-agents/livekit/agents/utils/aio/task_set.py:18
↓ 362 callers
Method
info
(self)
livekit-agents/livekit/agents/llm/tool_context.py:221
↓ 274 callers
Method
send_nowait
(self, value: T)
livekit-agents/livekit/agents/utils/aio/channel.py:90
↓ 259 callers
Method
time
(self)
tests/virtual_time.py:227
↓ 227 callers
Method
join
(self)
livekit-agents/livekit/agents/tts/tts.py:897
↓ 181 callers
Method
set
(self, value: int)
livekit-agents/livekit/agents/utils/aio/counter.py:25
↓ 163 callers
Method
exception
(self)
livekit-agents/livekit/agents/tts/tts.py:217
↓ 155 callers
Method
done
(self)
livekit-agents/livekit/agents/tts/tts.py:213
↓ 147 callers
Method
clear
Discard all buffered data and reset progressive frame sizing. After clearing, the next :meth:`push` will start from the initial (smal
livekit-agents/livekit/agents/utils/audio.py:208
↓ 133 callers
Method
close
(self)
livekit-plugins/livekit-plugins-telnyx/livekit/plugins/telnyx/common.py:33
↓ 112 callers
Method
add_message
( self, *, role: ChatRole, content: list[ChatContent] | str, id: NotGi
livekit-agents/livekit/agents/llm/chat_context.py:418
↓ 110 callers
Method
copy
( self, *, exclude_function_call: bool = False, exclude_instructions: bool = F
livekit-agents/livekit/agents/llm/chat_context.py:467
↓ 107 callers
Method
items
(self)
livekit-agents/livekit/agents/llm/chat_context.py:407
↓ 106 callers
Method
send_str
(self, message: str)
tests/test_plugin_gradium_stt.py:59
↓ 104 callers
Method
generate_reply
( self, *, instructions: NotGivenOr[str] = NOT_GIVEN, tool_choice: NotGivenOr[
livekit-agents/livekit/agents/llm/realtime.py:227
↓ 99 callers
Method
off
(self, event: str, callback: object)
tests/test_room_io.py:36
↓ 98 callers
Method
aclose
(self, attributes: dict[str, str] | None = None)
tests/test_room_io.py:116
↓ 94 callers
Method
cancel
(self)
livekit-agents/livekit/agents/utils/aio/sleep.py:42
↓ 91 callers
Method
add_done_callback
(self, callback: Callable[[SpeechHandle], None])
livekit-agents/livekit/agents/voice/speech_handle.py:191
↓ 91 callers
Method
wait
(self)
livekit-agents/livekit/agents/utils/aio/wait_group.py:29
↓ 88 callers
Method
on
(self, event: EventTypes, callback: Callable | None = None)
livekit-agents/livekit/agents/voice/agent_session.py:516
↓ 86 callers
Method
start
( self, agent: Agent, *, capture_run: Literal[True], room: NotGivenOr[
livekit-agents/livekit/agents/voice/agent_session.py:612
↓ 84 callers
Method
wait
(self)
livekit-plugins/livekit-plugins-browser/livekit/plugins/browser/page_actions.py:194
↓ 82 callers
Method
get
(cls, url: str, params: dict[str, Any] | None = None, **kwargs)
tests/toxic_proxy.py:48
↓ 80 callers
Method
emit
(self, record: logging.LogRecord)
livekit-agents/livekit/agents/ipc/log_queue.py:93
↓ 75 callers
Method
done
(self)
livekit-agents/livekit/agents/voice/agent.py:774
↓ 75 callers
Method
on
(self, event: str, callback: object)
tests/test_room_io.py:33
↓ 70 callers
Method
get
(self, order_id: str)
examples/drive-thru/order.py:74
↓ 69 callers
Method
add
Add a tag to the session with optional structured metadata. Args: tag: The tag string in "key:value" format (e.g., "voicemail:tru
livekit-agents/livekit/agents/observability.py:74
↓ 69 callers
Method
end_input
Mark the end of input, no more audio will be pushed
livekit-agents/livekit/agents/vad.py:167
↓ 69 callers
Method
register_plugin
(cls, plugin: Plugin)
livekit-agents/livekit/agents/plugin.py:31
↓ 69 callers
Function
replace
Create a text transform that replaces words with new words. Buffers enough text to handle terms that might be split across token boundaries d
livekit-agents/livekit/agents/voice/transcription/text_transforms.py:34
↓ 66 callers
Method
complete
(self, result: TaskResult_T | Exception)
livekit-agents/livekit/agents/voice/agent.py:784
↓ 66 callers
Method
post
(cls, url: str, data: Any = None, json: Any = None, **kwargs)
tests/toxic_proxy.py:58
↓ 65 callers
Method
next_event
(self, *, type: None = None)
livekit-agents/livekit/agents/voice/run_result.py:313
↓ 60 callers
Method
initialize
(self)
livekit-plugins/livekit-plugins-turn-detector/livekit/plugins/turn_detector/base.py:95
↓ 57 callers
Method
cancel
(self)
livekit-agents/livekit/agents/voice/agent.py:777
↓ 56 callers
Method
add
(self, delta: int = 1)
livekit-agents/livekit/agents/utils/aio/wait_group.py:14
↓ 55 callers
Method
close
(self)
tests/virtual_time.py:286
↓ 53 callers
Method
ws_connect
(self, url, headers)
tests/test_plugin_gradium_stt.py:63
↓ 52 callers
Method
receive
(self)
tests/fake_turn_detector_ws.py:50
↓ 49 callers
Method
recv_nowait
(self)
livekit-agents/livekit/agents/utils/aio/channel.py:121
↓ 48 callers
Method
done
(self)
tests/test_remote_session.py:184
↓ 47 callers
Method
_build_log_context
Build consistent logging context.
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/stt.py:952
↓ 47 callers
Method
run
(self, **kwargs)
tests/test_worker_config.py:31
↓ 46 callers
Method
update
Push a progress update into the conversation. The first update releases control to the LLM with ``message`` as the tool's synthetic r
livekit-agents/livekit/agents/voice/events.py:165
↓ 44 callers
Method
format
Formats a log record and serializes to json
livekit-agents/livekit/agents/cli/log.py:114
↓ 42 callers
Method
connect
Connect to the room. This method should be called only once. Args: encryption: End-to-end encryption options. If provided, the Ag
livekit-agents/livekit/agents/job.py:564
↓ 42 callers
Method
execute
Run AMD and return the result. While executing, speech playout authorization is locked. Once the result is available, authorization i
livekit-agents/livekit/agents/voice/amd/detector.py:232
↓ 41 callers
Method
add_user_speech
( self, start_time: float, end_time: float, transcript: str, *, stt_delay: float = 0.2 )
tests/fake_session.py:135
↓ 41 callers
Method
get
(self, item_id: str)
livekit-agents/livekit/agents/llm/remote_chat_context.py:32
↓ 41 callers
Function
get_job_context
(*, required: Literal[True] = True)
livekit-agents/livekit/agents/job.py:70
↓ 40 callers
Method
start
(self)
tests/utils/audio_test.py:72
↓ 40 callers
Method
start_segment
(self, *, segment_id: str)
livekit-agents/livekit/agents/tts/tts.py:800
↓ 39 callers
Method
push
(self, data: bytes)
livekit-agents/livekit/agents/tts/tts.py:856
↓ 39 callers
Method
push
(self, value: T)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/_utils.py:17
↓ 38 callers
Function
check_timestamp
Check if the event timestamp is within the target timestamp +/- max_abs_diff. The event timestamp is scaled by the speed factor. ``max_a
tests/test_agent_session.py:1364
↓ 38 callers
Method
on_end_of_speech
(self, ended_at: float, should_ignore: bool = False)
livekit-agents/livekit/agents/voice/endpointing.py:179
↓ 37 callers
Method
insert
Insert an item or list of items into the chat context by creation time.
livekit-agents/livekit/agents/llm/chat_context.py:453
↓ 36 callers
Method
add_llm
( self, content: str, tool_calls: list[FunctionToolCall] | None = None, *,
tests/fake_session.py:147
↓ 36 callers
Method
add_tts
( self, audio_duration: float, *, input: NotGivenOr[str] = NOT_GIVEN,
tests/fake_session.py:177
↓ 36 callers
Function
create_session
( actions: FakeActions, *, speed_factor: float = 1.0, turn_handling: TurnHandlingOptions | Non
tests/fake_session.py:31
↓ 36 callers
Method
text
The text variant of the instructions. Falls back to the audio variant when no text variant was provided.
livekit-agents/livekit/agents/llm/chat_context.py:73
↓ 36 callers
Method
write
(self, b: io.BytesIO)
livekit-agents/livekit/agents/ipc/proto.py:144
↓ 35 callers
Method
is_message
Verify this event is a message from the given role. Args: role (ChatRole, optional): Expected sender role. Retu
livekit-agents/livekit/agents/voice/run_result.py:668
↓ 35 callers
Method
push_text
Push some text to be synthesized
livekit-agents/livekit/agents/tts/tts.py:627
↓ 35 callers
Method
send_bytes
(self, data: bytes)
livekit-agents/livekit/agents/utils/aio/duplex_unix.py:92
↓ 31 callers
Method
empty
(self)
livekit-agents/livekit/agents/utils/aio/channel.py:168
↓ 31 callers
Method
getvalue
(opt: T | ServerEnvOption[T], devmode: bool)
livekit-agents/livekit/agents/worker.py:141
↓ 31 callers
Method
open
(sock: socket.socket)
livekit-agents/livekit/agents/utils/aio/duplex_unix.py:78
↓ 31 callers
Function
shortuuid
(prefix: str = "")
livekit-agents/livekit/agents/utils/misc.py:22
↓ 30 callers
Method
close
(self)
livekit-agents/livekit/agents/utils/aio/channel.py:133
↓ 30 callers
Method
close
(self)
livekit-agents/livekit/agents/ipc/log_queue.py:120
↓ 30 callers
Method
emit
(self, event: EventTypes, arg: AgentEvent)
livekit-agents/livekit/agents/voice/agent_session.py:525
↓ 30 callers
Method
end_segment
(self)
livekit-agents/livekit/agents/tts/tts.py:838
↓ 30 callers
Method
flush
Flush the buffer and retrieve any remaining audio data as a frame. Returns: list[rtc.AudioFrame]: A list containing any
livekit-agents/livekit/agents/utils/audio.py:174
↓ 30 callers
Method
print
( self, child: RenderableType, *, tag: str = "", tag_style: Style | None = None )
livekit-agents/livekit/agents/cli/_legacy.py:527
↓ 29 callers
Method
aclose
(self)
livekit-agents/livekit/agents/voice/agent_session.py:1083
↓ 29 callers
Method
join
(self)
tests/test_drain_timeout.py:127
↓ 28 callers
Method
isconnected
(self)
tests/test_room_io.py:45
↓ 28 callers
Method
on_change
(self)
examples/hotel_receptionist/ui_view.py:48
↓ 28 callers
Method
on_start_of_speech
(self, started_at: float, overlapping: bool = False)
livekit-agents/livekit/agents/voice/endpointing.py:155
↓ 27 callers
Method
empty
(cls, *, on_change: OnChange | None = None)
examples/hotel_receptionist/hotel_db.py:506
↓ 27 callers
Method
generate_reply
Generate a reply for the agent to speak to the user. Args: user_input (NotGivenOr[str | llm.ChatMessage], optional): The user's i
livekit-agents/livekit/agents/voice/agent_session.py:1200
↓ 27 callers
Function
run_session
(session: AgentSession, agent: Agent, *, drain_delay: float = 5)
tests/fake_session.py:101
↓ 25 callers
Method
_build_log_context
Build consistent logging context.
livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/tts.py:1403
↓ 25 callers
Method
_mark_started
(self)
livekit-agents/livekit/agents/tts/tts.py:561
↓ 25 callers
Method
flush
(self)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/_utils.py:25
↓ 25 callers
Method
push_frame
Push an audio frame to the buffer. Args: frame: The audio frame to push. Returns: The number of samples writ
livekit-agents/livekit/agents/utils/audio.py:278
↓ 24 callers
Method
_on_vad_event
(self, ev: vad.VADEvent)
livekit-agents/livekit/agents/voice/audio_recognition.py:1220
↓ 24 callers
Function
_speak_code
(code: str)
examples/hotel_receptionist/common.py:33
↓ 23 callers
Function
_frame
(samples: list[int], *, sr: int = 16000, ch: int = 1)
tests/test_utils/test_audio_array_buffer.py:12
↓ 23 callers
Function
_make_full_recognition_for_eou
Wire enough of AudioRecognition to drive `_run_eou_detection` against a fake audio turn-detector — used by the speaking-guard tests.
tests/test_audio_recognition_turn_detection.py:52
↓ 23 callers
Method
close
(self)
livekit-agents/livekit/agents/voice/amd/classifier.py:499
↓ 23 callers
Function
speak_usd
(cents: int)
examples/hotel_receptionist/hotel_db.py:61
↓ 22 callers
Method
add_shutdown_callback
Add a callback to be called when the job is shutting down. Optionally the callback can take a single argument, the shutdown reason.
livekit-agents/livekit/agents/job.py:525
↓ 22 callers
Method
cancel
(self)
tests/test_plugin_google_stt.py:55
↓ 22 callers
Method
on_start_of_agent_speech
(self, started_at: float)
livekit-agents/livekit/agents/voice/endpointing.py:139
next →
1–100 of 7,987, ranked by callers