Record Class AiServiceMethodCreateInfo.TemplateInfo
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodCreateInfo.TemplateInfo
- Record Components:
methodParamPosition
- this is used to determine the position of the parameter that holds the template, and it is never set if 'text' is set
- Enclosing class:
AiServiceMethodCreateInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fromMethodParam
(Integer methodParamPosition, Map<String, Integer> nameToParamPosition) final int
hashCode()
Returns a hash code value for this object.Returns the value of themethodParamPosition
record component.Returns the value of thenameToParamPosition
record component.text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TemplateInfo
public TemplateInfo(Optional<String> text, Map<String, Integer> nameToParamPosition, Optional<Integer> methodParamPosition) Creates an instance of aTemplateInfo
record class.- Parameters:
text
- the value for thetext
record componentnameToParamPosition
- the value for thenameToParamPosition
record componentmethodParamPosition
- the value for themethodParamPosition
record component
-
-
Method Details
-
fromText
public static AiServiceMethodCreateInfo.TemplateInfo fromText(String text, Map<String, Integer> nameToParamPosition) -
fromMethodParam
public static AiServiceMethodCreateInfo.TemplateInfo fromMethodParam(Integer methodParamPosition, Map<String, Integer> nameToParamPosition) -
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)
. -
text
-
nameToParamPosition
-
methodParamPosition
Returns the value of themethodParamPosition
record component.- Returns:
- the value of the
methodParamPosition
record component
-