Struct aws_sdk_lexmodelsv2::types::RuntimeHints
source · #[non_exhaustive]pub struct RuntimeHints {
pub slot_hints: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>,
}
Expand description
You can provide Amazon Lex with hints to the phrases that a customer is likely to use for a slot. When a slot with hints is resolved, the phrases in the runtime hints are preferred in the resolution. You can provide hints for a maximum of 100 intents. You can provide a maximum of 100 slots.
Before you can use runtime hints with an existing bot, you must first rebuild the bot.
For more information, see Using runtime hints to improve recognition of slot values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.slot_hints: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
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.
Implementations§
source§impl RuntimeHints
impl RuntimeHints
sourcepub fn slot_hints(
&self
) -> Option<&HashMap<String, HashMap<String, RuntimeHintDetails>>>
pub fn slot_hints( &self ) -> Option<&HashMap<String, HashMap<String, RuntimeHintDetails>>>
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.
source§impl RuntimeHints
impl RuntimeHints
sourcepub fn builder() -> RuntimeHintsBuilder
pub fn builder() -> RuntimeHintsBuilder
Creates a new builder-style object to manufacture RuntimeHints
.
Trait Implementations§
source§impl Clone for RuntimeHints
impl Clone for RuntimeHints
source§fn clone(&self) -> RuntimeHints
fn clone(&self) -> RuntimeHints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuntimeHints
impl Debug for RuntimeHints
source§impl PartialEq for RuntimeHints
impl PartialEq for RuntimeHints
source§fn eq(&self, other: &RuntimeHints) -> bool
fn eq(&self, other: &RuntimeHints) -> bool
self
and other
values to be equal, and is used
by ==
.