Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
187 |
|
188 |
-
|
189 |
-
|
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 |
|