Class ToolParameters

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

public class ToolParameters extends Object
Represents the parameters of a tool.
  • Method Details

    • type

      public String type()
      Returns the type of the tool.
      Returns:
      the type of the tool.
    • properties

      public Map<String,Map<String,Object>> properties()
      Returns the properties of the tool.
      Returns:
      the properties of the tool.
    • required

      public List<String> required()
      Returns the required properties of the tool.
      Returns:
      the required properties 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 ToolParameters.Builder builder()
      ToolParameters builder static inner class.
      Returns:
      a ToolParameters.Builder.