This commit is contained in:
2023-11-29 04:14:16 +00:00
parent 6ae189e701
commit 6a8e24f20f
4 changed files with 175 additions and 71 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. Try different keywords"
result = "No info available for your search query."
end
if result == ""
result = "No info available. Try different keywords"
result = "No info available for your search query."
end
if result != "No info available. Try different keywords" #TODO for use with wikisearch(). Not good for other tools
if result != "No info available for your search query." #TODO for use with wikisearch(). Not good for other tools
result = makeSummary(a, result)
end
return result