Class: Aws::LexRuntimeV2::Types::RuntimeHints

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb

Overview

Note:

When making an API call, you may pass RuntimeHints data as a hash:

{
  slot_hints: {
    "Name" => {
      "Name" => {
        runtime_hint_values: [ # required
          {
            phrase: "RuntimeHintPhrase", # required
          },
        ],
      },
    },
  },
}

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 hints to improve accuracy.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#slot_hintsHash<String,Hash<String,Types::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.

Returns:



1755
1756
1757
1758
1759
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 1755

class RuntimeHints < Struct.new(
  :slot_hints)
  SENSITIVE = []
  include Aws::Structure
end