From be1cd0350df83a993bf930b14c04d2b71205a6e4 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Fri, 3 Nov 2023 07:23:01 +0000 Subject: [PATCH] update --- src/interface.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 4364522..8ed42f2 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -276,7 +276,7 @@ function identifyUserIntention(a::agent, usermsg::String) identify_usermsg = replace(identify_usermsg, "{input}" => usermsg) - result = sendPrompt(a, identify_usermsg, ) + result = sendPrompt(a, identify_usermsg) # msg = Dict( # :msgMeta=> a.msgMeta, @@ -315,7 +315,7 @@ function identifyUserIntention(a::agent, usermsg::String) end function sendPrompt(a::agent, prompt::String; timeout::Int=10) - a.msgMeta[:msgId] = "$(uuid4())" + a.msgMeta[:msgId] = "$(uuid4())" # new msg id for each msg msg = Dict( :msgMeta=> a.msgMeta, :txt=> prompt, @@ -345,6 +345,8 @@ function sendPrompt(a::agent, prompt::String; timeout::Int=10) error("undefined condition $(@__LINE__)") end end + + return result end # function getStringBetweenCurlyBraces(s::AbstractString)