⚡Instantiating a Config Function
In this section, we'll use the following configuration function:
Instantiation Rules
Default Values
Parameters use their default values when not specified:
Conditional Logic
Values must respect the configuration's conditional logic:
Numeric Bounds Validation
Numeric parameters undergo bounds validation, if specified:
Variable Selection Methods
To ensure we pass only the required variables, we have two filtering approaches:
Include specific variables using
final_vars
:
Use final_vars
when you need only a few specific variables
When final_vars
is empty, all variables are returned (except those in exclude_vars
)
Exclude unwanted variables using
exclude_vars
:
Choose exclude_vars
when you have many variables to keep and little to filter out.
Available Parameter Types
Each parameter type has specific validation and behavior rules. See each section for more details:
HP Call Types
select & multi_select - For categorical choices
int, number & multi_int, multi_number - For numeric values
bool & multi_bool - For boolean values
text & multi_text - For string values
nest - For nested configurations
Last updated