This commit is contained in:
2023-11-20 00:08:26 +00:00
parent 6486ab5fb5
commit 101a89cb23

View File

@@ -127,13 +127,13 @@ function agentReact(
:output => "" ,
:func => nothing,
),
:NTHING=>Dict(
:name => "NTHING",
:description => "useful for when you don't need to use tools or actions",
:input => "No input is needed",
:output => "" ,
:func => nothing,
),
# :NTHING=>Dict(
# :name => "NTHING",
# :description => "useful for when you don't need to use tools or actions",
# :input => "No input is needed",
# :output => "" ,
# :func => nothing,
# ),
),
msgMeta::Dict=Dict(
:msgPurpose=> "updateStatus",
@@ -385,7 +385,7 @@ function work(a::T, prompt::String, maxround::Int=3) where {T<:agent}
catch
end
end
@show respond
headers = detectCharacters(respond, headerToDetect)
chunkedtext = chunktext(respond, headers)
@@ -645,11 +645,7 @@ function makeSummary(a::T1, input::T2) where {T1<:agent, T2<:AbstractString}
"""
prompt = replace(prompt, "{input}" => input)
println("---")
@show prompt
result = sendReceivePrompt(a, prompt)
@show result
println("===")
summary = result === nothing ? "nothing" : result
summary = replace(summary, "<|im_end|>" => "")
if summary[1:1] == "\n"