From 29d4a56663f50882b68b3a9c5f91bb92eb9c9d16 Mon Sep 17 00:00:00 2001 From: James Hush Date: Wed, 17 Sep 2025 11:59:16 +0800 Subject: [PATCH] Working on the 46 example --- examples/foundational/46-openai-agent-handoffs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/foundational/46-openai-agent-handoffs.py b/examples/foundational/46-openai-agent-handoffs.py index 232822a71..ab89bd6b1 100644 --- a/examples/foundational/46-openai-agent-handoffs.py +++ b/examples/foundational/46-openai-agent-handoffs.py @@ -247,10 +247,12 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): async def on_client_connected(transport, client): logger.info("Client connected, sending greeting") # Kick off the conversation by adding system message and running LLM - messages.append({ - "role": "system", - "content": "Please introduce yourself to the user as an AI assistant coordinator who works with specialists for weather, trivia, and math topics." - }) + messages.append( + { + "role": "system", + "content": "Please introduce yourself to the user as an AI assistant coordinator who works with specialists for weather, trivia, and math topics.", + } + ) await task.queue_frames([LLMRunFrame()]) @transport.event_handler("on_client_disconnected")