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 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 a VectorActionTemplate record class.
      Parameters:
      namespace - the value for the namespace record component
      topK - the value for the topK record component
      includeMetadata - the value for the includeMetadata record component
      includeValues - the value for the includeValues record component
      ids - the value for the ids record component
      id - the value for the id record component
      text - the value for the text record component
      vector - the value for the vector record component
      filter - the value for the filter record component
      limit - the value for the limit record component
      vectors - the value for the vectors record component
      metadata - the value for the metadata record component
      extra - the value for the extra record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • topK

      public Object topK()
      Returns the value of the topK record component.
      Returns:
      the value of the topK record component
    • includeMetadata

      public Boolean includeMetadata()
      Returns the value of the includeMetadata record component.
      Returns:
      the value of the includeMetadata record component
    • includeValues

      public Boolean includeValues()
      Returns the value of the includeValues record component.
      Returns:
      the value of the includeValues record component
    • ids

      public Object ids()
      Returns the value of the ids record component.
      Returns:
      the value of the ids record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • text

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • vector

      public Object vector()
      Returns the value of the vector record component.
      Returns:
      the value of the vector record component
    • filter

      public Object filter()
      Returns the value of the filter record component.
      Returns:
      the value of the filter record component
    • limit

      public Object limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component
    • vectors

      public Object vectors()
      Returns the value of the vectors record component.
      Returns:
      the value of the vectors record component
    • metadata

      public Object metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • extra

      public Map<String,Object> extra()
      Returns the value of the extra record component.
      Returns:
      the value of the extra record component