Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
)
|