This commit is contained in:
narawat lamaiin
2024-08-20 20:19:06 +07:00
parent 2b1e280a31
commit a5dc2c1122
3 changed files with 174 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
using Revise # remove when this package is completed
using YiemAgent, GeneralUtils, JSON3, MQTTClient, Dates, UUIDs, LibPQ, DataStructures, SQLLLM
using YiemAgent, GeneralUtils, JSON3, MQTTClient, Dates, UUIDs, LibPQ
using Base.Threads
# ---------------------------------------------- 100 --------------------------------------------- #
@@ -68,19 +68,26 @@ function main()
response = YiemAgent.conversation(a, Dict(:text=> userinput))
println("")
println("--> assistant response: \n", response)
println("")
println("--> user input:")
userinput = readline()
userinput = ""
for i in 1:3
if userinput == ""
println("")
println("--> user input:")
userinput = readline()
else
break
end
end
end
end
main()
"""
I'm joining a graduation party this evening. I want a bottle of full bodied, dry white wine from the United States. I'm ok with all price range.
I'm joining a graduation party this evening. I want a bottle of full bodied, dry white wine from the US. I'm ok with any price range.
Well, the party is small casual with close friends and no food serving.
I'm open to suggestion since I have no specific idea about wine.
I'm ok with any region.
"""