Class CompleteToolCall

java.lang.Object
dev.langchain4j.model.chat.response.CompleteToolCall

@Experimental public class CompleteToolCall extends Object
Represents a complete tool call. Includes the index, and complete ToolExecutionRequest.
Since:
1.2.0
See Also:
  • Constructor Details

  • 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 different PartialToolCalls with each other and with the final CompleteToolCall.
    • toolExecutionRequest

      public ToolExecutionRequest toolExecutionRequest()
      A fully constructed ToolExecutionRequest that is ready for execution.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object