cx

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 CreateFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName, description, localeId, nluClassificationThreshold, nluModelType, nluModelTrainingMode string) (*cxpb.Flow, error)

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 CreateIntent added in v1.8.0

func CreateIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName, description, localeId string, trainingPhrases []string, entityTypesClient *cx.EntityTypesClient) (*cxpb.Intent, error)

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 CreateVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, description, name string) (*cxpb.Version, error)

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 CreateWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, url, name string) (*cxpb.Webhook, error)

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 DeleteEntityType(entityTypesClient *cx.EntityTypesClient, agent *cxpb.Agent, entityTypeName, force string) error

func DeleteEnvironment added in v1.22.0

func DeleteEnvironment(environmentClient *cx.EnvironmentsClient, agent *cxpb.Agent, environmentName string) error

func DeleteFlow added in v1.25.0

func DeleteFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName string) error

func DeleteIntent added in v1.9.0

func DeleteIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) error

func DeleteVersion added in v1.22.0

func DeleteVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, name string) error

func DeleteWebhook added in v1.22.0

func DeleteWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, name, force string) error

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 GetAgentIdByName(agentClient *cx.AgentsClient, agentName string, projectId string, locationId string) (*cxpb.Agent, error)

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 GetFlowIdByName(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName string) (*cxpb.Flow, error)

func GetIntentIdByName added in v1.22.0

func GetIntentIdByName(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName string) (*cxpb.Intent, error)

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 GetVersionIdByName(versionClient *cx.VersionsClient, flow *cxpb.Flow, name string) (*cxpb.Version, error)

func GetWebhookIdByName added in v1.22.0

func GetWebhookIdByName(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, name string) (*cxpb.Webhook, 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 Train added in v1.25.0

func Train(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName, flowId string) error

func TrainAll added in v1.25.0

func TrainAll(flowClient *cx.FlowsClient, agent *cxpb.Agent) 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 UpdateFlow(flowClient *cx.FlowsClient, agent *cxpb.Agent, flowName, description, localeId, nluClassificationThreshold, nluModelType, nluModelTrainingMode string) (*cxpb.Flow, error)

func UpdateIntent added in v1.22.0

func UpdateIntent(intentClient *cx.IntentsClient, agent *cxpb.Agent, intentName, description, localeId string, trainingPhrases []string, entityTypesClient *cx.EntityTypesClient) (*cxpb.Intent, error)

func UpdateVersion added in v1.22.0

func UpdateVersion(versionClient *cx.VersionsClient, flow *cxpb.Flow, description, name string) (*cxpb.Version, error)

func UpdateWebhook added in v1.22.0

func UpdateWebhook(webhookClient *cx.WebhooksClient, agent *cxpb.Agent, url, name string) (*cxpb.Webhook, error)

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.

Jump to

Keyboard shortcuts

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