bstraehle commited on
Commit
dbcf960
1 Parent(s): 6e17db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -187,11 +187,19 @@ def generate_tool_outputs(tool_call_ids, tool_call_results):
187
  "tool_call_id": tool_call_id,
188
  "output": tool_call_result.to_json()
189
  }
 
 
 
 
190
  except AttributeError:
191
  tool_output = {
192
  "tool_call_id": tool_call_id,
193
  "output": tool_call_result
194
  }
 
 
 
 
195
 
196
  tool_outputs.append(tool_output)
197
 
@@ -230,7 +238,6 @@ def chat(message, history):
230
 
231
  run = wait_on_run(client, thread, run)
232
  run_steps = get_run_steps(client, thread, run)
233
- #tool_call_id, tool_call_result = execute_tool_calls(run_steps)
234
  ###
235
 
236
  messages = get_messages(client, thread)
 
187
  "tool_call_id": tool_call_id,
188
  "output": tool_call_result.to_json()
189
  }
190
+
191
+ print("###")
192
+ print(tool_call_result.to_json())
193
+ print("###")
194
  except AttributeError:
195
  tool_output = {
196
  "tool_call_id": tool_call_id,
197
  "output": tool_call_result
198
  }
199
+
200
+ print("###")
201
+ print(tool_call_result)
202
+ print("###")
203
 
204
  tool_outputs.append(tool_output)
205
 
 
238
 
239
  run = wait_on_run(client, thread, run)
240
  run_steps = get_run_steps(client, thread, run)
 
241
  ###
242
 
243
  messages = get_messages(client, thread)