Bixby Developer Center

References

action

optionalvalue required

Defines an action model. An action evaluates zero, one, or more inputs and generates an output. For more information, see Modeling Actions.

You must define this key and child keys in a *.model.bxb file. The file must be in the models/action folder.

Example

action (RollDice) {
collect{
input (numDice) {
type (NumDiceConcept)
min (Required)
max (One)
}

input (numSides) {
type (NumSidesConcept)
min (Required)
max (One)
}
}
output (RollResultConcept)
type (Calculation)
}

View master on GitHub

Child Keys

output
required
Specifies the output type of a given action
collect
optional
Specifies zero, one, or more inputs to be evaluated before executing the action
confirm
optional
Enables you to conditionally determine if an action requires a confirmation or to change the type of confirmation required
delegate-to[deprecated]
optional
This key is deprecated
description
optional
Adds text describing the action, which is useful for documenting models
features
optional
Marks an action with special features
type
optional
Specifies the action type