11package events
22
33type LexEvent struct {
4- MessageVersion string `json:"messageVersion,omitempty"`
5- InvocationSource string `json:"invocationSource,omitempty"`
6- UserID string `json:"userId,omitempty"`
7- InputTranscript string `json:"inputTranscript,omitempty"`
8- SessionAttributes SessionAttributes `json:"sessionAttributes,omitempty"`
9- RequestAttributes map [string ]string `json:"requestAttributes,omitempty"`
10- Bot * LexBot `json:"bot,omitempty"`
11- OutputDialogMode string `json:"outputDialogMode,omitempty"`
12- CurrentIntent * LexCurrentIntent `json:"currentIntent,omitempty"`
13- DialogAction * LexDialogAction `json:"dialogAction,omitempty"`
4+ MessageVersion string `json:"messageVersion,omitempty"`
5+ InvocationSource string `json:"invocationSource,omitempty"`
6+ UserID string `json:"userId,omitempty"`
7+ InputTranscript string `json:"inputTranscript,omitempty"`
8+ SessionAttributes SessionAttributes `json:"sessionAttributes,omitempty"`
9+ RequestAttributes map [string ]string `json:"requestAttributes,omitempty"`
10+ Bot * LexBot `json:"bot,omitempty"`
11+ OutputDialogMode string `json:"outputDialogMode,omitempty"`
12+ CurrentIntent * LexCurrentIntent `json:"currentIntent,omitempty"`
13+ AlternativeIntents []LexAlternativeIntents `json:"alternativeIntents,omitempty"`
14+ DialogAction * LexDialogAction `json:"dialogAction,omitempty"`
1415}
1516
1617type LexBot struct {
@@ -20,10 +21,19 @@ type LexBot struct {
2021}
2122
2223type LexCurrentIntent struct {
23- Name string `json:"name,omitempty"`
24- Slots Slots `json:"slots,omitempty"`
25- SlotDetails map [string ]SlotDetail `json:"slotDetails,omitempty"`
26- ConfirmationStatus string `json:"confirmationStatus,omitempty"`
24+ Name string `json:"name,omitempty"`
25+ NLUIntentConfidenceScore float64 `json:"nluIntentConfidenceScore,omitempty"`
26+ Slots Slots `json:"slots,omitempty"`
27+ SlotDetails map [string ]SlotDetail `json:"slotDetails,omitempty"`
28+ ConfirmationStatus string `json:"confirmationStatus,omitempty"`
29+ }
30+
31+ type LexAlternativeIntents struct {
32+ Name string `json:"name,omitempty"`
33+ NLUIntentConfidenceScore float64 `json:"nluIntentConfidenceScore,omitempty"`
34+ Slots Slots `json:"slots,omitempty"`
35+ SlotDetails map [string ]SlotDetail `json:"slotDetails,omitempty"`
36+ ConfirmationStatus string `json:"confirmationStatus,omitempty"`
2737}
2838
2939type SlotDetail struct {
0 commit comments