Class ToolExecutionRequest

java.lang.Object
dev.langchain4j.agent.tool.ToolExecutionRequest

public class ToolExecutionRequest extends Object
Represents an LLM-generated request to execute a tool.
  • Method Details

    • id

      public String id()
      Returns the id of the tool.
      Returns:
      the id of the tool.
    • name

      public String name()
      Returns the name of the tool.
      Returns:
      the name of the tool.
    • arguments

      public String arguments()
      Returns the arguments of the tool.
      Returns:
      the arguments of the tool.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ToolExecutionRequest.Builder builder()
      Creates builder to build ToolExecutionRequest.
      Returns:
      created builder