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