Update agent.py
Browse files
agent.py
CHANGED
|
@@ -148,18 +148,7 @@ def build_gemini_llm():
|
|
| 148 |
# return f"Failed to read file: {e}"
|
| 149 |
# except Exception as e:
|
| 150 |
# return f"error downloading or reading file: {str(e)}"
|
| 151 |
-
|
| 152 |
-
loader = WikipediaLoader(
|
| 153 |
-
query="Mercedes Sosa discography",
|
| 154 |
-
load_max_docs=3
|
| 155 |
-
)
|
| 156 |
-
|
| 157 |
-
docs = loader.load()
|
| 158 |
-
|
| 159 |
-
print(docs)
|
| 160 |
-
|
| 161 |
-
print(WikipediaLoader(query="Python programming language", load_max_docs=1).load())
|
| 162 |
-
|
| 163 |
|
| 164 |
@tool
|
| 165 |
def wikipedia_search(query: str) -> str:
|
|
|
|
| 148 |
# return f"Failed to read file: {e}"
|
| 149 |
# except Exception as e:
|
| 150 |
# return f"error downloading or reading file: {str(e)}"
|
| 151 |
+
import traceback
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
@tool
|
| 154 |
def wikipedia_search(query: str) -> str:
|