Skip to content

Commit c20671c

Browse files
authored
fix(dtmf): drop removed repeat_instructions arg from GetDtmfTask example and docstring (#6972)
1 parent 0ab5562 commit c20671c

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

examples/telephony/basic_dtmf_agent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ async def ask_for_service_options(self, context: RunContext) -> str:
7575
"press 1 to hear details about their current plan, press 2 to enable international data roaming, "
7676
"or press 3 to explore upgrade options. Prompt them for a single digit and give them a moment to respond."
7777
),
78-
repeat_instructions=2,
7978
)
8079
except ToolError as e:
8180
await self.session.generate_reply(instructions=e.message, allow_interruptions=False)
@@ -115,7 +114,6 @@ async def ask_for_phone_number(self, context: RunContext) -> str:
115114
"Provide an example such as 415 555 0199, remind them you're keeping their information secure, "
116115
"then capture the digits. Read the number back in grouped segments for confirmation and invite them to confirm or re-enter."
117116
),
118-
repeat_instructions=2,
119117
)
120118
except ToolError as e:
121119
await self.session.generate_reply(instructions=e.message, allow_interruptions=False)

livekit-agents/livekit/agents/beta/workflows/dtmf_inputs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def __init__(
4949
Args:
5050
num_digits: The number of digits to collect.
5151
ask_for_confirmation: Whether to ask for confirmation when agent has collected full digits.
52-
repeat_instructions: The number of times to repeat the initial instructions.
5352
dtmf_input_timeout: The per-digit timeout.
5453
dtmf_stop_event: The DTMF event to stop collecting inputs.
5554
chat_ctx: The chat context to use.

0 commit comments

Comments
 (0)