Refactored on_function_calls_cancelled to use FunctionCallFromLLM.

This commit is contained in:
filipi87
2026-04-10 15:06:39 -03:00
parent 8cce25d2d2
commit c542167065
9 changed files with 35 additions and 21 deletions

View File

@@ -108,8 +108,8 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
await tts.queue_frame(TTSSpeakFrame("Let me check on that."))
@llm.event_handler("on_function_calls_cancelled")
async def on_function_calls_cancelled(service, cancelled):
for item in cancelled:
async def on_function_calls_cancelled(service, function_calls):
for item in function_calls:
logger.info(f"Function call cancelled: {item.function_name} [{item.tool_call_id}]")
weather_function = FunctionSchema(