Record Class TextChatMessage.TextChatParameterTool
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.watsonx.bean.TextChatMessage.TextChatParameterTool
- Enclosing interface:
TextChatMessage
public static record TextChatMessage.TextChatParameterTool(String type, TextChatMessage.TextChatParameterTool.TextChatParameterFunction function)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTextChatParameterTool(String type, TextChatMessage.TextChatParameterTool.TextChatParameterFunction function) Creates an instance of aTextChatParameterToolrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.of(dev.langchain4j.agent.tool.ToolSpecification toolSpecification) Creates aTextChatMessage.TextChatParameterToolfrom aToolSpecification.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TextChatParameterTool
public TextChatParameterTool(String type, TextChatMessage.TextChatParameterTool.TextChatParameterFunction function) Creates an instance of aTextChatParameterToolrecord class.- Parameters:
type- the value for thetyperecord componentfunction- the value for thefunctionrecord component
-
-
Method Details
-
of
public static TextChatMessage.TextChatParameterTool of(dev.langchain4j.agent.tool.ToolSpecification toolSpecification) Creates aTextChatMessage.TextChatParameterToolfrom aToolSpecification.- Parameters:
toolSpecification- the tool specification to convert- Returns:
- the created
TextChatMessage.TextChatParameterTool
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-