Struct aws_sdk_lexruntimev2::model::runtime_hints::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for RuntimeHints.
Implementations§
source§impl Builder
impl Builder
sourcepub fn slot_hints(
self,
k: impl Into<String>,
v: HashMap<String, RuntimeHintDetails>
) -> Self
pub fn slot_hints(
self,
k: impl Into<String>,
v: HashMap<String, RuntimeHintDetails>
) -> Self
Adds a key-value pair to slot_hints.
To override the contents of this collection use set_slot_hints.
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn set_slot_hints(
self,
input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
) -> Self
pub fn set_slot_hints(
self,
input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
) -> Self
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn build(self) -> RuntimeHints
pub fn build(self) -> RuntimeHints
Consumes the builder and constructs a RuntimeHints.