From 1892854516e26e070b16a21ea2c658ddea7d5429 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Tue, 9 Dec 2025 16:27:23 -0500 Subject: [PATCH] In the AWS Nova Sonic example, send back "location" from the weather-fetching function to help the model associate a tool response with a tool call...if you interrupt the model while more than one function call is outbound, it seemingly can get confused about which tool result goes which call. --- examples/foundational/40-aws-nova-sonic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/foundational/40-aws-nova-sonic.py b/examples/foundational/40-aws-nova-sonic.py index c45858153..c97261e97 100644 --- a/examples/foundational/40-aws-nova-sonic.py +++ b/examples/foundational/40-aws-nova-sonic.py @@ -49,6 +49,7 @@ async def fetch_weather_from_api(params: FunctionCallParams): { "conditions": "nice", "temperature": temperature, + "location": params.arguments["location"], "format": params.arguments["format"], "timestamp": datetime.now().strftime("%Y%m%d_%H%M%S"), }