Update agent.py
Browse files
agent.py
CHANGED
@@ -36,7 +36,7 @@ def use_wikipedia_tool(query: str) -> str:
|
|
36 |
if result:
|
37 |
return {"Wikipedia_summary": result}
|
38 |
else:
|
39 |
-
return f"Sorry, I couldn't find any information on '{query}' in Wikipedia."
|
40 |
|
41 |
def build_agent():
|
42 |
# llm = ChatOllama(model="llama3.1")
|
|
|
36 |
if result:
|
37 |
return {"Wikipedia_summary": result}
|
38 |
else:
|
39 |
+
return {"response" : f"Sorry, I couldn't find any information on '{query}' in Wikipedia."}
|
40 |
|
41 |
def build_agent():
|
42 |
# llm = ChatOllama(model="llama3.1")
|