legolasyiu commited on
Commit
1bb9cb6
·
verified ·
1 Parent(s): ad32d7a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +12 -0
src/streamlit_app.py CHANGED
@@ -54,6 +54,18 @@ def internet_search(
54
  topic: Literal["general", "news", "finance"] = "general",
55
  include_raw_content: bool = False,
56
  ):
 
 
 
 
 
 
 
 
 
 
 
 
57
  return tavily_client.search(
58
  query,
59
  max_results=max_results,
 
54
  topic: Literal["general", "news", "finance"] = "general",
55
  include_raw_content: bool = False,
56
  ):
57
+ """
58
+ Perform an internet search using the Tavily API.
59
+
60
+ Args:
61
+ query (str): The search query.
62
+ max_results (int): Maximum number of results to return.
63
+ topic (Literal["general", "news", "finance"]): Type of search to perform.
64
+ include_raw_content (bool): Whether to include raw page content in results.
65
+
66
+ Returns:
67
+ dict: The structured search results from the Tavily API.
68
+ """
69
  return tavily_client.search(
70
  query,
71
  max_results=max_results,