Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +7 -4
assistants.py
CHANGED
@@ -162,13 +162,16 @@ def execute_tool_calls(run_steps):
|
|
162 |
for step in run_steps.data:
|
163 |
step_details = step.step_details
|
164 |
run_step_details.append(step_details)
|
165 |
-
print(get_json("step_details", step_details))
|
|
|
|
|
|
|
166 |
|
167 |
if hasattr(step_details, "tool_calls"):
|
168 |
for tool_call in step_details.tool_calls:
|
169 |
-
str = get_json("tool_call", tool_call)
|
170 |
-
print(str)
|
171 |
-
gr.Info(str, duration=15)
|
172 |
|
173 |
if hasattr(tool_call, "function"):
|
174 |
tool_call_ids.append(tool_call.id)
|
|
|
162 |
for step in run_steps.data:
|
163 |
step_details = step.step_details
|
164 |
run_step_details.append(step_details)
|
165 |
+
#print(get_json("step_details", step_details))
|
166 |
+
str = get_json("step_details", step_details)
|
167 |
+
print(str)
|
168 |
+
gr.Info(str, duration=15)
|
169 |
|
170 |
if hasattr(step_details, "tool_calls"):
|
171 |
for tool_call in step_details.tool_calls:
|
172 |
+
#str = get_json("tool_call", tool_call)
|
173 |
+
#print(str)
|
174 |
+
#gr.Info(str, duration=15)
|
175 |
|
176 |
if hasattr(tool_call, "function"):
|
177 |
tool_call_ids.append(tool_call.id)
|