update
This commit is contained in:
@@ -73,26 +73,26 @@ end
|
||||
id="testingSessionID", # agent instance id
|
||||
)
|
||||
|
||||
# function main()
|
||||
# userinput = "Hello, I would like a get a bottle of wine."
|
||||
# for i in 1:10
|
||||
# response = YiemAgent.conversation(a, Dict(:text=> userinput))
|
||||
# println("")
|
||||
# println("--> assistant response: \n", response)
|
||||
# println("")
|
||||
# println("--> user input:")
|
||||
# userinput = readline()
|
||||
# end
|
||||
# end
|
||||
function main()
|
||||
userinput = "Hello, I would like a get a bottle of wine."
|
||||
for i in 1:10
|
||||
response = YiemAgent.conversation(a, Dict(:text=> userinput))
|
||||
println("")
|
||||
println("--> assistant response: \n", response)
|
||||
println("")
|
||||
println("--> user input:")
|
||||
userinput = readline()
|
||||
end
|
||||
end
|
||||
|
||||
# main()
|
||||
main()
|
||||
|
||||
# """
|
||||
# I'm having a graduation party this evening. I have no budget limit.
|
||||
# I have no idea. The party will be formal. What type of wine people usually get for this occasion?
|
||||
# What about sparkling Rose?
|
||||
"""
|
||||
I'm having a graduation party this evening. I have no budget limit. I want a bottle of dry white wine.
|
||||
I have no idea. The party will be formal. What type of wine people usually get for this occasion?
|
||||
What about sparkling Rose?
|
||||
|
||||
# """
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -119,9 +119,9 @@ end
|
||||
|
||||
|
||||
|
||||
input = "query=\"medium-bodied dry white wine\""
|
||||
# input = "the customer is looking for a medium-bodied, dry white wine."
|
||||
result = YiemAgent.checkinventory(a, input)
|
||||
# input = "query=\"medium-bodied dry white wine\""
|
||||
# # input = "the customer is looking for a medium-bodied, dry white wine."
|
||||
# result = YiemAgent.checkinventory(a, input)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user