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
-
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 Class<T> type, @Nullable String name, @Nullable Set<Class<?>> tools, @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
-
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
-