Documentation ¶
Index ¶
- func CreateAgentGRPCClient(locationId string) (*cx.AgentsClient, error)
- func CreateAgentRESTClient(locationId string) (*cx.AgentsClient, error)
- func CreateEnvironmentsClient(locationId string) (*cx.EnvironmentsClient, error)
- func CreateSessionsClient(locationId string) (*cx.SessionsClient, error)
- func DetectIntent(sessionClient *cx.SessionsClient, agent *cxpb.Agent, ...) (*cxpb.DetectIntentResponse, error)
- func DetectIntentFromAudio(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, ...) (*cxpb.DetectIntentResponse, error)
- func DetectIntentFromText(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, ...) (*cxpb.DetectIntentResponse, error)
- func ExportAgentByFullName(agentClient *cx.AgentsClient, agentFullName string, projectId string, ...) (*cxpb.ExportAgentResponse, error)
- func GetAgentIdByName(agentClient *cx.AgentsClient, agentName string, projectId string, ...) (*cxpb.Agent, error)
- func GetEnvironmentIdByName(environmentClient *cx.EnvironmentsClient, agentID string, ...) (*cxpb.Environment, error)
- func RestoreAgentByFullName(agentClient *cx.AgentsClient, agentFullName string, projectId string, ...) error
- func RunContinuousTest(environmentClient *cx.EnvironmentsClient, env *cxpb.Environment) (*cxpb.ContinuousTestResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAgentGRPCClient ¶
func CreateAgentGRPCClient(locationId string) (*cx.AgentsClient, error)
func CreateAgentRESTClient ¶
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 ¶
func DetectIntentFromAudio(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, audioFile string) (*cxpb.DetectIntentResponse, error)
func DetectIntentFromText ¶
func DetectIntentFromText(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, input string) (*cxpb.DetectIntentResponse, error)
func ExportAgentByFullName ¶
func ExportAgentByFullName(agentClient *cx.AgentsClient, agentFullName string, projectId string, locationId string) (*cxpb.ExportAgentResponse, error)
func GetAgentIdByName ¶
func GetEnvironmentIdByName ¶
func GetEnvironmentIdByName(environmentClient *cx.EnvironmentsClient, agentID string, environmentName string) (*cxpb.Environment, error)
func RestoreAgentByFullName ¶
func RunContinuousTest ¶
func RunContinuousTest(environmentClient *cx.EnvironmentsClient, env *cxpb.Environment) (*cxpb.ContinuousTestResult, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.