Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -181,13 +181,20 @@ def list_run_steps(client, thread, run):
|
|
181 |
if not hasattr(step_details, "tool_calls"):
|
182 |
break
|
183 |
|
184 |
-
tools = {tool.__name__: tool for tool in get_current_agent().tools}
|
185 |
|
186 |
print("XXXXX")
|
187 |
print(get_current_agent().tools)
|
188 |
print("XXXXX")
|
189 |
print(tools)
|
190 |
print("XXXXX")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
|
192 |
for tool_call in step_details.tool_calls:
|
193 |
result = execute_tool_call(tools, tool_call)
|
|
|
181 |
if not hasattr(step_details, "tool_calls"):
|
182 |
break
|
183 |
|
184 |
+
#tools = {tool.__name__: tool for tool in get_current_agent().tools}
|
185 |
|
186 |
print("XXXXX")
|
187 |
print(get_current_agent().tools)
|
188 |
print("XXXXX")
|
189 |
print(tools)
|
190 |
print("XXXXX")
|
191 |
+
|
192 |
+
###
|
193 |
+
for tool in get_current_agent().tools
|
194 |
+
print("===")
|
195 |
+
print(tool)
|
196 |
+
print("===")
|
197 |
+
###
|
198 |
|
199 |
for tool_call in step_details.tool_calls:
|
200 |
result = execute_tool_call(tools, tool_call)
|