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 TypeMethodDescriptionbooleaninthashCode()intindex()The index of the tool call, starting from 0 and increasing by 1.A fully constructedToolExecutionRequestthat 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 differentPartialToolCalls with each other and with the finalCompleteToolCall. -
toolExecutionRequest
A fully constructedToolExecutionRequestthat is ready for execution. -
equals
-
hashCode
-
toString
-