Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cc7fa5b
drop duplicate interruption call
chenghao-mou Feb 13, 2026
dea256f
add rtc stats client event
chenghao-mou Feb 14, 2026
9a7de3d
update timestamps to exclude frame duration or inference time
chenghao-mou Feb 15, 2026
28f107c
add usage reporting in client events
chenghao-mou Feb 15, 2026
33cbab4
fix missing flush
chenghao-mou Feb 15, 2026
417d8da
fix incorrect vad attr
chenghao-mou Feb 15, 2026
69c84a3
drop typeddict support
chenghao-mou Feb 15, 2026
74b7ada
update basic_example
chenghao-mou Feb 15, 2026
fa18c81
use the speech start time in bargein
chenghao-mou Feb 15, 2026
35ba295
use speaking time for vad events
chenghao-mou Feb 15, 2026
ce8b953
store resolved TurnHandlingConfig in AgentSessionOptions
theomonnom Feb 16, 2026
3b8e61c
ci: update release-browser workflow for manual fallback
theomonnom Feb 16, 2026
4e374f5
oops
theomonnom Feb 16, 2026
a162c60
misc fixes
chenghao-mou Feb 16, 2026
bcd2b21
tighten end time for non interruption events
chenghao-mou Feb 16, 2026
2e27a8e
add target version for deprecation
chenghao-mou Feb 16, 2026
2cb283d
Merge branch 'chenghaomou/v1.5.0' into fix/final-cleanup
chenghao-mou Feb 16, 2026
33216cb
code refactor and add tests
chenghao-mou Feb 16, 2026
63876d0
rename config to options
chenghao-mou Feb 16, 2026
52307b9
fix field vs Field
chenghao-mou Feb 16, 2026
2088d8d
Merge branch 'chenghaomou/v1.5.0' into fix/final-cleanup
chenghao-mou Feb 17, 2026
71f940a
more refactoring
chenghao-mou Feb 17, 2026
f57425a
update uv.lock
chenghao-mou Feb 17, 2026
83cc8ea
fix shift bug
chenghao-mou Feb 17, 2026
bee5080
fix buffering bug
chenghao-mou Feb 17, 2026
ecb850e
fix guard
chenghao-mou Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions examples/voice_agents/basic_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
JobProcess,
MetricsCollectedEvent,
RunContext,
TurnHandlingConfig,
cli,
inference,
metrics,
Expand Down Expand Up @@ -95,17 +94,17 @@ async def entrypoint(ctx: JobContext) -> None:
# See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/
tts=inference.TTS("cartesia/sonic-3", voice="9626c31c-bec5-4cca-baa8-f8ba9e84c8bc"),
vad=ctx.proc.userdata["vad"],
turn_handling=TurnHandlingConfig(
turn_handling={
# VAD and turn detection are used to determine when the user is speaking and when the agent should respond
# See more at https://docs.livekit.io/agents/build/turns
turn_detection=MultilingualModel(),
interruption={
"turn_detection": MultilingualModel(),
"interruption": {
# sometimes background noise could interrupt the agent session, these are considered false positive interruptions
# when it's detected, you may resume the agent's speech
"resume_false_interruption": True,
"false_interruption_timeout": 1.0,
},
),
},
# allow the LLM to generate a response while waiting for the end of turn
# See more at https://docs.livekit.io/agents/build/audio/#preemptive-generation
preemptive_generation=True,
Expand Down
6 changes: 4 additions & 2 deletions livekit-agents/livekit/agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
RunResult,
mock_tools,
)
from .voice.turn import TurnHandlingConfig
from .voice.turn import EndpointingOptions, InterruptionOptions, TurnHandlingOptions
from .worker import (
AgentServer,
WorkerOptions,
Expand Down Expand Up @@ -214,7 +214,9 @@ def __getattr__(name: str) -> typing.Any:
"FunctionCallEvent",
"FunctionCallOutputEvent",
"AgentHandoffEvent",
"TurnHandlingConfig",
"TurnHandlingOptions",
"EndpointingOptions",
"InterruptionOptions",
]

# Cleanup docs of unexported modules
Expand Down
2 changes: 2 additions & 0 deletions livekit-agents/livekit/agents/inference/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .interruption import (
AdaptiveInterruptionDetector,
InterruptionDataFrameType,
InterruptionDetectionError,
InterruptionEvent,
)
Expand All @@ -18,4 +19,5 @@
"AdaptiveInterruptionDetector",
"InterruptionEvent",
"InterruptionDetectionError",
"InterruptionDataFrameType",
]
Loading