From 51f91e8492cf1d9f469acf04f82b2c256e303bb7 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Fri, 2 Aug 2024 06:47:28 +0700 Subject: [PATCH] update --- src/interface.jl | 4 ++-- src/llmfunction.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 2d6cce2..30059c7 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -1217,11 +1217,11 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F """ context_1 = length(memory[:shortmem]) > 0 ? vectorOfDictToText(memory[:shortmem], withkey=false) : "None" - chathistory = vectorOfDictToText(a.chathistory) + _chathistory = vectorOfDictToText(chathistory) usermsg = """ Context: $context_1 - Your earlier conversation with the user: $chathistory) + Your earlier conversation with the user: $_chathistory) Your thoughts: $(memory[:chatbox]) """ diff --git a/src/llmfunction.jl b/src/llmfunction.jl index 9ba1a8c..d5d5aa9 100644 --- a/src/llmfunction.jl +++ b/src/llmfunction.jl @@ -289,12 +289,12 @@ julia> result = checkinventory(agent, input) """ function checkinventory(a::T1, input::T2 )::NamedTuple{(:result, :success, :errormsg), Tuple{String, Bool, Union{String, Nothing}}} where {T1<:agent, T2<:AbstractString} - + println("--> checkinventory input: $input ", @__FILE__, " ", @__LINE__) wineattributes_1 = extractWineAttributes_1(a, input) wineattributes_2 = extractWineAttributes_2(a, input) inventoryquery = "$wineattributes_1, $wineattributes_2" - println("--> checkinventory: $inventoryquery") + println("--> checkinventory: $inventoryquery ", @__FILE__, " ", @__LINE__) result = SQLLLM.query(inventoryquery, a.executeSQL, a.text2textInstructLLM) return (result=result, success=true, errormsg=nothing) end