PD03 commited on
Commit
df5ff94
·
verified ·
1 Parent(s): d207e49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -226,7 +226,8 @@ After calling a tool, I will provide you with the results to interpret for the u
226
  for tool_call in tool_calls:
227
  tool_info += f"🔧 Calling: {tool_call['name']}\n"
228
 
229
- result = await self.mcp_client.call_tool(
 
230
  tool_call['name'],
231
  tool_call['arguments']
232
  )
 
226
  for tool_call in tool_calls:
227
  tool_info += f"🔧 Calling: {tool_call['name']}\n"
228
 
229
+ # FIXED: Use call_tool_sync instead of await call_tool
230
+ result = self.mcp_client.call_tool_sync(
231
  tool_call['name'],
232
  tool_call['arguments']
233
  )