Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +3 -4
assistants.py
CHANGED
@@ -155,15 +155,14 @@ def execute_tool_call(tool_call):
|
|
155 |
return tools[name](**args)
|
156 |
|
157 |
def execute_tool_calls(run_steps):
|
158 |
-
#run_step_details = []
|
159 |
tool_call_ids = []
|
160 |
tool_call_results = []
|
161 |
|
162 |
for step in run_steps.data:
|
163 |
step_details = step.step_details
|
164 |
-
|
165 |
-
print(
|
166 |
-
gr.Info(
|
167 |
|
168 |
if hasattr(step_details, "tool_calls"):
|
169 |
for tool_call in step_details.tool_calls:
|
|
|
155 |
return tools[name](**args)
|
156 |
|
157 |
def execute_tool_calls(run_steps):
|
|
|
158 |
tool_call_ids = []
|
159 |
tool_call_results = []
|
160 |
|
161 |
for step in run_steps.data:
|
162 |
step_details = step.step_details
|
163 |
+
str = get_json("step_details", step_details)
|
164 |
+
print(str)
|
165 |
+
gr.Info(str)
|
166 |
|
167 |
if hasattr(step_details, "tool_calls"):
|
168 |
for tool_call in step_details.tool_calls:
|