This commit is contained in:
narawat lamaiin
2024-07-16 17:47:21 +07:00
parent 37a9a38796
commit 1ef696f206
2 changed files with 14 additions and 20 deletions

View File

@@ -64,26 +64,24 @@ end
# response = YiemAgent.conversation(a, Dict(:text=> "newtopic",) )
response = YiemAgent.conversation(a, Dict(:text=> "Hello, I would like a get a bottle of wine."))
println("---> YiemAgent: ", response)
response = YiemAgent.conversation(a, Dict(:text=> "I'm having a graduation party this evening. I'll pay at most 30 bucks."))
response = YiemAgent.conversation(a, Dict(:text=> "What type of wine do you recommend for a celebration?"))
println("---> YiemAgent: ", response)
dummyinput = "price below 50, full-bodied red wine with sweetness level 2, low tannin level and medium acidity level, Thai dishes"
response = YiemAgent.winestock(a, dummyinput)
# response = YiemAgent.conversation(a, Dict(:text=> "Hello, I would like a get a bottle of wine."))
# println("---> YiemAgent: ", response)
# response = YiemAgent.conversation(a, Dict(:text=> "I'm having a graduation party this evening. I'll pay at most 30 bucks."))
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("--> assistant response: \n", response)
println("--> user input:")
userinput = readline()
end
end
main()