Annotation Interface AiService
Registers an AI service.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The default no-op customizer. -
Optional Element Summary
Modifier 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:
""
-
named
The name of a configured AI model.- Returns:
- The model name.
- Default:
""
-
tools
Class<?>[] toolsThe types of the tools to include. Can be set to an empty array to include none.- Returns:
- The tool types
- Default:
{}
-
customizer
Class<? 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
-