update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user