| Option value | transport = "fs" | transport = "env" |
|---|---|---|
my option value | my option value (utf-8) | my option value, (utf-8) |
Full example
- Single
- List
option.type
required- Single
- List
option.default
optional- Single
- List
A PotentialStringReference specifying the default value for
this option. If this is specified, setting
required = true will have no effect.option.secret
defaultfalse optional A boolean specifying whether the value for this option should be treated as a secret. Secret values are censored in logs and UI. API keys or other sensitive values should be marked as secret.
option.base64
defaultfalse optional A boolean specifying whether the value for this option should be sent to the agent as a base64 encoded string. If the option is of type
list[string], and transport is either env or unspecified, base64 encoding
should be abled to avoid confusing option values with the list seperating character: ,
option.required
defaultfalse optional If
required = true this option is not optional and must be specified. Setting required = true for an option
that has a default value has no effect.
option.validation
The server performs option validation before running an agent. The Coral server will never launch an agent with option values that do not pass the validation rules given for an option. The absence of a validation rule indicates that the absent validation rule should not be performed. No validation rules have default values. For list types, validation will be performed on each item on the list. A single invalid item will reject the entire list.option.validation.variants
optional An array of string literals that specify valid values for this option. Ifvariants is specified, the value for this option must be one of the entries in variants.
This is usually used to construct an enum.
option.validation.min_length
optional An integer specifying the minimum number of UTF-8 characters that must appear in string value.option.validation.max_length
optional An integer specifying the maximum number of UTF-8 characters that must appear in the string value.option.validation.regex
optional A string literal specifying a regex pattern that the option value must match fully.option.transport
defaultenv optional Controls how the option value is sent to the agent.
Environment transport
,. It is recommended to use option.base64 = true when
there is a chance the value will contain a comma.
Filesystem transport
;on Windows:on Unix-like operating systems
option.display
Display options are used to configure how the option should render in the Coral console. They may also be used in other third-party interfaces.option.display.label
optional A string literal specifying the label for this option. Coral console will display this label instead of the option’s name if it is specified.option.display.description
optional A string literal specifying a description for this option. The description will appear as a tooltip for this option in the Coral console.option.display.group
optional A string literal specifying the group that this option belongs to. Options with the same group will appear grouped in the Coral console.option.display.multiline
defaultfalse optional A boolean specifying whether Coral console should create a text field for this option that allows multiple lines. This is useful for prompts or other large texts.