Bixby Developer Center

Guides
References

named-advice

requiredmultiple allowedvalue required

The named-advice block contains all the fields that make up a strategy. Developers can provide up to 5 different pieces of advice in a given strategy through individual named-advice blocks. Each of these blocks requires a unique ID:

Example

named-advice ("user-in-country") {
...
}

Note

You can also use simplified syntax with selection-strategy to handle common filtering by combining both the advice with the advice-for or advice-against keys.

Examples

selection-strategy {
id (reject-bitcoin-payment-restaurants)
match {
food.AcceptsBitcoin(acceptsBitcoin) {
to-input: food.FindRestaurant(_)
}
}
advise-against ("${acceptsBitcoin}”)
}
selection-strategy {
id (prefer-thai-restaurants)
match {
food.CuisineStyle(style) {
to-input: food.FindRestaurant(_)
}
}
advise-for ("${style == ‘Thai’}”)
}

For more information about named-advice, read about Selection Strategies.

Child Keys

advice
optional
Each named-advice block requires a single advice statement
advise-against
optional
The range of scores indicating that this strategy is bad, aka AGAINST
advise-for
optional
The range of scores indicating that this strategy is good, aka FOR
with-value-at
optional
Use with-value-at when you want a strategy to essentially advise for memorizing the option