evaluations

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmationStatusType

type ConfirmationStatusType string

ConfirmationStatusType An enumeration indicating whether the user has explicitly confirmed or denied the entire intent. Possible values: "NONE", "CONFIRMED", "DENIED".

func ConfirmationStatusType_CONFIRMED

func ConfirmationStatusType_CONFIRMED() ConfirmationStatusType

func ConfirmationStatusType_DENIED

func ConfirmationStatusType_DENIED() ConfirmationStatusType

func ConfirmationStatusType_NONE

func ConfirmationStatusType_NONE() ConfirmationStatusType

type DialogAct

type DialogAct struct {
	Type_ *DialogActType `json:"type,omitempty"`
	// The name of the target slot that needs to be filled or confirmed for a dialogAct
	TargetSlot string `json:"targetSlot,omitempty"`
}

DialogAct A representation of question prompts to the user for multi-turn, which requires user to fill a slot value, or confirm a slot value, or confirm an intent.

type DialogActType

type DialogActType string

func DialogActType_DialogConfirmIntent

func DialogActType_DialogConfirmIntent() DialogActType

func DialogActType_DialogConfirmSlot

func DialogActType_DialogConfirmSlot() DialogActType

func DialogActType_DialogElicitSlot

func DialogActType_DialogElicitSlot() DialogActType

type Intent

type Intent struct {
	Name               string                  `json:"name,omitempty"`
	ConfirmationStatus *ConfirmationStatusType `json:"confirmationStatus,omitempty"`
	/*
	   A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty.
	*/
	Slots map[string]Slot `json:"slots,omitempty"`
}

type MultiTurn

type MultiTurn struct {
	DialogAct *DialogAct `json:"dialogAct,omitempty"`
	// Opaque string which contains multi-turn related context.
	Token string `json:"token,omitempty"`
	// A sample prompt defined in the dialog model for each DialogAct.
	Prompt string `json:"prompt,omitempty"`
}

MultiTurn Included when the selected intent has dialog defined and the dialog is not completed. To continue the dialog, provide the value of the token in the multiTurnToken field in the next request.

type ProfileNluRequest

type ProfileNluRequest struct {
	// Actual representation of user input to Alexa.
	Utterance string `json:"utterance,omitempty"`
	// Opaque string which contains multi-turn related context.
	MultiTurnToken string `json:"multiTurnToken,omitempty"`
}

type ProfileNluResponse

type ProfileNluResponse struct {
	/*
	   Represents when an utterance results in the skill exiting. It would be true when NLU selects 1P ExitAppIntent or GoHomeIntent, and false otherwise.
	*/
	SessionEnded   bool                      `json:"sessionEnded,omitempty"`
	SelectedIntent *ProfileNluSelectedIntent `json:"selectedIntent,omitempty"`
	// All intents that Alexa considered for the utterance in the request, but did not select.
	ConsideredIntents []*Intent  `json:"consideredIntents,omitempty"`
	MultiTurn         *MultiTurn `json:"multiTurn,omitempty"`
}

type ProfileNluSelectedIntent

type ProfileNluSelectedIntent struct {
	Intent
}

ProfileNluSelectedIntent The intent that Alexa selected for the utterance in the request.

type ResolutionsPerAuthorityItems

type ResolutionsPerAuthorityItems struct {
	/*
	   The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name.
	*/
	Authority string                         `json:"authority,omitempty"`
	Status    *ResolutionsPerAuthorityStatus `json:"status,omitempty"`
	// An array of resolved values for the slot.
	Values []*ResolutionsPerAuthorityValueItems `json:"values,omitempty"`
}

type ResolutionsPerAuthorityStatus

type ResolutionsPerAuthorityStatus struct {
	Code *ResolutionsPerAuthorityStatusCode `json:"code,omitempty"`
}

ResolutionsPerAuthorityStatus An object representing the status of entity resolution for the slot.

type ResolutionsPerAuthorityStatusCode

type ResolutionsPerAuthorityStatusCode string

ResolutionsPerAuthorityStatusCode A code indicating the results of attempting to resolve the user utterance against the defined slot types. This can be one of the following: ER_SUCCESS_MATCH: The spoken value matched a value or synonym explicitly defined in your custom slot type. ER_SUCCESS_NO_MATCH: The spoken value did not match any values or synonyms explicitly defined in your custom slot type. ER_ERROR_TIMEOUT: An error occurred due to a timeout. ER_ERROR_EXCEPTION: An error occurred due to an exception during processing.

func ResolutionsPerAuthorityStatusCode_ER_ERROR_EXCEPTION

func ResolutionsPerAuthorityStatusCode_ER_ERROR_EXCEPTION() ResolutionsPerAuthorityStatusCode

func ResolutionsPerAuthorityStatusCode_ER_ERROR_TIMEOUT

func ResolutionsPerAuthorityStatusCode_ER_ERROR_TIMEOUT() ResolutionsPerAuthorityStatusCode

func ResolutionsPerAuthorityStatusCode_ER_SUCCESS_MATCH

func ResolutionsPerAuthorityStatusCode_ER_SUCCESS_MATCH() ResolutionsPerAuthorityStatusCode

func ResolutionsPerAuthorityStatusCode_ER_SUCCESS_NO_MATCH

func ResolutionsPerAuthorityStatusCode_ER_SUCCESS_NO_MATCH() ResolutionsPerAuthorityStatusCode

type ResolutionsPerAuthorityValueItems

type ResolutionsPerAuthorityValueItems struct {
	// The string for the resolved slot value.
	Name string `json:"name,omitempty"`
	/*
	   The unique ID defined for the resolved slot value. This is based on the IDs defined in the slot type definition.
	*/
	Id string `json:"id,omitempty"`
}

ResolutionsPerAuthorityValueItems An object representing the resolved value for the slot, based on the user's utterance and the slot type definition.

type Slot

type Slot struct {
	Name               string                  `json:"name,omitempty"`
	Value              string                  `json:"value,omitempty"`
	ConfirmationStatus *ConfirmationStatusType `json:"confirmationStatus,omitempty"`
	Resolutions        *SlotResolutions        `json:"resolutions,omitempty"`
}

type SlotResolutions

type SlotResolutions struct {
	/*
	   An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined.
	*/
	ResolutionsPerAuthority []*ResolutionsPerAuthorityItems `json:"resolutionsPerAuthority,omitempty"`
}

SlotResolutions A resolutions object representing the results of resolving the words captured from the user's utterance.

Jump to

Keyboard shortcuts

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