Annotation Interface AiService
Registers an AI service.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classThe default no-op customizer.
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<? extends AiServiceCustomizer<?>> A customizer can be registered to customize its creation.The name of a configured AI model.Class<?>[]The types of the tools to include.Defines the service name.
- 
Element Details- 
value@AliasFor(annotation=jakarta.inject.Named.class,member="value") @AliasFor(member="named") String valueDefines the service name. Same asnamed().- Returns:
- The service name
 - Default:
- ""
 
- 
namedThe name of a configured AI model.- Returns:
- The model name.
 - Default:
- ""
 
- 
toolsClass<?>[] toolsThe types of the tools to include. Can be set to an empty array to include none.- Returns:
- The tool types
 - Default:
- {}
 
- 
customizerClass<? extends AiServiceCustomizer<?>> customizerA customizer can be registered to customize its creation.Normally these are picked up automatically if declared as beans, using this members allows the chosen customizer to be overridden. - Returns:
- The customizer
 - Default:
- io.micronaut.langchain4j.annotation.AiService.NoOpCustomizer.class
 
 
-