Documentation ¶
Index ¶
- func CreateAgentGRPCClient(locationId string) (*cx.AgentsClient, error)
- func CreateAgentRESTClient(locationId string) (*cx.AgentsClient, error)
- func CreateEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, ...) (*cxpb.EntityType, error)
- func CreateEntityTypesEntities(entities []string) ([]*cxpb.EntityType_Entity, error)
- func CreateEntityTypesRESTClient(locationId string) (*cx.EntityTypesClient, error)
- func CreateEnvironmentsClient(locationId string) (*cx.EnvironmentsClient, error)
- func CreateIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName, localeId string, ...) (*cxpb.Intent, error)
- func CreateIntentRESTClient(locationId string) (*cx.IntentsClient, error)
- func CreateIntentTrainingPhrases(trainingPhrases []string, entityTypesClient *cx.EntityTypesClient, ...) ([]*cxpb.Intent_TrainingPhrase, []*cxpb.Intent_Parameter, error)
- func CreateSessionsClient(locationId string) (*cx.SessionsClient, error)
- func DeleteAgent(agentClient *cx.AgentsClient, agentName, projectId, locationId string) error
- func DeleteEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, ...) error
- func DeleteIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) 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 ExportAgentById(agentClient *cx.AgentsClient, agentId string) (*cxpb.ExportAgentResponse, error)
- func GetAgentIdByName(agentClient *cx.AgentsClient, agentName string, projectId string, ...) (*cxpb.Agent, error)
- func GetEntityTypeIdByName(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, ...) (*cxpb.EntityType, error)
- func GetEnvironmentIdByName(environmentClient *cx.EnvironmentsClient, agentID string, ...) (*cxpb.Environment, error)
- func GetIntentTypeIdByName(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) (*cxpb.Intent, error)
- func RestoreAgentById(agentClient *cx.AgentsClient, agentId string, agentContent []byte) 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 CreateEntityType ¶ added in v1.8.0
func CreateEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, entityTypeName, localeId string, entities []string) (*cxpb.EntityType, error)
func CreateEntityTypesEntities ¶ added in v1.8.0
func CreateEntityTypesEntities(entities []string) ([]*cxpb.EntityType_Entity, error)
func CreateEntityTypesRESTClient ¶ added in v1.8.0
func CreateEntityTypesRESTClient(locationId string) (*cx.EntityTypesClient, error)
func CreateEnvironmentsClient ¶
func CreateEnvironmentsClient(locationId string) (*cx.EnvironmentsClient, error)
func CreateIntent ¶ added in v1.8.0
func CreateIntentRESTClient ¶ added in v1.8.0
func CreateIntentRESTClient(locationId string) (*cx.IntentsClient, error)
func CreateIntentTrainingPhrases ¶ added in v1.8.0
func CreateIntentTrainingPhrases(trainingPhrases []string, entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent) ([]*cxpb.Intent_TrainingPhrase, []*cxpb.Intent_Parameter, error)
func CreateSessionsClient ¶
func CreateSessionsClient(locationId string) (*cx.SessionsClient, error)
func DeleteAgent ¶ added in v1.9.0
func DeleteAgent(agentClient *cx.AgentsClient, agentName, projectId, locationId string) error
func DeleteEntityType ¶ added in v1.9.0
func DeleteIntent ¶ added in v1.9.0
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 ExportAgentById ¶ added in v1.9.0
func ExportAgentById(agentClient *cx.AgentsClient, agentId string) (*cxpb.ExportAgentResponse, error)
func GetAgentIdByName ¶
func GetEntityTypeIdByName ¶ added in v1.8.0
func GetEntityTypeIdByName(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, entityTypeName string) (*cxpb.EntityType, error)
func GetEnvironmentIdByName ¶
func GetEnvironmentIdByName(environmentClient *cx.EnvironmentsClient, agentID string, environmentName string) (*cxpb.Environment, error)
func GetIntentTypeIdByName ¶ added in v1.9.0
func RestoreAgentById ¶ added in v1.9.0
func RestoreAgentById(agentClient *cx.AgentsClient, agentId string, agentContent []byte) error
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.