The following code is an example of an INCORRECT method of modeling an action with variable inputs:
action (GetContent) {
type (Search)
collect {
input (searchTerm1) {
type (SearchTerm)
min (Optional)
}
input (searchTerm2) {
type (SearchTerm2)
min (Optional)
}
input (searchTerm3) {
type (SearchTerm3)
min (Optional)
}
input (searchTerm4) {
type (SearchTerm4)
min (Optional)
}
}
output (Content)
}
The above action does not take advantage of the max(Many) functionality available with Bixby. Defining the max as Many allows you to tell Bixby that there may be more than one value to be expected. Note that the above code can accept a maximum of 4 inputs while max(Many) has no such limit.
The following action is the CORRECT method of modeling an action with variable inputs:
action (GetContent) {
type (Search)
collect {
input (searchTerm1) {
type (SearchTerm)
min (Optional) max (Many)
}
}
output (Content)
}
Comments
0 comments
Please sign in to leave a comment.