Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 24 additions & 14 deletions events/lex.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package events

type LexEvent struct {
MessageVersion string `json:"messageVersion,omitempty"`
InvocationSource string `json:"invocationSource,omitempty"`
UserID string `json:"userId,omitempty"`
InputTranscript string `json:"inputTranscript,omitempty"`
SessionAttributes SessionAttributes `json:"sessionAttributes,omitempty"`
RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
Bot *LexBot `json:"bot,omitempty"`
OutputDialogMode string `json:"outputDialogMode,omitempty"`
CurrentIntent *LexCurrentIntent `json:"currentIntent,omitempty"`
DialogAction *LexDialogAction `json:"dialogAction,omitempty"`
MessageVersion string `json:"messageVersion,omitempty"`
InvocationSource string `json:"invocationSource,omitempty"`
UserID string `json:"userId,omitempty"`
InputTranscript string `json:"inputTranscript,omitempty"`
SessionAttributes SessionAttributes `json:"sessionAttributes,omitempty"`
RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
Bot *LexBot `json:"bot,omitempty"`
OutputDialogMode string `json:"outputDialogMode,omitempty"`
CurrentIntent *LexCurrentIntent `json:"currentIntent,omitempty"`
AlternativeIntents []LexAlternativeIntents `json:"alternativeIntents,omitempty"`
DialogAction *LexDialogAction `json:"dialogAction,omitempty"`
}

type LexBot struct {
Expand All @@ -20,10 +21,19 @@ type LexBot struct {
}

type LexCurrentIntent struct {
Name string `json:"name,omitempty"`
Slots Slots `json:"slots,omitempty"`
SlotDetails map[string]SlotDetail `json:"slotDetails,omitempty"`
ConfirmationStatus string `json:"confirmationStatus,omitempty"`
Name string `json:"name,omitempty"`
NLUIntentConfidenceScore float64 `json:"nluIntentConfidenceScore,omitempty"`
Slots Slots `json:"slots,omitempty"`
SlotDetails map[string]SlotDetail `json:"slotDetails,omitempty"`
ConfirmationStatus string `json:"confirmationStatus,omitempty"`
}

type LexAlternativeIntents struct {
Name string `json:"name,omitempty"`
NLUIntentConfidenceScore float64 `json:"nluIntentConfidenceScore,omitempty"`
Slots Slots `json:"slots,omitempty"`
SlotDetails map[string]SlotDetail `json:"slotDetails,omitempty"`
ConfirmationStatus string `json:"confirmationStatus,omitempty"`
}

type SlotDetail struct {
Expand Down