Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -35,7 +35,6 @@ except Exception as e:
|
|
35 |
|
36 |
# --- Core Tools ---
|
37 |
|
38 |
-
@tool
|
39 |
def wikipedia_search(query: str) -> str:
|
40 |
"""Search Wikipedia for a query and return maximum 2 results.
|
41 |
|
@@ -49,7 +48,6 @@ def wikipedia_search(query: str) -> str:
|
|
49 |
])
|
50 |
return {"wiki_results": formatted_search_docs}
|
51 |
|
52 |
-
@tool
|
53 |
def web_search(query: str) -> str:
|
54 |
"""Search Tavily for a query and return maximum 3 results.
|
55 |
|
|
|
35 |
|
36 |
# --- Core Tools ---
|
37 |
|
|
|
38 |
def wikipedia_search(query: str) -> str:
|
39 |
"""Search Wikipedia for a query and return maximum 2 results.
|
40 |
|
|
|
48 |
])
|
49 |
return {"wiki_results": formatted_search_docs}
|
50 |
|
|
|
51 |
def web_search(query: str) -> str:
|
52 |
"""Search Tavily for a query and return maximum 3 results.
|
53 |
|