Enabling the option to cancel the tools for all the async examples.

This commit is contained in:
filipi87
2026-04-10 07:31:51 -03:00
parent 2dd1170229
commit 346c585290
7 changed files with 7 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
llm = OpenAILLMService(
api_key=os.getenv("OPENAI_API_KEY"),
enable_async_tool_cancellation=True,
settings=OpenAILLMService.Settings(
system_instruction="You are a helpful assistant in a voice conversation. Your responses will be spoken aloud, so avoid emojis, bullet points, or other formatting that can't be spoken. Respond to what the user said in a creative, helpful, and brief way.",
),