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 class
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)
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) Creates an instance of aAiServiceDefrecord class. -
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.@Nullable Stringname()Returns the value of thenamerecord 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
public AiServiceDef(io.micronaut.inject.BeanDefinition<T> beanDefinition, @NonNull @NonNull Class<T> type, @Nullable @Nullable String name, @Nullable @Nullable Set<Class<?>> tools, @Nullable @Nullable Class<AiServiceCustomizer<T>> customizer) 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 component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
customizer
Returns the value of thecustomizerrecord component.- Returns:
- the value of the
customizerrecord component
-