Options
OptionsLink
In Sierra‑SDK, every Invoker entry‑point parameter must be wrapped with Param[...], supplying a SierraOption to describe its behavior and validation rules.
Options Example
sierra.options
Link
Sierra Options.Link
Type-safe option descriptors for annotating invoker script parameters.
Usage
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
AttributesLink
ClassesLink
SierraOption
Link
SierraOption(*, description: str = '', mandatory: typing.Literal['MANDATORY'] | None = None, primary: bool = False, min_value: int | float | None = None, max_value: int | float | None = None, choices: list[typing.Any] | None = None, pattern: str | None = None)
Typed descriptor for marking a function parameter as a SIERRA option.
Provides metadata that controls how the parameter appears in the
generated config.yaml and how SIERRA presents it to the user.
| PARAMETER | DESCRIPTION |
|---|---|
description
|
Human-readable description of the parameter. Shown as a tooltip in the SIERRA canvas input dialog.
TYPE:
|
mandatory
|
Set to
TYPE:
|
primary
|
If
TYPE:
|
Examples:
| Python Console Session | |
|---|---|