Spaces:
Sleeping
Sleeping
Update tools.py
Browse files66 unmodified lines6768697071727316 unmodified lines9091929366 unmodified linesreturn f"Failed to download image for task {task_id}"#search web tool — uses ddgs directly to avoid smolagents DuckDuckGoSearchTool package checkclass WebSearchTool:name = "web_search"16 unmodified linesoutput = f"Search error: {e}"print(f"WebSearchTool returning result (first 100 chars): {output[:100]}...")return output66 unmodified lines6768697071727316 unmodified lines90919266 unmodified linesreturn f"Failed to download image for task {task_id}"# Web search tool — uses ddgs directly to avoid smolagents DuckDuckGoSearchTool package checkclass WebSearchTool:name = "web_search"16 unmodified linesoutput = f"Search error: {e}"print(f"WebSearchTool returning result (first 100 chars): {output[:100]}...")return output
tools.py+1-2