remove unused variable

This commit is contained in:
David Soria Parra 2025-03-10 11:35:14 +00:00
commit dfc92478e2
No known key found for this signature in database

View file

@ -71,7 +71,6 @@ class MCPClient:
) )
# Process response and handle tool calls # Process response and handle tool calls
tool_results = []
final_text = [] final_text = []
for content in response.content: for content in response.content:
@ -83,7 +82,6 @@ class MCPClient:
# Execute tool call # Execute tool call
result = await self.session.call_tool(tool_name, tool_args) 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}]") final_text.append(f"[Calling tool {tool_name} with args {tool_args}]")
# Continue conversation with tool results # Continue conversation with tool results