From 2f4f779c919ee111ce2b8576e419da6eb48541c3 Mon Sep 17 00:00:00 2001 From: Dominic Date: Fri, 24 Jan 2025 20:08:48 +0900 Subject: [PATCH] Fixed a few things --- examples/foundational/32-voicemail-detection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/foundational/32-voicemail-detection.py b/examples/foundational/32-voicemail-detection.py index d564da1c6..46f44659b 100644 --- a/examples/foundational/32-voicemail-detection.py +++ b/examples/foundational/32-voicemail-detection.py @@ -41,6 +41,7 @@ async def start_terminate_call( async def terminate_call( function_name, tool_call_id, args, llm: LLMService, context, result_callback ): + """Function the bot can call to terminate the call upon completion of a voicemail message.""" print("Terminating call", {"msg": function_name}) await llm.queue_frame(EndTaskFrame(), FrameDirection.UPSTREAM) await result_callback("Goodbye") @@ -58,7 +59,7 @@ async def main(): transport = DailyTransport( room_url, token, - "Respond bot", + "Voicemail detection bot", DailyParams( audio_in_enabled=True, audio_out_enabled=True, @@ -126,7 +127,7 @@ async def main(): @transport.event_handler("on_call_state_updated") async def on_call_state_updated(transport, state): logger.info(f"Call state updated: {state}") - if state == "joined" and dialoutSettings and shouldDialout: + if state == "joined" and dialoutSettings and useDialout: logger.info("Starting dialout") await start_dialout(transport, dialoutSettings) if state == "left":