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) Creates an instance of aUserMessageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromMethodParam(int paramPosition, Optional<Integer> userNameParamPosition) fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition) final inthashCode()Returns a hash code value for this object.Returns the value of theparamPositionrecord 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) Creates an instance of aUserMessageInforecord class.- Parameters:
template- the value for thetemplaterecord componentparamPosition- the value for theparamPositionrecord componentuserNameParamPosition- the value for theuserNameParamPositionrecord component
-
-
Method Details
-
fromMethodParam
public static AiServiceMethodCreateInfo.UserMessageInfo fromMethodParam(int paramPosition, Optional<Integer> userNameParamPosition) -
fromTemplate
public static AiServiceMethodCreateInfo.UserMessageInfo fromTemplate(AiServiceMethodCreateInfo.TemplateInfo templateInfo, Optional<Integer> userNameParamPosition) -
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
-