AS AgentScopeAPI 手册 / API Reference

AguiAgentId

@Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface AguiAgentId
源码Source io/agentscope/spring/boot/agui/common/AguiAgentId.java:46–57

用于标记AGUI 智能体标识相关元数据的注解。位于 io.agentscope.spring.boot.agui.common 包。核心成员包括 value。

Annotation to specify a custom agent ID for auto-registration.

When an Agent bean is annotated with this annotation, the specified ID will be used instead of the bean name for registration in the io.agentscope.core.agui.registry.AguiAgentRegistry.

Usage:

`@Bean
@AguiAgentId("custom-chat-agent")
public Agent chatAgent() {
return ReActAgent.builder()
.name("ChatAgent")
.model(model)
.build();
}
`

If this annotation is not present, the bean name will be used as the agent ID.

方法摘要Method Summary

方法Method说明Description
public String value()
智能体标识到使用用于注册。
The agent ID to use for registration.

方法详情Method Detail

value

public String value()

智能体标识到使用用于注册。

The agent ID to use for registration.

返回Returns String
智能体标识。The agent ID
源码Source io/agentscope/spring/boot/agui/common/AguiAgentId.java:56
基于官方固定版本源码静态生成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.