update
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user