Skip to content

Commit 7613d74

Browse files
authored
Remove unused variable (modelcontextprotocol#172)
The client program will work even if the variable `tool_results` is removed
1 parent 51f7d16 commit 7613d74

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

quickstart/client.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ async def process_query(self, query: str) -> str:
162162
)
163163

164164
# Process response and handle tool calls
165-
tool_results = []
166165
final_text = []
167166

168167
assistant_message_content = []
@@ -176,7 +175,6 @@ async def process_query(self, query: str) -> str:
176175

177176
# Execute tool call
178177
result = await self.session.call_tool(tool_name, tool_args)
179-
tool_results.append({"call": tool_name, "result": result})
180178
final_text.append(f"[Calling tool {tool_name} with args {tool_args}]")
181179

182180
assistant_message_content.append(content)

0 commit comments

Comments
 (0)