Class VectorServiceOptions.Parameters
java.lang.Object
com.datastax.astra.client.core.vectorize.VectorServiceOptions.Parameters
- Enclosing class:
VectorServiceOptions
Represents a parameter definition for LLM services.
Each parameter can have a type, a required flag, a default value, and a description.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue
(Object defaultValue) Sets the default value for this parameter.Sets the description for this parameter.required
(boolean required) Sets whether this parameter is required.Sets the type of this parameter.
-
Constructor Details
-
Parameters
public Parameters()Default constructor for serialization purposes.
-
-
Method Details
-
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
Sets whether this parameter is required.- Parameters:
required
-true
if the parameter is mandatory,false
otherwise- Returns:
- the current
Parameters
instance for method chaining
-