Remove unused variable (#172)

The client program will work even if the variable `tool_results` is removed
This commit is contained in:
nikkie 2025-03-10 20:35:27 +09:00 • committed by GitHub
commit 7613d74195
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)