类 ToolSpecification

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

public class ToolSpecification extends Object
Describes a Tool.
  • 方法详细资料

    • name

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

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

      public ToolParameters parameters()
      Returns the parameters of the tool.
      返回:
      the parameters of the tool.
    • equals

      public boolean equals(Object another)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • builder

      public static ToolSpecification.Builder builder()
      Creates builder to build ToolSpecification.
      返回:
      created builder