amazonka-lex-runtime-2.0: Amazon Lex Runtime Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexRuntime.Types.PredictedIntent

Description

 
Synopsis

Documentation

data PredictedIntent Source #

An intent that Amazon Lex suggests satisfies the user's intent. Includes the name of the intent, the confidence that Amazon Lex has that the user's intent is satisfied, and the slots defined for the intent.

See: newPredictedIntent smart constructor.

Constructors

PredictedIntent' 

Fields

Instances

Instances details
FromJSON PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Generic PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Associated Types

type Rep PredictedIntent :: Type -> Type #

Show PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

NFData PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Methods

rnf :: PredictedIntent -> () #

Eq PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

Hashable PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

type Rep PredictedIntent Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.PredictedIntent

type Rep PredictedIntent = D1 ('MetaData "PredictedIntent" "Amazonka.LexRuntime.Types.PredictedIntent" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "PredictedIntent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "intentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nluIntentConfidence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IntentConfidence)) :*: S1 ('MetaSel ('Just "slots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))))))

newPredictedIntent :: PredictedIntent Source #

Create a value of PredictedIntent with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:intentName:PredictedIntent', predictedIntent_intentName - The name of the intent that Amazon Lex suggests satisfies the user's intent.

$sel:nluIntentConfidence:PredictedIntent', predictedIntent_nluIntentConfidence - Indicates how confident Amazon Lex is that an intent satisfies the user's intent.

$sel:slots:PredictedIntent', predictedIntent_slots - The slot and slot values associated with the predicted intent.

predictedIntent_intentName :: Lens' PredictedIntent (Maybe Text) Source #

The name of the intent that Amazon Lex suggests satisfies the user's intent.

predictedIntent_nluIntentConfidence :: Lens' PredictedIntent (Maybe IntentConfidence) Source #

Indicates how confident Amazon Lex is that an intent satisfies the user's intent.

predictedIntent_slots :: Lens' PredictedIntent (Maybe (HashMap Text Text)) Source #

The slot and slot values associated with the predicted intent.