Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ def execute_tool_call(tools, tool_call):
|
|
165 |
|
166 |
print(f"{name}, {args}")
|
167 |
|
168 |
-
return tools[name](**args)
|
169 |
|
170 |
def list_run_steps(client, thread, run):
|
171 |
run_steps = client.beta.threads.runs.steps.list(
|
@@ -181,8 +181,11 @@ def list_run_steps(client, thread, run):
|
|
181 |
if not hasattr(step_details, "tool_calls"):
|
182 |
break
|
183 |
|
184 |
-
tool_schemas = [function_to_schema(tool) for tool in current_agent.tools]
|
185 |
tools = {tool.__name__: tool for tool in get_current_agent().tools}
|
|
|
|
|
|
|
|
|
186 |
|
187 |
for tool_call in step_details.tool_calls:
|
188 |
result = execute_tool_call(tools, tool_call)
|
|
|
165 |
|
166 |
print(f"{name}, {args}")
|
167 |
|
168 |
+
#return tools[name](**args)
|
169 |
|
170 |
def list_run_steps(client, thread, run):
|
171 |
run_steps = client.beta.threads.runs.steps.list(
|
|
|
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(tools[0])
|
187 |
+
print(tools[1])
|
188 |
+
print(tools[2])
|
189 |
|
190 |
for tool_call in step_details.tool_calls:
|
191 |
result = execute_tool_call(tools, tool_call)
|