Class AgentScopeNacosPromptProperties
java.lang.Object
io.agentscope.spring.boot.nacos.properties.BaseNacosProperties
io.agentscope.spring.boot.nacos.properties.AgentScopeNacosPromptProperties
@ConfigurationProperties(prefix="agentscope.nacos.prompt")
public class AgentScopeNacosPromptProperties
extends BaseNacosProperties
Configuration properties for AgentScope Nacos Prompt integration.
This configuration allows users to drive the Agent's system prompt from Nacos. The
Nacos-stored prompt will take precedence over the YAML-defined agentscope.agent.sys-prompt,
while the YAML value can still be used as a default fallback.
Example configuration:
agentscope:
agent:
enabled: true
name: "Assistant"
sys-prompt: "You are a helpful AI assistant."
nacos:
server-addr: 127.0.0.1:8848
namespace: public
prompt:
enabled: true
sys-prompt-key: agent-main
version: "1.0.0"
label: "prod"
variables:
env: prod
app: order-service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()booleanvoidsetEnabled(boolean enabled) voidvoidsetSysPromptKey(String sysPromptKey) voidsetVariables(Map<String, String> variables) voidsetVersion(String version) Methods inherited from class io.agentscope.spring.boot.nacos.properties.BaseNacosProperties
getAccessKey, getExplicitNacosProperties, getNacosProperties, getNamespace, getPassword, getProperties, getSecretKey, getServerAddr, getUsername, setAccessKey, setNamespace, setPassword, setProperties, setSecretKey, setServerAddr, setUsername
-
Constructor Details
-
AgentScopeNacosPromptProperties
public AgentScopeNacosPromptProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getSysPromptKey
-
setSysPromptKey
-
getVersion
-
setVersion
-
getLabel
-
setLabel
-
getVariables
-
setVariables
-