update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user