simulations

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.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 AlexaExecutionInfo

type AlexaExecutionInfo struct {
	AlexaResponses []*AlexaResponse `json:"alexaResponses,omitempty"`
}

type AlexaResponse

type AlexaResponse struct {
	// The type of Alexa response
	Type_ string `json:"type,omitempty"`
	/*
	   The detail information needs to exposed in this type of Alexa response.
	*/
	Content *AlexaResponseContent `json:"content,omitempty"`
}

type AlexaResponseContent

type AlexaResponseContent struct {
	// The plain text get from Alexa speech response
	Caption string `json:"caption,omitempty"`
}

type Device

type Device struct {
	/*
	   A valid locale (e.g "en-US") for the virtual device used in simulation.
	*/
	Locale string `json:"locale,omitempty"`
}

Device Model of a virtual device used for simulation. This device object emulates attributes associated with a real Alexa enabled device.

type Input

type Input struct {
	/*
	   A string corresponding to the utterance text of what a customer would say to Alexa.
	*/
	Content string `json:"content,omitempty"`
}

type Invocation

type Invocation struct {
	InvocationRequest  *InvocationRequest  `json:"invocationRequest,omitempty"`
	InvocationResponse *InvocationResponse `json:"invocationResponse,omitempty"`
	Metrics            *Metrics            `json:"metrics,omitempty"`
}

type InvocationRequest

type InvocationRequest struct {
	// Skill's Lambda or HTTPS endpoint.
	Endpoint string `json:"endpoint,omitempty"`
	/*
	   JSON payload that was sent to the skill's Lambda or HTTPS endpoint.
	*/
	Body map[string]any `json:"body,omitempty"`
}

type InvocationResponse

type InvocationResponse struct {
	/*
	   Payload that was returned by the skill's Lambda or HTTPS endpoint.
	*/
	Body map[string]any `json:"body,omitempty"`
}

type Metrics

type Metrics struct {
	/*
	   How long, in milliseconds, it took the skill's Lambda or HTTPS endpoint to process the request.
	*/
	SkillExecutionTimeInMilliseconds int `json:"skillExecutionTimeInMilliseconds,omitempty"`
}

type Session

type Session struct {
	Mode *SessionMode `json:"mode,omitempty"`
}

Session Session settings for running current simulation.

type SessionMode

type SessionMode string

SessionMode Indicate the session mode of the current simulation is using.

func SessionMode_DEFAULT

func SessionMode_DEFAULT() SessionMode

func SessionMode_FORCE_NEW_SESSION

func SessionMode_FORCE_NEW_SESSION() SessionMode

type SimulationResult

type SimulationResult struct {
	AlexaExecutionInfo *AlexaExecutionInfo `json:"alexaExecutionInfo,omitempty"`
	SkillExecutionInfo *Invocation         `json:"skillExecutionInfo,omitempty"`
	Error              *smapiv1.Error      `json:"error,omitempty"`
}

type SimulationsApiRequest

type SimulationsApiRequest struct {
	Input   *Input   `json:"input,omitempty"`
	Device  *Device  `json:"device,omitempty"`
	Session *Session `json:"session,omitempty"`
}

type SimulationsApiResponse

type SimulationsApiResponse struct {
	// Id of the simulation resource.
	Id     string                        `json:"id,omitempty"`
	Status *SimulationsApiResponseStatus `json:"status,omitempty"`
	Result *SimulationResult             `json:"result,omitempty"`
}

type SimulationsApiResponseStatus

type SimulationsApiResponseStatus string

SimulationsApiResponseStatus String that specifies the current status of the simulation. Possible values are "IN_PROGRESS", "SUCCESSFUL", and "FAILED".

func SimulationsApiResponseStatus_FAILED

func SimulationsApiResponseStatus_FAILED() SimulationsApiResponseStatus

func SimulationsApiResponseStatus_IN_PROGRESS

func SimulationsApiResponseStatus_IN_PROGRESS() SimulationsApiResponseStatus

func SimulationsApiResponseStatus_SUCCESSFUL

func SimulationsApiResponseStatus_SUCCESSFUL() SimulationsApiResponseStatus

Jump to

Keyboard shortcuts

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