Struct aws_sdk_lexruntimev2::types::RuntimeHints
source · #[non_exhaustive]pub struct RuntimeHints {
pub slot_hints: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>,
}Expand description
You can provide Amazon Lex V2 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 ==.impl StructuralPartialEq for RuntimeHints
Auto Trait Implementations§
impl Freeze for RuntimeHints
impl RefUnwindSafe for RuntimeHints
impl Send for RuntimeHints
impl Sync for RuntimeHints
impl Unpin for RuntimeHints
impl UnwindSafe for RuntimeHints
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more