Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -240,8 +240,8 @@ def chat(message, history):
|
|
240 |
run_id=run.id,
|
241 |
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
242 |
tool_outputs={
|
243 |
-
"tool_call_id":
|
244 |
-
"output":
|
245 |
}
|
246 |
)
|
247 |
|
@@ -257,8 +257,8 @@ def chat(message, history):
|
|
257 |
run_id=run.id,
|
258 |
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
259 |
tool_outputs={
|
260 |
-
"tool_call_id":
|
261 |
-
"output":
|
262 |
}
|
263 |
)
|
264 |
|
|
|
240 |
run_id=run.id,
|
241 |
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
242 |
tool_outputs={
|
243 |
+
"tool_call_id": tool_call_ids[0],
|
244 |
+
"output": tool_call_results[0].to_json()
|
245 |
}
|
246 |
)
|
247 |
|
|
|
257 |
run_id=run.id,
|
258 |
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
259 |
tool_outputs={
|
260 |
+
"tool_call_id": tool_call_ids[0],
|
261 |
+
"output": tool_call_results[0].to_json()
|
262 |
}
|
263 |
)
|
264 |
|