Class ToolParameters.Builder

java.lang.Object
dev.langchain4j.agent.tool.ToolParameters.Builder
Enclosing class:
ToolParameters

public static final class ToolParameters.Builder extends Object
ToolParameters builder static inner class.
  • Method Details

    • type

      public ToolParameters.Builder type(String type)
      Sets the type.
      Parameters:
      type - the type
      Returns:
      the Builder.
    • properties

      public ToolParameters.Builder properties(Map<String,Map<String,Object>> properties)
      Sets the properties.
      Parameters:
      properties - the properties
      Returns:
      the Builder.
    • required

      public ToolParameters.Builder required(List<String> required)
      Sets the required.
      Parameters:
      required - the required
      Returns:
      the Builder.
    • build

      public ToolParameters build()
      Returns a ToolParameters built from the parameters previously set.
      Returns:
      a ToolParameters built with parameters of this ToolParameters.Builder