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.
String智能体标识。The agent ID
源码Source
io/agentscope/spring/boot/agui/common/AguiAgentId.java:56