Specifies an input
that is collected for executing an action.
action (%name%) {
collect {
input (%name%) {
type (%type%)
min (%Fmin-cardinality%)
max (%max-cardinality%)
prompt-behavior (%prompt-behavior%)
plan-behavior (%plan-behavior%)
hidden
related-values (%related-value%)
[iterable]
validate {
%validation%
}
default-init {
intent{
goal: %goal%
...
}
}
}
}
}
action (FindShoe) {
type (Search)
collect {
input (name) {
type (Name)
min (Optional)
}
input (type) {
type (Type)
min (Optional)
}
input (minPrice) {
type (money.MinPrice)
min (Optional)
max (One)
}
input (maxPrice) {
type (money.MaxPrice)
min (Optional)
max (One)
}
}
output (Shoe)
}
type required | Specifies the input type |
default-init optional | A default value for an input or variable type |
default-select optional | Enables selection rules in your action using the with-rule key and selection learning with the with-learning key |
description optional | Adds text describing the input, which is useful for documenting models |
hidden optional | Hide this input from function implementations |
iterable optional | Executes the action multiple times for each value of this input, so the input appears as a single value (not a list) to the function implementation |
max optional | Maximum cardinality of the input (One or Many) |
max-preferred optional | Indicate a max preference for one item |
min optional | Minimum cardinality of the input (Optional or Required) |
min-preferred optional | Indicate a min preference for no items |
order optional | Defines an explicit order in which to collect the inputs |
plan-behavior optional | A behavioral mode that modifies how the planner will attempt to instantiate the input |
prompt-behavior optional | A behavioral mode that modifies how the system will prompt on the input or at a prompt during plan execution time |
related-values optional | Declares how the system treats values of an input planned from different paths in a plan related to the same concept node type |
validate optional | Lists validation rules for an input or variable |