Update agent.py
Browse files
agent.py
CHANGED
@@ -87,10 +87,12 @@ def wiki_search(query: str) -> str:
|
|
87 |
"""
|
88 |
@tool
|
89 |
def web_search(query: str) -> str:
|
|
|
90 |
"""Search Tavily for a query and return maximum 3 results.
|
91 |
|
92 |
Args:
|
93 |
query: The search query."""
|
|
|
94 |
search_docs = TavilySearchResults(max_results=3).invoke(query=query)
|
95 |
formatted_search_docs = "\n\n---\n\n".join(
|
96 |
[
|
|
|
87 |
"""
|
88 |
@tool
|
89 |
def web_search(query: str) -> str:
|
90 |
+
"""
|
91 |
"""Search Tavily for a query and return maximum 3 results.
|
92 |
|
93 |
Args:
|
94 |
query: The search query."""
|
95 |
+
"""
|
96 |
search_docs = TavilySearchResults(max_results=3).invoke(query=query)
|
97 |
formatted_search_docs = "\n\n---\n\n".join(
|
98 |
[
|