cx

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgentGRPCClient added in v1.4.0

func CreateAgentGRPCClient(locationId string) (*cx.AgentsClient, error)

func CreateAgentRESTClient added in v1.4.0

func CreateAgentRESTClient(locationId string) (*cx.AgentsClient, error)

func CreateEnvironmentsClient

func CreateEnvironmentsClient(locationId string) (*cx.EnvironmentsClient, error)

func CreateSessionsClient

func CreateSessionsClient(locationId string) (*cx.SessionsClient, error)

func DetectIntent

func DetectIntent(sessionClient *cx.SessionsClient, agent *cxpb.Agent, queryinput cxpb.QueryInput) (*cxpb.DetectIntentResponse, error)

func DetectIntentFromAudio added in v1.2.0

func DetectIntentFromAudio(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, audioFile string) (*cxpb.DetectIntentResponse, error)

func DetectIntentFromText added in v1.2.0

func DetectIntentFromText(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, input string) (*cxpb.DetectIntentResponse, error)

func ExportAgentByFullName added in v1.4.0

func ExportAgentByFullName(agentClient *cx.AgentsClient, agentFullName string, projectId string, locationId string) (*cxpb.ExportAgentResponse, error)

func GetAgentIdByName

func GetAgentIdByName(agentClient *cx.AgentsClient, agentName string, projectId string, locationId string) (*cxpb.Agent, error)

func GetEnvironmentIdByName added in v1.2.0

func GetEnvironmentIdByName(environmentClient *cx.EnvironmentsClient, agentID string, environmentName string) (*cxpb.Environment, error)

func RestoreAgentByFullName added in v1.4.0

func RestoreAgentByFullName(agentClient *cx.AgentsClient, agentFullName string, projectId string, locationId string, agentContent []byte) error

func RunContinuousTest added in v1.2.0

func RunContinuousTest(environmentClient *cx.EnvironmentsClient, env *cxpb.Environment) (*cxpb.ContinuousTestResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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