Skip to content

Commit fed1b36

Browse files
committed
Fix idle_timeout field names and plc_enabled default to match server API
- idle_timeout: no_response_timeout_s → no_response_timeout_ms (server expects milliseconds, not seconds — was silently ignored) - idle_timeout: extended_wait_time_s → extended_wait_time_ms (same bug) - plc_enabled comment: default is true, not false
1 parent 9df4ec2 commit fed1b36

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/byollm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ async def init_agent():
100100
# Add it to your LLM's tool list. When your LLM calls extend_wait,
101101
# send {"type": "agent_session.extend_wait"} on the WS to extend the timer.
102102
idle_timeout={
103-
"no_response_timeout_s": 15,
103+
"no_response_timeout_ms": 15000,
104104
"reminder_message": "Are you still there? Would you like to place an order?",
105-
"extended_wait_time_s": 30,
105+
"extended_wait_time_ms": 30000,
106106
"max_retries": 3,
107107
"hangup_message": "I haven't heard from you. Goodbye!",
108108
},

examples/full_pipeline.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ async def init_agent():
306306
# 3. Hang up with a goodbye message
307307
# If reminder_message is null/omitted, the LLM generates a contextual nudge.
308308
# The user can say "give me more time" -- the LLM calls the built-in
309-
# extend_wait tool, which extends the timer to extended_wait_time_s.
309+
# extend_wait tool, which extends the timer to extended_wait_time_ms.
310310
idle_timeout={
311-
"no_response_timeout_s": 15, # seconds of silence before first reminder (1-120)
311+
"no_response_timeout_ms": 15000, # ms of silence before first reminder (1000-120000)
312312
# "reminder_message": "Are you still there?", # fixed text; omit for LLM-generated nudge
313-
"extended_wait_time_s": 30, # seconds to wait after user asks for more time (1-300)
313+
"extended_wait_time_ms": 30000, # ms to wait after user asks for more time (1000-300000)
314314
"max_retries": 3, # reminder attempts before hangup (0-10)
315315
"hangup_message": "I haven't heard from you, so I'll end the call. Goodbye.",
316316
},
@@ -339,7 +339,7 @@ async def init_agent():
339339

340340
# Audio settings
341341
# audio_format="pcm_16k", # pcm_16k (default)
342-
# plc_enabled=False, # packet loss concealment (default: false)
342+
# plc_enabled=True, # packet loss concealment (default: true)
343343
# comfort_noise_enabled=True, # comfort noise during silence (default: true)
344344
# cng_divisor=2800, # comfort noise amplitude (default: 2800, higher = quieter)
345345
# noise_cancellation=False, # client-side noise cancellation (default: false)

0 commit comments

Comments
 (0)