This commit is contained in:
2023-11-26 10:42:40 +00:00
parent ff4be86439
commit efd01cb525
3 changed files with 115 additions and 84 deletions

View File

@@ -4,7 +4,7 @@ export wikisearch
using HTTP, JSON3
using GeneralUtils
using ..utils
using ..type, ..utils
#------------------------------------------------------------------------------------------------100
"""
@@ -21,7 +21,7 @@ using ..utils
"Advanced Micro Devices, Inc., commonly abbreviated as AMD, is an ..."
```
"""
function wikisearch(phrase::T) where {T<:AbstractString}
function wikisearch(a::agentReflex, phrase::T) where {T<:AbstractString}
phrase = phrase[1] == " " ? phrase[2:end] : phrase
# prepare input phrase
if occursin("\"", phrase)