Record Class TextChatMessage.TextChatToolCall
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.watsonx.bean.TextChatMessage.TextChatToolCall
- Enclosing interface:
TextChatMessage
public static record TextChatMessage.TextChatToolCall(Integer index, String id, String type, TextChatMessage.TextChatToolCall.TextChatFunctionCall function)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTextChatToolCall(Integer index, String id, String type, TextChatMessage.TextChatToolCall.TextChatFunctionCall function) Creates an instance of aTextChatToolCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.agent.tool.ToolExecutionRequestconvert()Converts aTextChatMessage.TextChatToolCallinto aToolExecutionRequest.final 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.id()Returns the value of theidrecord component.index()Returns the value of theindexrecord component.of(dev.langchain4j.agent.tool.ToolExecutionRequest toolExecutionRequest) Creates aTextChatMessage.TextChatToolCallfrom aToolExecutionRequest.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TextChatToolCall
public TextChatToolCall(Integer index, String id, String type, TextChatMessage.TextChatToolCall.TextChatFunctionCall function) Creates an instance of aTextChatToolCallrecord class.- Parameters:
index- the value for theindexrecord componentid- the value for theidrecord componenttype- the value for thetyperecord componentfunction- the value for thefunctionrecord component
-
-
Method Details
-
of
public static TextChatMessage.TextChatToolCall of(dev.langchain4j.agent.tool.ToolExecutionRequest toolExecutionRequest) Creates aTextChatMessage.TextChatToolCallfrom aToolExecutionRequest.- Parameters:
toolExecutionRequest- the tool execution request to convert- Returns:
- the created
TextChatMessage.TextChatToolCall
-
convert
public dev.langchain4j.agent.tool.ToolExecutionRequest convert()Converts aTextChatMessage.TextChatToolCallinto aToolExecutionRequest.- Returns:
- the converted
ToolExecutionRequest
-
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). -
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-