Spaces:
Sleeping
Sleeping
tool type changed
Browse files
main.py
CHANGED
|
@@ -192,7 +192,8 @@ async def process_analysis_request(request: Request):
|
|
| 192 |
|
| 193 |
for step_data in plan_steps:
|
| 194 |
# Use the final, robust worker logic from our last iteration
|
| 195 |
-
tool_name = step_data.get("tool_name", step_data.get("tool", step_data.get("action", step_data.get("name"))))
|
|
|
|
| 196 |
if not tool_name: raise ValueError("Plan step is missing a 'tool' or 'action' key.")
|
| 197 |
|
| 198 |
tool_function = AVAILABLE_TOOLS.get(tool_name)
|
|
|
|
| 192 |
|
| 193 |
for step_data in plan_steps:
|
| 194 |
# Use the final, robust worker logic from our last iteration
|
| 195 |
+
tool_name = step_data.get("tool_name", step_data.get("tool", step_data.get("action", step_data.get("name",step_data.get("step_type"))))
|
| 196 |
+
|
| 197 |
if not tool_name: raise ValueError("Plan step is missing a 'tool' or 'action' key.")
|
| 198 |
|
| 199 |
tool_function = AVAILABLE_TOOLS.get(tool_name)
|