This commit is contained in:
narawat lamaiin
2024-07-31 06:52:44 +07:00
parent 792accc619
commit 70e55f0306
5 changed files with 262 additions and 319 deletions

View File

@@ -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)