bstraehle commited on
Commit
ce170dd
1 Parent(s): 3d34f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -181,12 +181,13 @@ def list_run_steps(client, thread, run):
181
 
182
  print(step_details)
183
  print(step_details.message_creation)
184
-
 
185
  #if not step_details.tool_calls:
186
- # break
187
 
188
- #for tool_call in step_details.tool_calls:
189
- # result = execute_tool_call(tool_call)
190
 
191
  return run_steps
192
 
 
181
 
182
  print(step_details)
183
  print(step_details.message_creation)
184
+
185
+ if hasattr(not step_details, "tool_calls")
186
  #if not step_details.tool_calls:
187
+ break
188
 
189
+ for tool_call in step_details.tool_calls:
190
+ result = execute_tool_call(tool_call)
191
 
192
  return run_steps
193