update
This commit is contained in:
10
src/type.jl
10
src/type.jl
@@ -98,11 +98,15 @@ mutable struct sommelier <: agent
|
||||
# communication function
|
||||
text2textInstructLLM::Function
|
||||
executeSQL::Function
|
||||
querySQLVectorDB::Function
|
||||
addSQLVectorDB::Function
|
||||
end
|
||||
|
||||
function sommelier(
|
||||
text2textInstructLLM::Function,
|
||||
executeSQL::Function
|
||||
executeSQL::Function,
|
||||
querySQLVectorDB::Function,
|
||||
addSQLVectorDB::Function
|
||||
;
|
||||
name::String= "Assistant",
|
||||
id::String= string(uuid4()),
|
||||
@@ -143,7 +147,9 @@ function sommelier(
|
||||
chathistory,
|
||||
memory,
|
||||
text2textInstructLLM,
|
||||
executeSQL
|
||||
executeSQL,
|
||||
querySQLVectorDB,
|
||||
addSQLVectorDB
|
||||
)
|
||||
|
||||
return newAgent
|
||||
|
||||
Reference in New Issue
Block a user