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 Details

    • AgentScopeNacosPromptProperties

      public AgentScopeNacosPromptProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getSysPromptKey

      public String getSysPromptKey()
    • setSysPromptKey

      public void setSysPromptKey(String sysPromptKey)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getVariables

      public Map<String,String> getVariables()
    • setVariables

      public void setVariables(Map<String,String> variables)