Class CompleteToolCall
java.lang.Object
dev.langchain4j.model.chat.response.CompleteToolCall
Represents a complete tool call.
Includes the index, and complete
ToolExecutionRequest
.- Since:
- 1.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
int
index()
The index of the tool call, starting from 0 and increasing by 1.A fully constructedToolExecutionRequest
that is ready for execution.toString()
-
Constructor Details
-
CompleteToolCall
-
-
Method Details
-
index
public int index()The index of the tool call, starting from 0 and increasing by 1. When the LLM initiates multiple tool calls, this index helps correlate the differentPartialToolCall
s with each other and with the finalCompleteToolCall
. -
toolExecutionRequest
A fully constructedToolExecutionRequest
that is ready for execution. -
equals
-
hashCode
public int hashCode() -
toString
-