Annotation Interface AguiAgentId
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 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.
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe agent ID to use for registration.- Returns:
- The agent ID
-