Modify Bixby's prompting behavior for a node. This lets you override the planner's decision whether to prompt a user based on cardinality constraints.
The @prompt-behavior
execution attribute acts like the prompt-behavior
key.
This intent
always requires a user to enter an email address:
intent {
subplan {
value { @prompt-behavior(AlwaysElicitation) $expr(self.emailAddresses) }
goal { contact.EmailInfo }
}
This subplan
from the Space Resorts sample capsule prompts the user to narrow down the selection if more than one option is available in the search results.
computed-input (newPod) {
type (HabitatPod)
min (Required)
max (One)
//Prompts user if there are more than one option available
compute {
intent {
goal {
@prompt-behavior(AlwaysSelection)
HabitatPod
}
subplan {
goal: FindPods
value: $expr(spaceResort)
value: $expr(numberOfAstronauts)
value: $expr(dateInterval)
}
}
}
}
Copyright 2024 Samsung All rights reserved