update summary()

This commit is contained in:
2023-11-17 08:58:37 +00:00
parent 3bb4264c7b
commit 0693d2fedc

View File

@@ -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: