Class ToolSpecification

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

public class ToolSpecification extends Object
Describes a Tool.
  • Method Details

    • name

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

      public String description()
      Returns the description of the tool.
      Returns:
      the description of the tool.
    • parameters

      public ToolParameters parameters()
      Returns the parameters of the tool.
      Returns:
      the parameters 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 ToolSpecification.Builder builder()
      Creates builder to build ToolSpecification.
      Returns:
      created builder