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 aTextChatParameterTool
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.function()
Returns the value of thefunction
record component.final int
hashCode()
Returns a hash code value for this object.of
(dev.langchain4j.agent.tool.ToolSpecification toolSpecification) Creates aTextChatMessage.TextChatParameterTool
from aToolSpecification
.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
TextChatParameterTool
public TextChatParameterTool(String type, TextChatMessage.TextChatParameterTool.TextChatParameterFunction function) Creates an instance of aTextChatParameterTool
record class.- Parameters:
type
- the value for thetype
record componentfunction
- the value for thefunction
record component
-
-
Method Details
-
of
public static TextChatMessage.TextChatParameterTool of(dev.langchain4j.agent.tool.ToolSpecification toolSpecification) Creates aTextChatMessage.TextChatParameterTool
from 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 thetype
record component.- Returns:
- the value of the
type
record component
-
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-