AgentscopeNacosReActAgentAutoConfiguration
@AutoConfiguration @AutoConfigureBefore(AgentscopeAutoConfiguration.class) @EnableConfigurationProperties({AgentscopeProperties.class, AgentScopeNacosPromptProperties.class}) @ConditionalOnClass(ReActAgent.class) @ConditionalOnProperty( prefix = NacosConstants.NACOS_PROMPT_PREFIX, name = "enabled", havingValue = "true", matchIfMissing = true) public class AgentscopeNacosReActAgentAutoConfiguration
源码Source
io/agentscope/spring/boot/nacos/AgentscopeNacosReActAgentAutoConfiguration.java:50–107Agentscope Nacos ReAct 智能体 Auto 配置,保存相关配置项。位于 io.agentscope.spring.boot.nacos 包。核心成员包括 nacosPromptReActAgent。
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.
方法摘要Method Summary
方法详情Method Detail
nacosPromptReActAgent
public ReActAgent nacosPromptReActAgent(Model model, Memory memory, Toolkit toolkit, AgentscopeProperties properties, AgentScopeNacosPromptProperties nacosPromptProperties, NacosPromptListener nacosPromptListener)
执行 nacosPromptReActAgent 方法。
Performs the nacos prompt ReAct agent operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
model | Model | 模型实例(类型 `Model`)。The model. |
memory | Memory | 记忆(类型 `Memory`)。The memory. |
toolkit | Toolkit | 工具包(类型 `Toolkit`)。The toolkit. |
properties | AgentscopeProperties | 属性(类型 `AgentscopeProperties`)。The properties. |
nacosPromptProperties | AgentScopeNacosPromptProperties | Nacos 提示词属性(类型 `AgentScopeNacosPromptProperties`)。The nacos prompt properties. |
nacosPromptListener | NacosPromptListener | Nacos 提示词监听器(类型 `NacosPromptListener`)。The nacos prompt listener. |
ReActAgent返回ReActAgent。Returns ReAct agent.
源码Source
io/agentscope/spring/boot/nacos/AgentscopeNacosReActAgentAutoConfiguration.java:64–106