From 0693d2fedc4c8a4c8b7cd18749feddaa8e94e0a8 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 17 Nov 2023 08:58:37 +0000 Subject: [PATCH] update summary() --- src/interface.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index bee3bf3..6f2494c 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -435,19 +435,23 @@ function work(a::T, prompt::String) where {T<:agent} @show headers respond = split(respond, "Obs:")[1] chunkedtext = chunktext(respond, headers) + @show chunkedtext if headers[1][:char] == "ANS:" respond = chunkedtext[1][:body] a.thought = "nothing" break else - # check for chatbox + # check for tool being called + ActInd = findDetectedCharacter(headers, "Act:") + println(">>> ", chunkedtext[ActInd][:body]) + # toolname = toolNameBeingCalled(chunkedtext[ActInd][:body]) # function call - + break end @@ -500,7 +504,9 @@ function conversationSummary(a::T) where {T<:agent} prompt = """ <|im_start|>system - You talked with a user earlier. Now you make a detailed bullet summary of the conversation. + You talked with a user earlier. + Now you make a detailed bullet summary of the conversation from your perspective. + Here are the context: {context} Here are the conversation: