This commit is contained in:
2023-11-28 08:52:26 +00:00
parent 381f5152eb
commit 6ae189e701
3 changed files with 17 additions and 14 deletions

View File

@@ -41,13 +41,13 @@ function wikisearch(a::agentReflex, phrase::T) where {T<:AbstractString}
try
result = json_data["query"]["pages"][page_id]["extract"]
catch
result = "No info available."
result = "No info available. Try different keywords"
end
if result == ""
result = "No info available."
result = "No info available. Try different keywords"
end
if result != "No info available." #TODO for use with wikisearch(). Not good for other tools
if result != "No info available. Try different keywords" #TODO for use with wikisearch(). Not good for other tools
result = makeSummary(a, result)
end
return result