Record Class AiServiceMethodCreateInfo.UserMessageInfo
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodCreateInfo.UserMessageInfo
- Enclosing class:
AiServiceMethodCreateInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUserMessageInfo
(Optional<AiServiceMethodCreateInfo.TemplateInfo> template, Optional<Integer> paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> pdfParamPosition) Creates an instance of aUserMessageInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fromMethodParam
(int paramPosition, Optional<Integer> userNameParamPosition, Optional<Integer> imageParamPosition, Optional<Integer> pdfParamPosition) fromTemplate
(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition, Optional<Integer> imageUrlParamPosition, Optional<Integer> pdfParamPosition) final int
hashCode()
Returns a hash code value for this object.Returns the value of theimageParamPosition
record component.Returns the value of theparamPosition
record component.Returns the value of thepdfParamPosition
record component.template()
Returns the value of thetemplate
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserNameParamPosition
record component.
-
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 aUserMessageInfo
record class.- Parameters:
template
- the value for thetemplate
record componentparamPosition
- the value for theparamPosition
record componentuserNameParamPosition
- the value for theuserNameParamPosition
record componentimageParamPosition
- the value for theimageParamPosition
record componentpdfParamPosition
- the value for thepdfParamPosition
record component
-
-
Method Details
-
fromMethodParam
-
fromTemplate
public static AiServiceMethodCreateInfo.UserMessageInfo fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition, Optional<Integer> imageUrlParamPosition, 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 thetemplate
record component.- Returns:
- the value of the
template
record component
-
paramPosition
-
userNameParamPosition
-
imageParamPosition
-
pdfParamPosition
-