This commit is contained in:
Your Name
2024-02-10 09:21:42 +07:00
parent 78594b8046
commit a73207485d
2 changed files with 6 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ function winestock(a::agentReflex, input::NamedTuple)
newDict[string(k)] = v
end
query = JSON3.write(newDict)
query = JSON3.write(a.memory[:keyword])
println("")
@show query
@@ -311,7 +311,7 @@ function winestock(a::agentReflex, input::NamedTuple)
end
@show result
error(7777)
return result
end
@@ -334,7 +334,9 @@ end
"""
function askbox(input::String)
dict = GeneralUtils.JSON3read_stringKey(input)
return dict["Q1"]
_keylist = keys(dict)
keylist = [key for key in _keylist]
return dict[keylist[1]]
end

View File

@@ -151,7 +151,7 @@ function agentReflex(
:sommelier =>
"""
Request the users input for the following info initially, and use alternative sources of information only if they are unable to provide it:
- wine price range: ask the user
- wine price: ask the user
- wine type (rose, white, red, sparkling, dessert)
- food type that will be served with wine
- wine sweetness level (dry to very sweet)