Documentation ¶
Index ¶
- func CreateAgent(agentClient *cx.AgentsClient, agentName, locationID, projectID string, ...) (*cxpb.Agent, error)
- 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 CreateEntityTypeGRPCClient(locationId string) (*cx.EntityTypesClient, error)
- func CreateEntityTypeRESTClient(locationId string) (*cx.EntityTypesClient, error)
- func CreateEntityTypesEntities(entities []string) ([]*cxpb.EntityType_Entity, error)
- func CreateEnvironment(environmentClient *cx.EnvironmentsClient, versionClient *cx.VersionsClient, ...) (*cxpb.Environment, error)
- func CreateEnvironmentGRPCClient(locationId string) (*cx.EnvironmentsClient, error)
- func CreateEnvironmentRESTClient(locationId string) (*cx.EnvironmentsClient, error)
- func CreateFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, ...) (*cxpb.Flow, error)
- func CreateFlowGRPCClient(locationId string) (*cx.FlowsClient, error)
- func CreateFlowRESTClient(locationId string) (*cx.FlowsClient, error)
- func CreateGenerator(generatorClient *cx.GeneratorsClient, agent *cxpb.Agent, ...) (*cxpb.Generator, error)
- func CreateGeneratorGRPCClient(locationId string) (*cx.GeneratorsClient, error)
- func CreateGeneratorRESTClient(locationId string) (*cx.GeneratorsClient, error)
- func CreateIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, ...) (*cxpb.Intent, error)
- func CreateIntentGRPCClient(locationId string) (*cx.IntentsClient, error)
- func CreateIntentRESTClient(locationId string) (*cx.IntentsClient, error)
- func CreateIntentTrainingPhrases(trainingPhrases []string, entityTypesClient *cx.EntityTypesClient, ...) ([]*cxpb.Intent_TrainingPhrase, []*cxpb.Intent_Parameter, error)
- func CreateSessionGRPCClient(locationId string) (*cx.SessionsClient, error)
- func CreateSessionRESTClient(locationId string) (*cx.SessionsClient, error)
- func CreateVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, description, name string) (*cxpb.Version, error)
- func CreateVersionGRPCClient(locationId string) (*cx.VersionsClient, error)
- func CreateVersionRESTClient(locationId string) (*cx.VersionsClient, error)
- func CreateWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, ...) (*cxpb.Webhook, error)
- func CreateWebhookGRPCClient(locationId string) (*cx.WebhooksClient, error)
- func CreateWebhookRESTClient(locationId string) (*cx.WebhooksClient, error)
- func DeleteAgent(agentClient *cx.AgentsClient, agentName, projectId, locationId string) error
- func DeleteEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, ...) error
- func DeleteEnvironment(environmentClient *cx.EnvironmentsClient, agent *cxpb.Agent, ...) error
- func DeleteFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName string) error
- func DeleteGenerator(generatorClient *cx.GeneratorsClient, agent *cxpb.Agent, name, force string) error
- func DeleteIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) error
- func DeleteVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, name string) error
- func DeleteWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, name, force 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, exportFormat 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 GetFlowIdByName(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName string) (*cxpb.Flow, error)
- func GetGeneratorIdByName(generatorClient *cx.GeneratorsClient, agent *cxpb.Agent, name string) (*cxpb.Generator, error)
- func GetIntentIdByName(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) (*cxpb.Intent, error)
- func GetNluModelTrainingMode(nluModelTrainingMode string) cxpb.NluSettings_ModelTrainingMode
- func GetNluModelType(nluModelType string) cxpb.NluSettings_ModelType
- func GetVersionIdByName(versionClient *cx.VersionsClient, flow *cxpb.Flow, name string) (*cxpb.Version, error)
- func GetWebhookIdByName(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, name string) (*cxpb.Webhook, error)
- func ParseParametersMapping(parametersMapping string) (map[string]string, error)
- func ParsePlaceHolders(prompt string) ([]*cxpb.Generator_Placeholder, error)
- func RestoreAgentById(agentClient *cx.AgentsClient, agentId string, agentContent []byte) error
- func RunContinuousTest(environmentClient *cx.EnvironmentsClient, env *cxpb.Environment) (*cxpb.ContinuousTestResult, error)
- func Train(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName, flowId string) error
- func TrainAll(flowClient *cx.FlowsClient, agent *cxpb.Agent) error
- func UpdateAgent(agentClient *cx.AgentsClient, agentName, locationID, projectID string, ...) (*cxpb.Agent, error)
- func UpdateEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, ...) (*cxpb.EntityType, error)
- func UpdateEnvironment(environmentClient *cx.EnvironmentsClient, versionClient *cx.VersionsClient, ...) (*cxpb.Environment, error)
- func UpdateFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, ...) (*cxpb.Flow, error)
- func UpdateGenerator(generatorClient *cx.GeneratorsClient, agent *cxpb.Agent, ...) (*cxpb.Generator, error)
- func UpdateIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, ...) (*cxpb.Intent, error)
- func UpdateVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, description, name string) (*cxpb.Version, error)
- func UpdateWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, ...) (*cxpb.Webhook, error)
- func UpdateWebhookConfig(environmentClient *cx.EnvironmentsClient, environment *cxpb.Environment, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAgent ¶ added in v1.22.0
func CreateAgent(agentClient *cx.AgentsClient, agentName, locationID, projectID string, createInput *types.CreateUpdateAgent) (*cxpb.Agent, error)
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, redacted string) (*cxpb.EntityType, error)
func CreateEntityTypeGRPCClient ¶ added in v1.22.0
func CreateEntityTypeGRPCClient(locationId string) (*cx.EntityTypesClient, error)
func CreateEntityTypeRESTClient ¶ added in v1.22.0
func CreateEntityTypeRESTClient(locationId string) (*cx.EntityTypesClient, error)
func CreateEntityTypesEntities ¶ added in v1.8.0
func CreateEntityTypesEntities(entities []string) ([]*cxpb.EntityType_Entity, error)
func CreateEnvironment ¶ added in v1.22.0
func CreateEnvironment(environmentClient *cx.EnvironmentsClient, versionClient *cx.VersionsClient, flowClient *cx.FlowsClient, agent *cxpb.Agent, environmentName, description string, flowVersions []string) (*cxpb.Environment, error)
func CreateEnvironmentGRPCClient ¶ added in v1.22.0
func CreateEnvironmentGRPCClient(locationId string) (*cx.EnvironmentsClient, error)
func CreateEnvironmentRESTClient ¶ added in v1.22.0
func CreateEnvironmentRESTClient(locationId string) (*cx.EnvironmentsClient, error)
func CreateFlow ¶ added in v1.25.0
func CreateFlowGRPCClient ¶ added in v1.22.0
func CreateFlowGRPCClient(locationId string) (*cx.FlowsClient, error)
func CreateFlowRESTClient ¶ added in v1.22.0
func CreateFlowRESTClient(locationId string) (*cx.FlowsClient, error)
func CreateGenerator ¶ added in v1.151.0
func CreateGeneratorGRPCClient ¶ added in v1.151.0
func CreateGeneratorGRPCClient(locationId string) (*cx.GeneratorsClient, error)
func CreateGeneratorRESTClient ¶ added in v1.151.0
func CreateGeneratorRESTClient(locationId string) (*cx.GeneratorsClient, error)
func CreateIntent ¶ added in v1.8.0
func CreateIntentGRPCClient ¶ added in v1.22.0
func CreateIntentGRPCClient(locationId string) (*cx.IntentsClient, error)
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 CreateSessionGRPCClient ¶ added in v1.46.0
func CreateSessionGRPCClient(locationId string) (*cx.SessionsClient, error)
func CreateSessionRESTClient ¶ added in v1.22.0
func CreateSessionRESTClient(locationId string) (*cx.SessionsClient, error)
func CreateVersion ¶ added in v1.22.0
func CreateVersionGRPCClient ¶ added in v1.22.0
func CreateVersionGRPCClient(locationId string) (*cx.VersionsClient, error)
func CreateVersionRESTClient ¶ added in v1.22.0
func CreateVersionRESTClient(locationId string) (*cx.VersionsClient, error)
func CreateWebhook ¶ added in v1.22.0
func CreateWebhookGRPCClient ¶ added in v1.22.0
func CreateWebhookGRPCClient(locationId string) (*cx.WebhooksClient, error)
func CreateWebhookRESTClient ¶ added in v1.22.0
func CreateWebhookRESTClient(locationId string) (*cx.WebhooksClient, 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 DeleteEnvironment ¶ added in v1.22.0
func DeleteFlow ¶ added in v1.25.0
func DeleteGenerator ¶ added in v1.151.0
func DeleteIntent ¶ added in v1.9.0
func DeleteVersion ¶ added in v1.22.0
func DeleteWebhook ¶ added in v1.22.0
func DetectIntent ¶
func DetectIntent(sessionClient *cx.SessionsClient, agent *cxpb.Agent, queryinput *cxpb.QueryInput, sessionId string) (*cxpb.DetectIntentResponse, error)
func DetectIntentFromAudio ¶
func DetectIntentFromAudio(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, audioFile string, sessionId string) (*cxpb.DetectIntentResponse, error)
func DetectIntentFromText ¶
func DetectIntentFromText(sessionClient *cx.SessionsClient, agent *cxpb.Agent, localeId string, input string, sessionId string) (*cxpb.DetectIntentResponse, error)
func ExportAgentById ¶ added in v1.9.0
func ExportAgentById(agentClient *cx.AgentsClient, agentId, exportFormat 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 GetFlowIdByName ¶ added in v1.22.0
func GetGeneratorIdByName ¶ added in v1.151.0
func GetIntentIdByName ¶ added in v1.22.0
func GetNluModelTrainingMode ¶ added in v1.25.0
func GetNluModelTrainingMode(nluModelTrainingMode string) cxpb.NluSettings_ModelTrainingMode
func GetNluModelType ¶ added in v1.25.0
func GetNluModelType(nluModelType string) cxpb.NluSettings_ModelType
func GetVersionIdByName ¶ added in v1.22.0
func GetWebhookIdByName ¶ added in v1.22.0
func ParseParametersMapping ¶ added in v1.83.1
func ParsePlaceHolders ¶ added in v1.151.0
func ParsePlaceHolders(prompt string) ([]*cxpb.Generator_Placeholder, error)
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)
func UpdateAgent ¶ added in v1.22.0
func UpdateAgent(agentClient *cx.AgentsClient, agentName, locationID, projectID string, updateInput *types.CreateUpdateAgent) (*cxpb.Agent, error)
func UpdateEntityType ¶ added in v1.22.0
func UpdateEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, entityTypeName, localeId string, entities []string, redacted string) (*cxpb.EntityType, error)
func UpdateEnvironment ¶ added in v1.22.0
func UpdateEnvironment(environmentClient *cx.EnvironmentsClient, versionClient *cx.VersionsClient, flowClient *cx.FlowsClient, agent *cxpb.Agent, environmentName, description string, flowVersions []string) (*cxpb.Environment, error)
func UpdateFlow ¶ added in v1.25.0
func UpdateGenerator ¶ added in v1.151.0
func UpdateIntent ¶ added in v1.22.0
func UpdateVersion ¶ added in v1.22.0
func UpdateWebhook ¶ added in v1.22.0
func UpdateWebhookConfig ¶ added in v1.22.0
func UpdateWebhookConfig(environmentClient *cx.EnvironmentsClient, environment *cxpb.Environment, webhook *cxpb.Webhook) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.