diff --git a/src/llmfunction.jl b/src/llmfunction.jl index 6108ecf..d631147 100644 --- a/src/llmfunction.jl +++ b/src/llmfunction.jl @@ -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 diff --git a/src/type.jl b/src/type.jl index 8d19432..014aa0e 100644 --- a/src/type.jl +++ b/src/type.jl @@ -151,7 +151,7 @@ function agentReflex( :sommelier => """ Request the user’s 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)