LamiaYT commited on
Commit
31d7bf3
·
1 Parent(s): 7f6ec50
Files changed (1) hide show
  1. app.py +9 -1
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
- """Search the web using Serper API for current information and specific queries."""
 
 
 
 
 
 
 
 
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"