update
This commit is contained in:
11
src/type.jl
11
src/type.jl
@@ -93,7 +93,7 @@ mutable struct sommelier <: agent
|
||||
|
||||
"""
|
||||
chathistory::Vector{Dict{Symbol, Any}}
|
||||
shortmem::Dict{Symbol, Any}
|
||||
memory::Dict{Symbol, Any}
|
||||
|
||||
# communication function
|
||||
text2textInstructLLM::Function
|
||||
@@ -105,7 +105,7 @@ function sommelier(
|
||||
name::String= "Assistant",
|
||||
id::String= string(uuid4()),
|
||||
maxHistoryMsg::Integer= 20,
|
||||
chathistory::Vector{Dict{Symbol, Any}} = Vector{Dict{Symbol, Any}}(),
|
||||
chathistory::Vector{Dict{Symbol, String}} = Vector{Dict{Symbol, String}}(),
|
||||
)
|
||||
|
||||
tools = Dict( # update input format
|
||||
@@ -127,13 +127,18 @@ function sommelier(
|
||||
# ),
|
||||
)
|
||||
|
||||
memory = Dict{Symbol, Any}(
|
||||
:chatbox=> "",
|
||||
:shortmem=> Vector{Dict{Symbol, String}}()
|
||||
)
|
||||
|
||||
newAgent = sommelier(
|
||||
name,
|
||||
id,
|
||||
tools,
|
||||
maxHistoryMsg,
|
||||
chathistory,
|
||||
Dict{Symbol, Any}(),
|
||||
memory,
|
||||
text2textInstructLLM,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user