This commit is contained in:
2023-11-22 05:34:29 +00:00
parent f8e4faee8e
commit 445fb8e793

View File

@@ -1,7 +1,8 @@
module interface
export agentReact, addNewMessage, clearMessage, removeLatestMsg, generatePrompt_tokenPrefix,
export agentReact, agentReflex,
addNewMessage, clearMessage, removeLatestMsg, generatePrompt_tokenPrefix,
generatePrompt_tokenSuffix, conversation, work, detectCharacters, chunktext,
findDetectedCharacter, wikisearch
@@ -163,9 +164,7 @@ function agentReact(
return newAgent
end
"""
Based on Reflexion paper
"""
@kwdef mutable struct agentReflex <: agent
availableRole::AbstractVector = ["system", "user", "assistant"]
agentName::String = "assistant"
@@ -199,6 +198,7 @@ end
:longterm=>""
)
end
function agentReflex(
agentName::String,
mqttClientSpec::NamedTuple;
@@ -305,7 +305,6 @@ function agentReflex(
newAgent.tools = tools
newAgent.role = role
newAgent.roles = roles
newAgent.thinkingMode = thinkingMode
return newAgent
end