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
ConstructorDescriptionAiServiceDef
(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 aAiServiceDef
record class. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.inject.BeanDefinition
<T> Returns the value of thebeanDefinition
record component.@Nullable Class
<AiServiceCustomizer<T>> Returns the value of thecustomizer
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable String
name()
Returns the value of thename
record component.tools()
Returns the value of thetools
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record 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 aAiServiceDef
record class.- Parameters:
beanDefinition
- the value for thebeanDefinition
record componenttype
- the value for thetype
record componentname
- the value for thename
record componenttools
- the value for thetools
record componentcustomizer
- the value for thecustomizer
record 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 thebeanDefinition
record component.- Returns:
- the value of the
beanDefinition
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
tools
Returns the value of thetools
record component.- Returns:
- the value of the
tools
record component
-
customizer
Returns the value of thecustomizer
record component.- Returns:
- the value of the
customizer
record component
-