Record Class AiServiceDef<T>
java.lang.Object
java.lang.Record
io.micronaut.langchain4j.aiservices.AiServiceDef<T>
- Type Parameters:
T- The generic type- Record Components:
beanDefinition- The bean definitiontype- The typename- The nametools- The toolscustomizer- The customizer classtoolProviders- The names of the tool provider beans, ornullto use the default tool providermcpClients- The names of the MCP client beans whose tools are provided to the serviceskills- The name of the Agent Skills bean of the service
public record AiServiceDef<T>(io.micronaut.inject.BeanDefinition<T> beanDefinition, @NonNull Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @Nullable Class<AiServiceCustomizer<T>> customizer, @Nullable List<String> toolProviders, @Nullable List<String> mcpClients, @Nullable String skills)
extends Record
Models a AiService definition.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAiServiceDef(io.micronaut.inject.BeanDefinition<T> beanDefinition, @NonNull Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @Nullable Class<AiServiceCustomizer<T>> customizer, @Nullable List<String> toolProviders, @Nullable List<String> mcpClients, @Nullable String skills) Creates an instance of aAiServiceDefrecord class.AiServiceDef(io.micronaut.inject.BeanDefinition<T> beanDefinition, Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @Nullable Class<AiServiceCustomizer<T>> customizer) Deprecated, for removal: This API element is subject to removal in a future version.Use the canonical constructor -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.inject.BeanDefinition<T> Returns the value of thebeanDefinitionrecord component.@Nullable Class<AiServiceCustomizer<T>> Returns the value of thecustomizerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themcpClientsrecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable Stringskills()Returns the value of theskillsrecord component.Returns the value of thetoolProvidersrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AiServiceDef
@Deprecated(since="2.4.0", forRemoval=true) public AiServiceDef(io.micronaut.inject.BeanDefinition<T> beanDefinition, Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @Nullable Class<AiServiceCustomizer<T>> customizer) Deprecated, for removal: This API element is subject to removal in a future version.Use the canonical constructorCreates a definition that uses the default tool provider.- Parameters:
beanDefinition- The bean definitiontype- The typename- The nametools- The toolscustomizer- The customizer class
-
AiServiceDef
public AiServiceDef(io.micronaut.inject.BeanDefinition<T> beanDefinition, @NonNull Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @Nullable Class<AiServiceCustomizer<T>> customizer, @Nullable List<String> toolProviders, @Nullable List<String> mcpClients, @Nullable String skills) Creates an instance of aAiServiceDefrecord class.- Parameters:
beanDefinition- the value for thebeanDefinitionrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componenttools- the value for thetoolsrecord componentcustomizer- the value for thecustomizerrecord componenttoolProviders- the value for thetoolProvidersrecord componentmcpClients- the value for themcpClientsrecord componentskills- the value for theskillsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
beanDefinition
Returns the value of thebeanDefinitionrecord component.- Returns:
- the value of the
beanDefinitionrecord component
-
type
-
name
-
tools
-
customizer
Returns the value of thecustomizerrecord component.- Returns:
- the value of the
customizerrecord component
-
toolProviders
Returns the value of thetoolProvidersrecord component.- Returns:
- the value of the
toolProvidersrecord component
-
mcpClients
Returns the value of themcpClientsrecord component.- Returns:
- the value of the
mcpClientsrecord component
-
skills
-