Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -18,7 +18,15 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
18 |
|
19 |
@tool
|
20 |
def serper_search(query: str) -> str:
|
21 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
api_key = os.getenv("SERPER_API_KEY")
|
23 |
if not api_key:
|
24 |
return "SERPER_API_KEY environment variable not found"
|
|
|
18 |
|
19 |
@tool
|
20 |
def serper_search(query: str) -> str:
|
21 |
+
"""
|
22 |
+
Search the web using Serper API for current information and specific queries.
|
23 |
+
|
24 |
+
Args:
|
25 |
+
query: The search query string.
|
26 |
+
|
27 |
+
Returns:
|
28 |
+
Search results as a formatted string.
|
29 |
+
"""
|
30 |
api_key = os.getenv("SERPER_API_KEY")
|
31 |
if not api_key:
|
32 |
return "SERPER_API_KEY environment variable not found"
|