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> audioParamPosition, Optional<Integer> pdfParamPosition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserMessageInfo(Optional<AiServiceMethodCreateInfo.TemplateInfo> template, Optional<Integer> paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> audioParamPosition, Optional<Integer> pdfParamPosition) Creates an instance of aUserMessageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaudioParamPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.fromMethodParam(int paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> audioParamPosition, Optional<Integer> pdfParamPosition) fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition, Optional<Integer> imageUrlParamPosition, Optional<Integer> audioParamPosition, Optional<Integer> pdfParamPosition) final inthashCode()Returns a hash code value for this object.Returns the value of theimageParamPositionrecord component.Returns the value of theparamPositionrecord component.Returns the value of thepdfParamPositionrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserNameParamPositionrecord component.
-
Constructor Details
-
UserMessageInfo
public UserMessageInfo(Optional<AiServiceMethodCreateInfo.TemplateInfo> template, Optional<Integer> paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> audioParamPosition, Optional<Integer> pdfParamPosition) Creates an instance of aUserMessageInforecord class.- Parameters:
template- the value for thetemplaterecord componentparamPosition- the value for theparamPositionrecord componentuserNameParamPosition- the value for theuserNameParamPositionrecord componentimageParamPosition- the value for theimageParamPositionrecord componentaudioParamPosition- the value for theaudioParamPositionrecord componentpdfParamPosition- the value for thepdfParamPositionrecord component
-
-
Method Details
-
fromMethodParam
-
fromTemplate
public static AiServiceMethodCreateInfo.UserMessageInfo fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition, Optional<Integer> imageUrlParamPosition, Optional<Integer> audioParamPosition, Optional<Integer> pdfParamPosition) -
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). -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
paramPosition
-
userNameParamPosition
-
imageParamPosition
-
audioParamPosition
-
pdfParamPosition
-