Package app.ductape.sdk.vector.types
Record Class VectorActionInterfaceTypes.VectorActionTemplate
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorActionInterfaceTypes.VectorActionTemplate
- Enclosing class:
- VectorActionInterfaceTypes
public static record VectorActionInterfaceTypes.VectorActionTemplate(String namespace, Object topK, Boolean includeMetadata, Boolean includeValues, Object ids, String id, String text, Object vector, Object filter, Object limit, Object vectors, Object metadata, Map<String,Object> extra)
extends Record
TS
IVectorActionTemplate — declared fields plus extra for additional keys
(TS index signature [key: string]: any).-
Constructor Summary
ConstructorsConstructorDescriptionVectorActionTemplate(String namespace, Object topK, Boolean includeMetadata, Boolean includeValues, Object ids, String id, String text, Object vector, Object filter, Object limit, Object vectors, Object metadata, Map<String, Object> extra) Creates an instance of aVectorActionTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.extra()Returns the value of theextrarecord component.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.ids()Returns the value of theidsrecord component.Returns the value of theincludeMetadatarecord component.Returns the value of theincludeValuesrecord component.limit()Returns the value of thelimitrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thenamespacerecord component.text()Returns the value of thetextrecord component.topK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.vector()Returns the value of thevectorrecord component.vectors()Returns the value of thevectorsrecord component.
-
Constructor Details
-
VectorActionTemplate
public VectorActionTemplate(String namespace, Object topK, Boolean includeMetadata, Boolean includeValues, Object ids, String id, String text, Object vector, Object filter, Object limit, Object vectors, Object metadata, Map<String, Object> extra) Creates an instance of aVectorActionTemplaterecord class.- Parameters:
namespace- the value for thenamespacerecord componenttopK- the value for thetopKrecord componentincludeMetadata- the value for theincludeMetadatarecord componentincludeValues- the value for theincludeValuesrecord componentids- the value for theidsrecord componentid- the value for theidrecord componenttext- the value for thetextrecord componentvector- the value for thevectorrecord componentfilter- the value for thefilterrecord componentlimit- the value for thelimitrecord componentvectors- the value for thevectorsrecord componentmetadata- the value for themetadatarecord componentextra- the value for theextrarecord 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). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
topK
Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
includeMetadata
Returns the value of theincludeMetadatarecord component.- Returns:
- the value of the
includeMetadatarecord component
-
includeValues
Returns the value of theincludeValuesrecord component.- Returns:
- the value of the
includeValuesrecord component
-
ids
Returns the value of theidsrecord component.- Returns:
- the value of the
idsrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
vector
Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
vectors
Returns the value of thevectorsrecord component.- Returns:
- the value of the
vectorsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
extra
Returns the value of theextrarecord component.- Returns:
- the value of the
extrarecord component
-