Package io.agentscope.spring.boot.nacos
Class AgentscopeNacosReActAgentAutoConfiguration
java.lang.Object
io.agentscope.spring.boot.nacos.AgentscopeNacosReActAgentAutoConfiguration
@AutoConfiguration
@AutoConfigureBefore(io.agentscope.spring.boot.AgentscopeAutoConfiguration.class)
@EnableConfigurationProperties({io.agentscope.spring.boot.properties.AgentscopeProperties.class,AgentScopeNacosPromptProperties.class})
@ConditionalOnClass(io.agentscope.core.ReActAgent.class)
@ConditionalOnProperty(prefix="agentscope.nacos.prompt",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class AgentscopeNacosReActAgentAutoConfiguration
extends Object
Auto-configuration that assembles
ReActAgent instances backed by Nacos-managed prompts.
This configuration is responsible only for wiring the Agent from existing building blocks
(model, memory, toolkit, Nacos prompt infrastructure). It is separated from
AgentscopeNacosPromptAutoConfiguration, which focuses on Nacos prompt-related
components such as AiService and NacosPromptListener.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.agentscope.core.ReActAgentnacosPromptReActAgent(io.agentscope.core.model.Model model, io.agentscope.core.memory.Memory memory, io.agentscope.core.tool.Toolkit toolkit, io.agentscope.spring.boot.properties.AgentscopeProperties properties, AgentScopeNacosPromptProperties nacosPromptProperties, io.agentscope.core.nacos.prompt.NacosPromptListener nacosPromptListener)
-
Constructor Details
-
AgentscopeNacosReActAgentAutoConfiguration
public AgentscopeNacosReActAgentAutoConfiguration()
-
-
Method Details
-
nacosPromptReActAgent
@Bean @Scope("prototype") @ConditionalOnMissingBean(io.agentscope.core.ReActAgent.class) public io.agentscope.core.ReActAgent nacosPromptReActAgent(io.agentscope.core.model.Model model, io.agentscope.core.memory.Memory memory, io.agentscope.core.tool.Toolkit toolkit, io.agentscope.spring.boot.properties.AgentscopeProperties properties, AgentScopeNacosPromptProperties nacosPromptProperties, io.agentscope.core.nacos.prompt.NacosPromptListener nacosPromptListener)
-