Class VectorServiceOptions.Parameters

java.lang.Object
com.datastax.astra.client.core.vectorize.VectorServiceOptions.Parameters
Enclosing class:
VectorServiceOptions

public static class VectorServiceOptions.Parameters extends Object
Represents a parameter definition for LLM services.

Each parameter can have a type, a required flag, a default value, and a description.

  • Constructor Details

    • Parameters

      public Parameters()
      Default constructor for serialization purposes.
  • Method Details

    • defaultValue

      public VectorServiceOptions.Parameters defaultValue(Object defaultValue)
      Sets the default value for this parameter.
      Parameters:
      defaultValue - the default value
      Returns:
      the current Parameters instance for method chaining
    • type

      Sets the type of this parameter.
      Parameters:
      type - the type of the parameter
      Returns:
      the current Parameters instance for method chaining
    • help

      Sets the description for this parameter.
      Parameters:
      help - a brief description of the parameter
      Returns:
      the current Parameters instance for method chaining
    • required

      public VectorServiceOptions.Parameters required(boolean required)
      Sets whether this parameter is required.
      Parameters:
      required - true if the parameter is mandatory, false otherwise
      Returns:
      the current Parameters instance for method chaining