From 7613d74195ee6d0dd0e00d1dbf39667cc81381f9 Mon Sep 17 00:00:00 2001 From: nikkie Date: Mon, 10 Mar 2025 20:35:27 +0900 Subject: [PATCH] Remove unused variable (#172) The client program will work even if the variable `tool_results` is removed --- quickstart/client.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/quickstart/client.mdx b/quickstart/client.mdx index 7cdfe2c..9d5161c 100644 --- a/quickstart/client.mdx +++ b/quickstart/client.mdx @@ -162,7 +162,6 @@ async def process_query(self, query: str) -> str: ) # Process response and handle tool calls - tool_results = [] final_text = [] assistant_message_content = [] @@ -176,7 +175,6 @@ async def process_query(self, query: str) -> str: # Execute tool call result = await self.session.call_tool(tool_name, tool_args) - tool_results.append({"call": tool_name, "result": result}) final_text.append(f"[Calling tool {tool_name} with args {tool_args}]") assistant_message_content.append(content)