This commit is contained in:
narawat lamaiin
2024-10-13 06:38:43 +07:00
parent 015e7b757c
commit 2e2eccff8b
3 changed files with 11 additions and 4 deletions

View File

@@ -130,6 +130,7 @@ julia> agent = YiemAgent.bsommelier(
mutable struct sommelier <: agent
name::String # agent name
id::String # agent id
retailername::String
tools::Dict
maxHistoryMsg::Integer # e.g. 21th and earlier messages will get summarized
@@ -160,6 +161,7 @@ function sommelier(
;
name::String= "Assistant",
id::String= string(uuid4()),
retailername::String= "retailer_name",
maxHistoryMsg::Integer= 20,
chathistory::Vector{Dict{Symbol, String}} = Vector{Dict{Symbol, String}}(),
)
@@ -192,6 +194,7 @@ function sommelier(
newAgent = sommelier(
name,
id,
retailername,
tools,
maxHistoryMsg,
chathistory,