Update agent.py
Browse files
agent.py
CHANGED
|
@@ -172,17 +172,6 @@ def wikipedia_search(query: str) -> str:
|
|
| 172 |
return f"Wikipedia search failed for {query} due to {e}."
|
| 173 |
|
| 174 |
search_web = DuckDuckGoSearchRun()
|
| 175 |
-
try:
|
| 176 |
-
result = search_web.invoke(
|
| 177 |
-
'site:en.wikipedia.org "Mercedes Sosa" "Discography" "Studio albums"'
|
| 178 |
-
)
|
| 179 |
-
|
| 180 |
-
print("TYPE:", type(result))
|
| 181 |
-
print("RESULT:", repr(result))
|
| 182 |
-
|
| 183 |
-
except Exception as e:
|
| 184 |
-
print("ERROR TYPE:", type(e))
|
| 185 |
-
print("ERROR:", repr(e))
|
| 186 |
model = build_gemini_llm()
|
| 187 |
tools = [
|
| 188 |
search_web,
|
|
|
|
| 172 |
return f"Wikipedia search failed for {query} due to {e}."
|
| 173 |
|
| 174 |
search_web = DuckDuckGoSearchRun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
model = build_gemini_llm()
|
| 176 |
tools = [
|
| 177 |
search_web,
|