Annotation Interface AguiAgentId


@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @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
    Modifier and Type
    Required Element
    Description
    The agent ID to use for registration.
  • Element Details

    • value

      String value
      The agent ID to use for registration.
      Returns:
      The agent ID