Documentation
¶
Index ¶
- type Action
- type Audio
- type Button
- type ButtonRequest
- type ButtonRequestPayload
- type Card
- type CardV2
- type CardV2Payload
- type Carousel
- type CarouselPayload
- type Child
- type Choice
- type ChoicePayload
- type Config
- type Description
- type Dimensions
- type End
- type Entity
- type EventData
- type EventPayload
- type IntentData
- type IntentPayload
- type InteractionResponse
- type InteratctionRequest
- type NoReply
- type NoReplyPayload
- type Slate
- type Speak
- type State
- type Visual
- type VisualPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Type string `json:"type"`
Payload interface{} `json:"payload,omitempty"`
}
type Button ¶
type Button struct {
Name string `json:"name"`
Request ButtonRequest `json:"request"`
}
type ButtonRequest ¶
type ButtonRequest struct {
Type string `json:"type"`
Payload ButtonRequestPayload `json:"payload"`
}
type ButtonRequestPayload ¶
type ButtonRequestPayload struct {
Actions []interface{} `json:"actions"` // Adjust the type if `actions` has a specific structure
Label string `json:"label"`
}
type Card ¶
type Card struct {
ID string `json:"id"`
Title string `json:"title"`
Description Description `json:"description"`
ImageUrl string `json:"imageUrl"`
Buttons []Button `json:"buttons"`
}
type CardV2 ¶
type CardV2 struct {
Type string `json:"type"`
Time int64 `json:"time"`
Payload CardV2Payload `json:"payload"`
}
type CardV2Payload ¶
type CardV2Payload struct {
ImageUrl string `json:"imageUrl"`
Description Description `json:"description"`
Buttons []Button `json:"buttons"`
Title string `json:"title"`
}
type Carousel ¶
type Carousel struct {
Type string `json:"type"`
Time int64 `json:"time"`
Payload CarouselPayload `json:"payload"`
}
type CarouselPayload ¶
type Choice ¶ added in v1.27.0
type Choice struct {
Type string `json:"type"`
Time int64 `json:"time"`
Payload ChoicePayload `json:"payload"`
}
type ChoicePayload ¶ added in v1.27.0
type ChoicePayload struct {
Buttons []Button `json:"buttons"`
}
Specific payload types
type Description ¶
type Dimensions ¶
type EventPayload ¶ added in v1.27.0
type EventPayload struct {
Event EventData `json:"event"`
}
type IntentData ¶ added in v1.27.0
type IntentData struct {
Name string `json:"name"`
}
type IntentPayload ¶ added in v1.27.0
type IntentPayload struct {
Intent IntentData `json:"intent"`
Entities []Entity `json:"entities,omitempty"`
}
type InteractionResponse ¶
type InteratctionRequest ¶
type NoReply ¶
type NoReply struct {
Type string `json:"type"`
Time int64 `json:"time"`
Payload NoReplyPayload `json:"payload"`
}
type NoReplyPayload ¶
type NoReplyPayload struct {
Timeout int `json:"timeout"` // Timeout in seconds
}
type Visual ¶
type Visual struct {
Type string `json:"type"`
Payload VisualPayload `json:"payload"`
}
type VisualPayload ¶
type VisualPayload struct {
VisualType string `json:"visualType"`
Image string `json:"image"`
Dimensions Dimensions `json:"dimensions"`
CanvasVisibility string `json:"canvasVisibility"`
}
Click to show internal directories.
Click to hide internal directories.