Record Class AiServiceMethodCreateInfo.UserMessageInfo

java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodCreateInfo.UserMessageInfo
Enclosing class:
AiServiceMethodCreateInfo

public static record AiServiceMethodCreateInfo.UserMessageInfo(Optional<AiServiceMethodCreateInfo.TemplateInfo> template, Optional<Integer> paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> pdfParamPosition) extends Record
  • Constructor Details

    • UserMessageInfo

      public UserMessageInfo(Optional<AiServiceMethodCreateInfo.TemplateInfo> template, Optional<Integer> paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> pdfParamPosition)
      Creates an instance of a UserMessageInfo record class.
      Parameters:
      template - the value for the template record component
      paramPosition - the value for the paramPosition record component
      userNameParamPosition - the value for the userNameParamPosition record component
      imageParamPosition - the value for the imageParamPosition record component
      pdfParamPosition - the value for the pdfParamPosition record component
  • Method Details

    • fromMethodParam

      public static AiServiceMethodCreateInfo.UserMessageInfo fromMethodParam(int paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> pdfParamPosition)
    • fromTemplate

      public static AiServiceMethodCreateInfo.UserMessageInfo fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition, Optional<Integer> imageUrlParamPosition, Optional<Integer> pdfParamPosition)
    • 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.
    • template

      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • paramPosition

      public Optional<Integer> paramPosition()
      Returns the value of the paramPosition record component.
      Returns:
      the value of the paramPosition record component
    • userNameParamPosition

      public Optional<Integer> userNameParamPosition()
      Returns the value of the userNameParamPosition record component.
      Returns:
      the value of the userNameParamPosition record component
    • imageParamPosition

      public Optional<Integer> imageParamPosition()
      Returns the value of the imageParamPosition record component.
      Returns:
      the value of the imageParamPosition record component
    • pdfParamPosition

      public Optional<Integer> pdfParamPosition()
      Returns the value of the pdfParamPosition record component.
      Returns:
      the value of the pdfParamPosition record component