This commit is contained in:
narawat lamaiin
2025-07-17 11:48:23 +07:00
parent 8a9c9606c7
commit 68a20b5080
2 changed files with 11 additions and 554 deletions
+6 -6
View File
@@ -30,7 +30,7 @@ mutable struct companion <: agent
maxHistoryMsg::Integer # e.g. 21th and earlier messages will get summarized
chathistory::Vector{Dict{Symbol, Any}}
memory::Dict{Symbol, Any}
func::NamedTuple # NamedTuple of functions
context::NamedTuple # NamedTuple of functions
llmFormatName::String
end
@@ -168,12 +168,12 @@ mutable struct sommelier <: agent
maxHistoryMsg::Integer # e.g. 21th and earlier messages will get summarized
chathistory::Vector{Dict{Symbol, Any}}
memory::Dict{Symbol, Any}
func # NamedTuple of functions
context # NamedTuple of functions
llmFormatName::String
end
function sommelier(
context::appcontext, # NamedTuple of functions
context::appcontext, # app context
;
name::String= "Assistant",
id::String= string(uuid4()),
@@ -240,12 +240,12 @@ mutable struct virtualcustomer <: agent
maxHistoryMsg::Integer # e.g. 21th and earlier messages will get summarized
chathistory::Vector{Dict{Symbol, Any}}
memory::Dict{Symbol, Any}
func # NamedTuple of functions
context # NamedTuple of functions
llmFormatName::String
end
function virtualcustomer(
func, # NamedTuple of functions
context, # NamedTuple of functions
;
name::String= "Assistant",
id::String= string(uuid4()),
@@ -298,7 +298,7 @@ function virtualcustomer(
maxHistoryMsg,
chathistory,
memory,
func,
context,
llmFormatName
)