Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -182,6 +182,8 @@ def generate_tool_outputs(tool_call_ids, tool_call_results):
|
|
182 |
tool_outputs = []
|
183 |
|
184 |
for tool_call_id, tool_call_result in zip(tool_call_ids, tool_call_results):
|
|
|
|
|
185 |
try:
|
186 |
tool_output = {
|
187 |
"tool_call_id": tool_call_id,
|
@@ -189,6 +191,7 @@ def generate_tool_outputs(tool_call_ids, tool_call_results):
|
|
189 |
}
|
190 |
|
191 |
print("###")
|
|
|
192 |
print(tool_call_result.to_json())
|
193 |
print("###")
|
194 |
except AttributeError:
|
@@ -198,6 +201,7 @@ def generate_tool_outputs(tool_call_ids, tool_call_results):
|
|
198 |
}
|
199 |
|
200 |
print("###")
|
|
|
201 |
print(tool_call_result)
|
202 |
print("###")
|
203 |
|
|
|
182 |
tool_outputs = []
|
183 |
|
184 |
for tool_call_id, tool_call_result in zip(tool_call_ids, tool_call_results):
|
185 |
+
tool_output = {}
|
186 |
+
|
187 |
try:
|
188 |
tool_output = {
|
189 |
"tool_call_id": tool_call_id,
|
|
|
191 |
}
|
192 |
|
193 |
print("###")
|
194 |
+
print(tool_call_id)
|
195 |
print(tool_call_result.to_json())
|
196 |
print("###")
|
197 |
except AttributeError:
|
|
|
201 |
}
|
202 |
|
203 |
print("###")
|
204 |
+
print(tool_call_id)
|
205 |
print(tool_call_result)
|
206 |
print("###")
|
207 |
|