Class CohereTool.Builder

  • Enclosing class:
    CohereTool

    public static class CohereTool.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public CohereTool.Builder name​(String name)
        The name of the tool to be called.

        Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public CohereTool.Builder description​(String description)
        The description of what the tool does, the model uses the description to choose when and how to call the function.
        Parameters:
        description - the value to set
        Returns:
        this builder