From 101a89cb23d71a71547cdc9b326fe5115fad9f04 Mon Sep 17 00:00:00 2001 From: narawat Date: Mon, 20 Nov 2023 00:08:26 +0000 Subject: [PATCH] update --- src/interface.jl | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 15ba503..d36f15d 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -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"