lex

package
v0.0.0-...-c154154 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveContext

type ActiveContext struct {
	Name              string            `json:"name"`
	ContextAttributes ContextAttributes `json:"contextAttributes"`
	TimeToLive        TimeToLive        `json:"timeToLive"`
}

type Attributes

type Attributes struct {
	String string `json:"string"`
}

type Button

type Button struct {
	Text  string `json:"text"`
	Value string `json:"value"`
}

type ContextAttributes

type ContextAttributes struct {
	Key string `json:"key"`
}

type DialogAction

type DialogAction struct {
	SlotElicitationStyle string `json:"slotElicitationStyle"`
	SlotToElicit         string `json:"slotToElicit"`
	Type                 string `json:"type"`
}

type ImageResponseCard

type ImageResponseCard struct {
	Title    string   `json:"title"`
	Subtitle string   `json:"subtitle"`
	ImageURL string   `json:"imageUrl"`
	Buttons  []Button `json:"buttons"`
}

type Intent

type Intent struct {
	ConfirmationState string `json:"confirmationState"`
	Name              string `json:"name"`
	Slots             Slots  `json:"slots"`
	State             string `json:"state"`
}

type LexV2Event

type LexV2Event struct {
	events.LexEvent
	Interpretations []map[string]interface{} `json:"interpretations"`
	SessionState    SessionState             `json:"sessionState"`
	InputMode       string                   `json:"inputMode"`
}

type LexV2Response

type LexV2Response struct {
	SessionState      SessionState `json:"sessionState"`
	Messages          []Message    `json:"messages"`
	RequestAttributes Attributes   `json:"requestAttributes"`
}

type Message

type Message struct {
	ContentType string `json:"contentType"`
	Content     string `json:"content"`
}

type RuntimeHintValue

type RuntimeHintValue struct {
	Phrase string `json:"phrase"`
}

type RuntimeHints

type RuntimeHints struct {
	SlotHints SlotHints `json:"slotHints"`
}

type SessionState

type SessionState struct {
	ActiveContexts    []ActiveContext `json:"activeContexts"`
	SessionAttributes Attributes      `json:"sessionAttributes"`
	// TODO: Configure more detailed runtime hints.
	//RuntimeHints      RuntimeHints    `json:"runtimeHints,omitempty"`
	DialogAction DialogAction `json:"dialogAction"`
	Intent       Intent       `json:"intent"`
}

type SlotHints

type SlotHints struct {
	String SlotHintsString `json:"string"`
}

type SlotHintsString

type SlotHintsString struct {
	String StringString `json:"string"`
}

type Slots

type Slots struct {
	String interface{} `json:"string"`
}

type StringString

type StringString struct {
	RuntimeHintValues []RuntimeHintValue `json:"runtimeHintValues"`
}

type TimeToLive

type TimeToLive struct {
	TimeToLiveInSeconds int64 `json:"timeToLiveInSeconds"`
	TurnsToLive         int64 `json:"turnsToLive"`
}

type ValueElement

type ValueElement struct {
	Shape string     `json:"shape"`
	Value ValueValue `json:"value"`
}

type ValueValue

type ValueValue struct {
	OriginalValue    string   `json:"originalValue"`
	InterpretedValue string   `json:"interpretedValue"`
	ResolvedValues   []string `json:"resolvedValues"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL