AS AgentScopeAPI 手册 / API Reference

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–107

Agentscope 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说明Description
public ReActAgent nacosPromptReActAgent(Model model, Memory memory, Toolkit toolkit, AgentscopeProperties properties, AgentScopeNacosPromptProperties nacosPromptProperties, NacosPromptListener nacosPromptListener)
执行 `nacosPromptReActAgent` 方法。
Performs the nacos prompt ReAct agent operation.

方法详情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
modelModel模型实例(类型 `Model`)。The model.
memoryMemory记忆(类型 `Memory`)。The memory.
toolkitToolkit工具包(类型 `Toolkit`)。The toolkit.
propertiesAgentscopeProperties属性(类型 `AgentscopeProperties`)。The properties.
nacosPromptPropertiesAgentScopeNacosPromptPropertiesNacos 提示词属性(类型 `AgentScopeNacosPromptProperties`)。The nacos prompt properties.
nacosPromptListenerNacosPromptListenerNacos 提示词监听器(类型 `NacosPromptListener`)。The nacos prompt listener.
返回Returns ReActAgent
返回ReActAgent。Returns ReAct agent.
源码Source io/agentscope/spring/boot/nacos/AgentscopeNacosReActAgentAutoConfiguration.java:64–106
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.