Documentation
¶
Overview ¶
Package assistantv1 : Operations and models for the AssistantV1 service
Index ¶
- Constants
- type AssistantV1
- func (assistant *AssistantV1) CreateCounterexample(createCounterexampleOptions *CreateCounterexampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateDialogNode(createDialogNodeOptions *CreateDialogNodeOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateEntity(createEntityOptions *CreateEntityOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateExample(createExampleOptions *CreateExampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateIntent(createIntentOptions *CreateIntentOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateSynonym(createSynonymOptions *CreateSynonymOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateValue(createValueOptions *CreateValueOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) CreateWorkspace(createWorkspaceOptions *CreateWorkspaceOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteCounterexample(deleteCounterexampleOptions *DeleteCounterexampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteDialogNode(deleteDialogNodeOptions *DeleteDialogNodeOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteEntity(deleteEntityOptions *DeleteEntityOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteExample(deleteExampleOptions *DeleteExampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteIntent(deleteIntentOptions *DeleteIntentOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteSynonym(deleteSynonymOptions *DeleteSynonymOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteValue(deleteValueOptions *DeleteValueOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) DeleteWorkspace(deleteWorkspaceOptions *DeleteWorkspaceOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetCounterexample(getCounterexampleOptions *GetCounterexampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetCreateCounterexampleResult(response *core.DetailedResponse) *Counterexample
- func (assistant *AssistantV1) GetCreateDialogNodeResult(response *core.DetailedResponse) *DialogNode
- func (assistant *AssistantV1) GetCreateEntityResult(response *core.DetailedResponse) *Entity
- func (assistant *AssistantV1) GetCreateExampleResult(response *core.DetailedResponse) *Example
- func (assistant *AssistantV1) GetCreateIntentResult(response *core.DetailedResponse) *Intent
- func (assistant *AssistantV1) GetCreateSynonymResult(response *core.DetailedResponse) *Synonym
- func (assistant *AssistantV1) GetCreateValueResult(response *core.DetailedResponse) *Value
- func (assistant *AssistantV1) GetCreateWorkspaceResult(response *core.DetailedResponse) *Workspace
- func (assistant *AssistantV1) GetDialogNode(getDialogNodeOptions *GetDialogNodeOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetEntity(getEntityOptions *GetEntityOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetExample(getExampleOptions *GetExampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetGetCounterexampleResult(response *core.DetailedResponse) *Counterexample
- func (assistant *AssistantV1) GetGetDialogNodeResult(response *core.DetailedResponse) *DialogNode
- func (assistant *AssistantV1) GetGetEntityResult(response *core.DetailedResponse) *EntityExport
- func (assistant *AssistantV1) GetGetExampleResult(response *core.DetailedResponse) *Example
- func (assistant *AssistantV1) GetGetIntentResult(response *core.DetailedResponse) *IntentExport
- func (assistant *AssistantV1) GetGetSynonymResult(response *core.DetailedResponse) *Synonym
- func (assistant *AssistantV1) GetGetValueResult(response *core.DetailedResponse) *ValueExport
- func (assistant *AssistantV1) GetGetWorkspaceResult(response *core.DetailedResponse) *WorkspaceExport
- func (assistant *AssistantV1) GetIntent(getIntentOptions *GetIntentOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetListAllLogsResult(response *core.DetailedResponse) *LogCollection
- func (assistant *AssistantV1) GetListCounterexamplesResult(response *core.DetailedResponse) *CounterexampleCollection
- func (assistant *AssistantV1) GetListDialogNodesResult(response *core.DetailedResponse) *DialogNodeCollection
- func (assistant *AssistantV1) GetListEntitiesResult(response *core.DetailedResponse) *EntityCollection
- func (assistant *AssistantV1) GetListExamplesResult(response *core.DetailedResponse) *ExampleCollection
- func (assistant *AssistantV1) GetListIntentsResult(response *core.DetailedResponse) *IntentCollection
- func (assistant *AssistantV1) GetListLogsResult(response *core.DetailedResponse) *LogCollection
- func (assistant *AssistantV1) GetListMentionsResult(response *core.DetailedResponse) *EntityMentionCollection
- func (assistant *AssistantV1) GetListSynonymsResult(response *core.DetailedResponse) *SynonymCollection
- func (assistant *AssistantV1) GetListValuesResult(response *core.DetailedResponse) *ValueCollection
- func (assistant *AssistantV1) GetListWorkspacesResult(response *core.DetailedResponse) *WorkspaceCollection
- func (assistant *AssistantV1) GetMessageResult(response *core.DetailedResponse) *MessageResponse
- func (assistant *AssistantV1) GetSynonym(getSynonymOptions *GetSynonymOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetUpdateCounterexampleResult(response *core.DetailedResponse) *Counterexample
- func (assistant *AssistantV1) GetUpdateDialogNodeResult(response *core.DetailedResponse) *DialogNode
- func (assistant *AssistantV1) GetUpdateEntityResult(response *core.DetailedResponse) *Entity
- func (assistant *AssistantV1) GetUpdateExampleResult(response *core.DetailedResponse) *Example
- func (assistant *AssistantV1) GetUpdateIntentResult(response *core.DetailedResponse) *Intent
- func (assistant *AssistantV1) GetUpdateSynonymResult(response *core.DetailedResponse) *Synonym
- func (assistant *AssistantV1) GetUpdateValueResult(response *core.DetailedResponse) *Value
- func (assistant *AssistantV1) GetUpdateWorkspaceResult(response *core.DetailedResponse) *Workspace
- func (assistant *AssistantV1) GetValue(getValueOptions *GetValueOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) GetWorkspace(getWorkspaceOptions *GetWorkspaceOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListAllLogs(listAllLogsOptions *ListAllLogsOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListCounterexamples(listCounterexamplesOptions *ListCounterexamplesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListDialogNodes(listDialogNodesOptions *ListDialogNodesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListEntities(listEntitiesOptions *ListEntitiesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListExamples(listExamplesOptions *ListExamplesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListIntents(listIntentsOptions *ListIntentsOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListLogs(listLogsOptions *ListLogsOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListMentions(listMentionsOptions *ListMentionsOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListSynonyms(listSynonymsOptions *ListSynonymsOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListValues(listValuesOptions *ListValuesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) ListWorkspaces(listWorkspacesOptions *ListWorkspacesOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) Message(messageOptions *MessageOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) NewCreateCounterexampleOptions(workspaceID string, text string) *CreateCounterexampleOptions
- func (assistant *AssistantV1) NewCreateDialogNodeOptions(workspaceID string, dialogNode string) *CreateDialogNodeOptions
- func (assistant *AssistantV1) NewCreateEntityOptions(workspaceID string, entity string) *CreateEntityOptions
- func (assistant *AssistantV1) NewCreateExampleOptions(workspaceID string, intent string, text string) *CreateExampleOptions
- func (assistant *AssistantV1) NewCreateIntentOptions(workspaceID string, intent string) *CreateIntentOptions
- func (assistant *AssistantV1) NewCreateSynonymOptions(workspaceID string, entity string, value string, synonym string) *CreateSynonymOptions
- func (assistant *AssistantV1) NewCreateValueOptions(workspaceID string, entity string, value string) *CreateValueOptions
- func (assistant *AssistantV1) NewCreateWorkspaceOptions() *CreateWorkspaceOptions
- func (assistant *AssistantV1) NewDeleteCounterexampleOptions(workspaceID string, text string) *DeleteCounterexampleOptions
- func (assistant *AssistantV1) NewDeleteDialogNodeOptions(workspaceID string, dialogNode string) *DeleteDialogNodeOptions
- func (assistant *AssistantV1) NewDeleteEntityOptions(workspaceID string, entity string) *DeleteEntityOptions
- func (assistant *AssistantV1) NewDeleteExampleOptions(workspaceID string, intent string, text string) *DeleteExampleOptions
- func (assistant *AssistantV1) NewDeleteIntentOptions(workspaceID string, intent string) *DeleteIntentOptions
- func (assistant *AssistantV1) NewDeleteSynonymOptions(workspaceID string, entity string, value string, synonym string) *DeleteSynonymOptions
- func (assistant *AssistantV1) NewDeleteUserDataOptions(customerID string) *DeleteUserDataOptions
- func (assistant *AssistantV1) NewDeleteValueOptions(workspaceID string, entity string, value string) *DeleteValueOptions
- func (assistant *AssistantV1) NewDeleteWorkspaceOptions(workspaceID string) *DeleteWorkspaceOptions
- func (assistant *AssistantV1) NewGetCounterexampleOptions(workspaceID string, text string) *GetCounterexampleOptions
- func (assistant *AssistantV1) NewGetDialogNodeOptions(workspaceID string, dialogNode string) *GetDialogNodeOptions
- func (assistant *AssistantV1) NewGetEntityOptions(workspaceID string, entity string) *GetEntityOptions
- func (assistant *AssistantV1) NewGetExampleOptions(workspaceID string, intent string, text string) *GetExampleOptions
- func (assistant *AssistantV1) NewGetIntentOptions(workspaceID string, intent string) *GetIntentOptions
- func (assistant *AssistantV1) NewGetSynonymOptions(workspaceID string, entity string, value string, synonym string) *GetSynonymOptions
- func (assistant *AssistantV1) NewGetValueOptions(workspaceID string, entity string, value string) *GetValueOptions
- func (assistant *AssistantV1) NewGetWorkspaceOptions(workspaceID string) *GetWorkspaceOptions
- func (assistant *AssistantV1) NewListAllLogsOptions(filter string) *ListAllLogsOptions
- func (assistant *AssistantV1) NewListCounterexamplesOptions(workspaceID string) *ListCounterexamplesOptions
- func (assistant *AssistantV1) NewListDialogNodesOptions(workspaceID string) *ListDialogNodesOptions
- func (assistant *AssistantV1) NewListEntitiesOptions(workspaceID string) *ListEntitiesOptions
- func (assistant *AssistantV1) NewListExamplesOptions(workspaceID string, intent string) *ListExamplesOptions
- func (assistant *AssistantV1) NewListIntentsOptions(workspaceID string) *ListIntentsOptions
- func (assistant *AssistantV1) NewListLogsOptions(workspaceID string) *ListLogsOptions
- func (assistant *AssistantV1) NewListMentionsOptions(workspaceID string, entity string) *ListMentionsOptions
- func (assistant *AssistantV1) NewListSynonymsOptions(workspaceID string, entity string, value string) *ListSynonymsOptions
- func (assistant *AssistantV1) NewListValuesOptions(workspaceID string, entity string) *ListValuesOptions
- func (assistant *AssistantV1) NewListWorkspacesOptions() *ListWorkspacesOptions
- func (assistant *AssistantV1) NewMessageOptions(workspaceID string) *MessageOptions
- func (assistant *AssistantV1) NewUpdateCounterexampleOptions(workspaceID string, text string) *UpdateCounterexampleOptions
- func (assistant *AssistantV1) NewUpdateDialogNodeOptions(workspaceID string, dialogNode string) *UpdateDialogNodeOptions
- func (assistant *AssistantV1) NewUpdateEntityOptions(workspaceID string, entity string) *UpdateEntityOptions
- func (assistant *AssistantV1) NewUpdateExampleOptions(workspaceID string, intent string, text string) *UpdateExampleOptions
- func (assistant *AssistantV1) NewUpdateIntentOptions(workspaceID string, intent string) *UpdateIntentOptions
- func (assistant *AssistantV1) NewUpdateSynonymOptions(workspaceID string, entity string, value string, synonym string) *UpdateSynonymOptions
- func (assistant *AssistantV1) NewUpdateValueOptions(workspaceID string, entity string, value string) *UpdateValueOptions
- func (assistant *AssistantV1) NewUpdateWorkspaceOptions(workspaceID string) *UpdateWorkspaceOptions
- func (assistant *AssistantV1) UpdateCounterexample(updateCounterexampleOptions *UpdateCounterexampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateDialogNode(updateDialogNodeOptions *UpdateDialogNodeOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateEntity(updateEntityOptions *UpdateEntityOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateExample(updateExampleOptions *UpdateExampleOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateIntent(updateIntentOptions *UpdateIntentOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateSynonym(updateSynonymOptions *UpdateSynonymOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateValue(updateValueOptions *UpdateValueOptions) (*core.DetailedResponse, error)
- func (assistant *AssistantV1) UpdateWorkspace(updateWorkspaceOptions *UpdateWorkspaceOptions) (*core.DetailedResponse, error)
- type AssistantV1Options
- type CaptureGroup
- type Context
- type Counterexample
- type CounterexampleCollection
- type CreateCounterexample
- type CreateCounterexampleOptions
- func (options *CreateCounterexampleOptions) SetHeaders(param map[string]string) *CreateCounterexampleOptions
- func (options *CreateCounterexampleOptions) SetText(text string) *CreateCounterexampleOptions
- func (options *CreateCounterexampleOptions) SetWorkspaceID(workspaceID string) *CreateCounterexampleOptions
- type CreateDialogNode
- type CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetActions(actions []DialogNodeAction) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetConditions(conditions string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetContext(context interface{}) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetDescription(description string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetDialogNode(dialogNode string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetDigressIn(digressIn string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetDigressOut(digressOut string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetDigressOutSlots(digressOutSlots string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetEventName(eventName string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetHeaders(param map[string]string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetMetadata(metadata interface{}) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetNextStep(nextStep *DialogNodeNextStep) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetNodeType(nodeType string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetOutput(output *DialogNodeOutput) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetParent(parent string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetPreviousSibling(previousSibling string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetTitle(title string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetUserLabel(userLabel string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetVariable(variable string) *CreateDialogNodeOptions
- func (options *CreateDialogNodeOptions) SetWorkspaceID(workspaceID string) *CreateDialogNodeOptions
- type CreateEntity
- type CreateEntityOptions
- func (options *CreateEntityOptions) SetDescription(description string) *CreateEntityOptions
- func (options *CreateEntityOptions) SetEntity(entity string) *CreateEntityOptions
- func (options *CreateEntityOptions) SetFuzzyMatch(fuzzyMatch bool) *CreateEntityOptions
- func (options *CreateEntityOptions) SetHeaders(param map[string]string) *CreateEntityOptions
- func (options *CreateEntityOptions) SetMetadata(metadata interface{}) *CreateEntityOptions
- func (options *CreateEntityOptions) SetValues(values []CreateValue) *CreateEntityOptions
- func (options *CreateEntityOptions) SetWorkspaceID(workspaceID string) *CreateEntityOptions
- type CreateExample
- type CreateExampleOptions
- func (options *CreateExampleOptions) SetHeaders(param map[string]string) *CreateExampleOptions
- func (options *CreateExampleOptions) SetIntent(intent string) *CreateExampleOptions
- func (options *CreateExampleOptions) SetMentions(mentions []Mentions) *CreateExampleOptions
- func (options *CreateExampleOptions) SetText(text string) *CreateExampleOptions
- func (options *CreateExampleOptions) SetWorkspaceID(workspaceID string) *CreateExampleOptions
- type CreateIntent
- type CreateIntentOptions
- func (options *CreateIntentOptions) SetDescription(description string) *CreateIntentOptions
- func (options *CreateIntentOptions) SetExamples(examples []CreateExample) *CreateIntentOptions
- func (options *CreateIntentOptions) SetHeaders(param map[string]string) *CreateIntentOptions
- func (options *CreateIntentOptions) SetIntent(intent string) *CreateIntentOptions
- func (options *CreateIntentOptions) SetWorkspaceID(workspaceID string) *CreateIntentOptions
- type CreateSynonymOptions
- func (options *CreateSynonymOptions) SetEntity(entity string) *CreateSynonymOptions
- func (options *CreateSynonymOptions) SetHeaders(param map[string]string) *CreateSynonymOptions
- func (options *CreateSynonymOptions) SetSynonym(synonym string) *CreateSynonymOptions
- func (options *CreateSynonymOptions) SetValue(value string) *CreateSynonymOptions
- func (options *CreateSynonymOptions) SetWorkspaceID(workspaceID string) *CreateSynonymOptions
- type CreateValue
- type CreateValueOptions
- func (options *CreateValueOptions) SetEntity(entity string) *CreateValueOptions
- func (options *CreateValueOptions) SetHeaders(param map[string]string) *CreateValueOptions
- func (options *CreateValueOptions) SetMetadata(metadata interface{}) *CreateValueOptions
- func (options *CreateValueOptions) SetPatterns(patterns []string) *CreateValueOptions
- func (options *CreateValueOptions) SetSynonyms(synonyms []string) *CreateValueOptions
- func (options *CreateValueOptions) SetValue(value string) *CreateValueOptions
- func (options *CreateValueOptions) SetValueType(valueType string) *CreateValueOptions
- func (options *CreateValueOptions) SetWorkspaceID(workspaceID string) *CreateValueOptions
- type CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetCounterexamples(counterexamples []CreateCounterexample) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetDescription(description string) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetDialogNodes(dialogNodes []CreateDialogNode) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetEntities(entities []CreateEntity) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetHeaders(param map[string]string) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetIntents(intents []CreateIntent) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetLanguage(language string) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetLearningOptOut(learningOptOut bool) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetMetadata(metadata interface{}) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetName(name string) *CreateWorkspaceOptions
- func (options *CreateWorkspaceOptions) SetSystemSettings(systemSettings *WorkspaceSystemSettings) *CreateWorkspaceOptions
- type DeleteCounterexampleOptions
- func (options *DeleteCounterexampleOptions) SetHeaders(param map[string]string) *DeleteCounterexampleOptions
- func (options *DeleteCounterexampleOptions) SetText(text string) *DeleteCounterexampleOptions
- func (options *DeleteCounterexampleOptions) SetWorkspaceID(workspaceID string) *DeleteCounterexampleOptions
- type DeleteDialogNodeOptions
- type DeleteEntityOptions
- type DeleteExampleOptions
- func (options *DeleteExampleOptions) SetHeaders(param map[string]string) *DeleteExampleOptions
- func (options *DeleteExampleOptions) SetIntent(intent string) *DeleteExampleOptions
- func (options *DeleteExampleOptions) SetText(text string) *DeleteExampleOptions
- func (options *DeleteExampleOptions) SetWorkspaceID(workspaceID string) *DeleteExampleOptions
- type DeleteIntentOptions
- type DeleteSynonymOptions
- func (options *DeleteSynonymOptions) SetEntity(entity string) *DeleteSynonymOptions
- func (options *DeleteSynonymOptions) SetHeaders(param map[string]string) *DeleteSynonymOptions
- func (options *DeleteSynonymOptions) SetSynonym(synonym string) *DeleteSynonymOptions
- func (options *DeleteSynonymOptions) SetValue(value string) *DeleteSynonymOptions
- func (options *DeleteSynonymOptions) SetWorkspaceID(workspaceID string) *DeleteSynonymOptions
- type DeleteUserDataOptions
- type DeleteValueOptions
- func (options *DeleteValueOptions) SetEntity(entity string) *DeleteValueOptions
- func (options *DeleteValueOptions) SetHeaders(param map[string]string) *DeleteValueOptions
- func (options *DeleteValueOptions) SetValue(value string) *DeleteValueOptions
- func (options *DeleteValueOptions) SetWorkspaceID(workspaceID string) *DeleteValueOptions
- type DeleteWorkspaceOptions
- type DialogNode
- type DialogNodeAction
- type DialogNodeCollection
- type DialogNodeNextStep
- type DialogNodeOutput
- type DialogNodeOutputGeneric
- type DialogNodeOutputModifiers
- type DialogNodeOutputOptionsElement
- type DialogNodeOutputOptionsElementValue
- type DialogNodeOutputTextValuesElement
- type DialogNodeVisitedDetails
- type DialogRuntimeResponseGeneric
- type DialogSuggestion
- type DialogSuggestionValue
- type Entity
- type EntityCollection
- type EntityExport
- type EntityMention
- type EntityMentionCollection
- type Example
- type ExampleCollection
- type GetCounterexampleOptions
- func (options *GetCounterexampleOptions) SetHeaders(param map[string]string) *GetCounterexampleOptions
- func (options *GetCounterexampleOptions) SetIncludeAudit(includeAudit bool) *GetCounterexampleOptions
- func (options *GetCounterexampleOptions) SetText(text string) *GetCounterexampleOptions
- func (options *GetCounterexampleOptions) SetWorkspaceID(workspaceID string) *GetCounterexampleOptions
- type GetDialogNodeOptions
- func (options *GetDialogNodeOptions) SetDialogNode(dialogNode string) *GetDialogNodeOptions
- func (options *GetDialogNodeOptions) SetHeaders(param map[string]string) *GetDialogNodeOptions
- func (options *GetDialogNodeOptions) SetIncludeAudit(includeAudit bool) *GetDialogNodeOptions
- func (options *GetDialogNodeOptions) SetWorkspaceID(workspaceID string) *GetDialogNodeOptions
- type GetEntityOptions
- func (options *GetEntityOptions) SetEntity(entity string) *GetEntityOptions
- func (options *GetEntityOptions) SetExport(export bool) *GetEntityOptions
- func (options *GetEntityOptions) SetHeaders(param map[string]string) *GetEntityOptions
- func (options *GetEntityOptions) SetIncludeAudit(includeAudit bool) *GetEntityOptions
- func (options *GetEntityOptions) SetWorkspaceID(workspaceID string) *GetEntityOptions
- type GetExampleOptions
- func (options *GetExampleOptions) SetHeaders(param map[string]string) *GetExampleOptions
- func (options *GetExampleOptions) SetIncludeAudit(includeAudit bool) *GetExampleOptions
- func (options *GetExampleOptions) SetIntent(intent string) *GetExampleOptions
- func (options *GetExampleOptions) SetText(text string) *GetExampleOptions
- func (options *GetExampleOptions) SetWorkspaceID(workspaceID string) *GetExampleOptions
- type GetIntentOptions
- func (options *GetIntentOptions) SetExport(export bool) *GetIntentOptions
- func (options *GetIntentOptions) SetHeaders(param map[string]string) *GetIntentOptions
- func (options *GetIntentOptions) SetIncludeAudit(includeAudit bool) *GetIntentOptions
- func (options *GetIntentOptions) SetIntent(intent string) *GetIntentOptions
- func (options *GetIntentOptions) SetWorkspaceID(workspaceID string) *GetIntentOptions
- type GetSynonymOptions
- func (options *GetSynonymOptions) SetEntity(entity string) *GetSynonymOptions
- func (options *GetSynonymOptions) SetHeaders(param map[string]string) *GetSynonymOptions
- func (options *GetSynonymOptions) SetIncludeAudit(includeAudit bool) *GetSynonymOptions
- func (options *GetSynonymOptions) SetSynonym(synonym string) *GetSynonymOptions
- func (options *GetSynonymOptions) SetValue(value string) *GetSynonymOptions
- func (options *GetSynonymOptions) SetWorkspaceID(workspaceID string) *GetSynonymOptions
- type GetValueOptions
- func (options *GetValueOptions) SetEntity(entity string) *GetValueOptions
- func (options *GetValueOptions) SetExport(export bool) *GetValueOptions
- func (options *GetValueOptions) SetHeaders(param map[string]string) *GetValueOptions
- func (options *GetValueOptions) SetIncludeAudit(includeAudit bool) *GetValueOptions
- func (options *GetValueOptions) SetValue(value string) *GetValueOptions
- func (options *GetValueOptions) SetWorkspaceID(workspaceID string) *GetValueOptions
- type GetWorkspaceOptions
- func (options *GetWorkspaceOptions) SetExport(export bool) *GetWorkspaceOptions
- func (options *GetWorkspaceOptions) SetHeaders(param map[string]string) *GetWorkspaceOptions
- func (options *GetWorkspaceOptions) SetIncludeAudit(includeAudit bool) *GetWorkspaceOptions
- func (options *GetWorkspaceOptions) SetWorkspaceID(workspaceID string) *GetWorkspaceOptions
- type InputData
- type Intent
- type IntentCollection
- type IntentExport
- type ListAllLogsOptions
- func (options *ListAllLogsOptions) SetCursor(cursor string) *ListAllLogsOptions
- func (options *ListAllLogsOptions) SetFilter(filter string) *ListAllLogsOptions
- func (options *ListAllLogsOptions) SetHeaders(param map[string]string) *ListAllLogsOptions
- func (options *ListAllLogsOptions) SetPageLimit(pageLimit int64) *ListAllLogsOptions
- func (options *ListAllLogsOptions) SetSort(sort string) *ListAllLogsOptions
- type ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetCursor(cursor string) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetHeaders(param map[string]string) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetIncludeAudit(includeAudit bool) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetIncludeCount(includeCount bool) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetPageLimit(pageLimit int64) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetSort(sort string) *ListCounterexamplesOptions
- func (options *ListCounterexamplesOptions) SetWorkspaceID(workspaceID string) *ListCounterexamplesOptions
- type ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetCursor(cursor string) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetHeaders(param map[string]string) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetIncludeAudit(includeAudit bool) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetIncludeCount(includeCount bool) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetPageLimit(pageLimit int64) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetSort(sort string) *ListDialogNodesOptions
- func (options *ListDialogNodesOptions) SetWorkspaceID(workspaceID string) *ListDialogNodesOptions
- type ListEntitiesOptions
- func (options *ListEntitiesOptions) SetCursor(cursor string) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetExport(export bool) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetHeaders(param map[string]string) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetIncludeAudit(includeAudit bool) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetIncludeCount(includeCount bool) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetPageLimit(pageLimit int64) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetSort(sort string) *ListEntitiesOptions
- func (options *ListEntitiesOptions) SetWorkspaceID(workspaceID string) *ListEntitiesOptions
- type ListExamplesOptions
- func (options *ListExamplesOptions) SetCursor(cursor string) *ListExamplesOptions
- func (options *ListExamplesOptions) SetHeaders(param map[string]string) *ListExamplesOptions
- func (options *ListExamplesOptions) SetIncludeAudit(includeAudit bool) *ListExamplesOptions
- func (options *ListExamplesOptions) SetIncludeCount(includeCount bool) *ListExamplesOptions
- func (options *ListExamplesOptions) SetIntent(intent string) *ListExamplesOptions
- func (options *ListExamplesOptions) SetPageLimit(pageLimit int64) *ListExamplesOptions
- func (options *ListExamplesOptions) SetSort(sort string) *ListExamplesOptions
- func (options *ListExamplesOptions) SetWorkspaceID(workspaceID string) *ListExamplesOptions
- type ListIntentsOptions
- func (options *ListIntentsOptions) SetCursor(cursor string) *ListIntentsOptions
- func (options *ListIntentsOptions) SetExport(export bool) *ListIntentsOptions
- func (options *ListIntentsOptions) SetHeaders(param map[string]string) *ListIntentsOptions
- func (options *ListIntentsOptions) SetIncludeAudit(includeAudit bool) *ListIntentsOptions
- func (options *ListIntentsOptions) SetIncludeCount(includeCount bool) *ListIntentsOptions
- func (options *ListIntentsOptions) SetPageLimit(pageLimit int64) *ListIntentsOptions
- func (options *ListIntentsOptions) SetSort(sort string) *ListIntentsOptions
- func (options *ListIntentsOptions) SetWorkspaceID(workspaceID string) *ListIntentsOptions
- type ListLogsOptions
- func (options *ListLogsOptions) SetCursor(cursor string) *ListLogsOptions
- func (options *ListLogsOptions) SetFilter(filter string) *ListLogsOptions
- func (options *ListLogsOptions) SetHeaders(param map[string]string) *ListLogsOptions
- func (options *ListLogsOptions) SetPageLimit(pageLimit int64) *ListLogsOptions
- func (options *ListLogsOptions) SetSort(sort string) *ListLogsOptions
- func (options *ListLogsOptions) SetWorkspaceID(workspaceID string) *ListLogsOptions
- type ListMentionsOptions
- func (options *ListMentionsOptions) SetEntity(entity string) *ListMentionsOptions
- func (options *ListMentionsOptions) SetExport(export bool) *ListMentionsOptions
- func (options *ListMentionsOptions) SetHeaders(param map[string]string) *ListMentionsOptions
- func (options *ListMentionsOptions) SetIncludeAudit(includeAudit bool) *ListMentionsOptions
- func (options *ListMentionsOptions) SetWorkspaceID(workspaceID string) *ListMentionsOptions
- type ListSynonymsOptions
- func (options *ListSynonymsOptions) SetCursor(cursor string) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetEntity(entity string) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetHeaders(param map[string]string) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetIncludeAudit(includeAudit bool) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetIncludeCount(includeCount bool) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetPageLimit(pageLimit int64) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetSort(sort string) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetValue(value string) *ListSynonymsOptions
- func (options *ListSynonymsOptions) SetWorkspaceID(workspaceID string) *ListSynonymsOptions
- type ListValuesOptions
- func (options *ListValuesOptions) SetCursor(cursor string) *ListValuesOptions
- func (options *ListValuesOptions) SetEntity(entity string) *ListValuesOptions
- func (options *ListValuesOptions) SetExport(export bool) *ListValuesOptions
- func (options *ListValuesOptions) SetHeaders(param map[string]string) *ListValuesOptions
- func (options *ListValuesOptions) SetIncludeAudit(includeAudit bool) *ListValuesOptions
- func (options *ListValuesOptions) SetIncludeCount(includeCount bool) *ListValuesOptions
- func (options *ListValuesOptions) SetPageLimit(pageLimit int64) *ListValuesOptions
- func (options *ListValuesOptions) SetSort(sort string) *ListValuesOptions
- func (options *ListValuesOptions) SetWorkspaceID(workspaceID string) *ListValuesOptions
- type ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetCursor(cursor string) *ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetHeaders(param map[string]string) *ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetIncludeAudit(includeAudit bool) *ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetIncludeCount(includeCount bool) *ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetPageLimit(pageLimit int64) *ListWorkspacesOptions
- func (options *ListWorkspacesOptions) SetSort(sort string) *ListWorkspacesOptions
- type LogCollection
- type LogExport
- type LogMessage
- type LogPagination
- type Mentions
- type MessageInput
- type MessageOptions
- func (options *MessageOptions) SetAlternateIntents(alternateIntents bool) *MessageOptions
- func (options *MessageOptions) SetContext(context *Context) *MessageOptions
- func (options *MessageOptions) SetEntities(entities []RuntimeEntity) *MessageOptions
- func (options *MessageOptions) SetHeaders(param map[string]string) *MessageOptions
- func (options *MessageOptions) SetInput(input *InputData) *MessageOptions
- func (options *MessageOptions) SetIntents(intents []RuntimeIntent) *MessageOptions
- func (options *MessageOptions) SetNodesVisitedDetails(nodesVisitedDetails bool) *MessageOptions
- func (options *MessageOptions) SetOutput(output *OutputData) *MessageOptions
- func (options *MessageOptions) SetWorkspaceID(workspaceID string) *MessageOptions
- type MessageRequest
- type MessageResponse
- type OutputData
- type Pagination
- type RuntimeEntity
- type RuntimeIntent
- type Synonym
- type SynonymCollection
- type SystemResponse
- type UpdateCounterexampleOptions
- func (options *UpdateCounterexampleOptions) SetHeaders(param map[string]string) *UpdateCounterexampleOptions
- func (options *UpdateCounterexampleOptions) SetNewText(newText string) *UpdateCounterexampleOptions
- func (options *UpdateCounterexampleOptions) SetText(text string) *UpdateCounterexampleOptions
- func (options *UpdateCounterexampleOptions) SetWorkspaceID(workspaceID string) *UpdateCounterexampleOptions
- type UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetDialogNode(dialogNode string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetHeaders(param map[string]string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewActions(newActions []DialogNodeAction) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewConditions(newConditions string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewContext(newContext interface{}) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewDescription(newDescription string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewDialogNode(newDialogNode string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewDigressIn(newDigressIn string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewDigressOut(newDigressOut string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewDigressOutSlots(newDigressOutSlots string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewEventName(newEventName string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewMetadata(newMetadata interface{}) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewNextStep(newNextStep *DialogNodeNextStep) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewOutput(newOutput *DialogNodeOutput) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewParent(newParent string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewPreviousSibling(newPreviousSibling string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewTitle(newTitle string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewUserLabel(newUserLabel string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNewVariable(newVariable string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetNodeType(nodeType string) *UpdateDialogNodeOptions
- func (options *UpdateDialogNodeOptions) SetWorkspaceID(workspaceID string) *UpdateDialogNodeOptions
- type UpdateEntityOptions
- func (options *UpdateEntityOptions) SetEntity(entity string) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetHeaders(param map[string]string) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetNewDescription(newDescription string) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetNewEntity(newEntity string) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetNewFuzzyMatch(newFuzzyMatch bool) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetNewMetadata(newMetadata interface{}) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetNewValues(newValues []CreateValue) *UpdateEntityOptions
- func (options *UpdateEntityOptions) SetWorkspaceID(workspaceID string) *UpdateEntityOptions
- type UpdateExampleOptions
- func (options *UpdateExampleOptions) SetHeaders(param map[string]string) *UpdateExampleOptions
- func (options *UpdateExampleOptions) SetIntent(intent string) *UpdateExampleOptions
- func (options *UpdateExampleOptions) SetNewMentions(newMentions []Mentions) *UpdateExampleOptions
- func (options *UpdateExampleOptions) SetNewText(newText string) *UpdateExampleOptions
- func (options *UpdateExampleOptions) SetText(text string) *UpdateExampleOptions
- func (options *UpdateExampleOptions) SetWorkspaceID(workspaceID string) *UpdateExampleOptions
- type UpdateIntentOptions
- func (options *UpdateIntentOptions) SetHeaders(param map[string]string) *UpdateIntentOptions
- func (options *UpdateIntentOptions) SetIntent(intent string) *UpdateIntentOptions
- func (options *UpdateIntentOptions) SetNewDescription(newDescription string) *UpdateIntentOptions
- func (options *UpdateIntentOptions) SetNewExamples(newExamples []CreateExample) *UpdateIntentOptions
- func (options *UpdateIntentOptions) SetNewIntent(newIntent string) *UpdateIntentOptions
- func (options *UpdateIntentOptions) SetWorkspaceID(workspaceID string) *UpdateIntentOptions
- type UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetEntity(entity string) *UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetHeaders(param map[string]string) *UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetNewSynonym(newSynonym string) *UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetSynonym(synonym string) *UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetValue(value string) *UpdateSynonymOptions
- func (options *UpdateSynonymOptions) SetWorkspaceID(workspaceID string) *UpdateSynonymOptions
- type UpdateValueOptions
- func (options *UpdateValueOptions) SetEntity(entity string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetHeaders(param map[string]string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetNewMetadata(newMetadata interface{}) *UpdateValueOptions
- func (options *UpdateValueOptions) SetNewPatterns(newPatterns []string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetNewSynonyms(newSynonyms []string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetNewValue(newValue string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetValue(value string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetValueType(valueType string) *UpdateValueOptions
- func (options *UpdateValueOptions) SetWorkspaceID(workspaceID string) *UpdateValueOptions
- type UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetAppend(append bool) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetCounterexamples(counterexamples []CreateCounterexample) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetDescription(description string) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetDialogNodes(dialogNodes []CreateDialogNode) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetEntities(entities []CreateEntity) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetHeaders(param map[string]string) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetIntents(intents []CreateIntent) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetLanguage(language string) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetLearningOptOut(learningOptOut bool) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetMetadata(metadata interface{}) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetName(name string) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetSystemSettings(systemSettings *WorkspaceSystemSettings) *UpdateWorkspaceOptions
- func (options *UpdateWorkspaceOptions) SetWorkspaceID(workspaceID string) *UpdateWorkspaceOptions
- type Value
- type ValueCollection
- type ValueExport
- type Workspace
- type WorkspaceCollection
- type WorkspaceExport
- type WorkspaceSystemSettings
- type WorkspaceSystemSettingsDisambiguation
- type WorkspaceSystemSettingsTooling
Constants ¶
const ( CreateDialogNode_NodeType_EventHandler = "event_handler" CreateDialogNode_NodeType_Folder = "folder" CreateDialogNode_NodeType_Frame = "frame" CreateDialogNode_NodeType_ResponseCondition = "response_condition" CreateDialogNode_NodeType_Slot = "slot" CreateDialogNode_NodeType_Standard = "standard" )
Constants associated with the CreateDialogNode.NodeType property. How the dialog node is processed.
const ( CreateDialogNode_EventName_DigressionReturnPrompt = "digression_return_prompt" CreateDialogNode_EventName_Filled = "filled" CreateDialogNode_EventName_FilledMultiple = "filled_multiple" CreateDialogNode_EventName_Focus = "focus" CreateDialogNode_EventName_Generic = "generic" CreateDialogNode_EventName_Input = "input" CreateDialogNode_EventName_Nomatch = "nomatch" CreateDialogNode_EventName_NomatchResponsesDepleted = "nomatch_responses_depleted" CreateDialogNode_EventName_Validate = "validate" )
Constants associated with the CreateDialogNode.EventName property. How an `event_handler` node is processed.
const ( CreateDialogNode_DigressIn_DoesNotReturn = "does_not_return" CreateDialogNode_DigressIn_NotAvailable = "not_available" CreateDialogNode_DigressIn_Returns = "returns" )
Constants associated with the CreateDialogNode.DigressIn property. Whether this top-level dialog node can be digressed into.
const ( CreateDialogNode_DigressOut_AllowAll = "allow_all" CreateDialogNode_DigressOut_AllowAllNeverReturn = "allow_all_never_return" CreateDialogNode_DigressOut_AllowReturning = "allow_returning" )
Constants associated with the CreateDialogNode.DigressOut property. Whether this dialog node can be returned to after a digression.
const ( CreateDialogNode_DigressOutSlots_AllowAll = "allow_all" CreateDialogNode_DigressOutSlots_AllowReturning = "allow_returning" CreateDialogNode_DigressOutSlots_NotAllowed = "not_allowed" )
Constants associated with the CreateDialogNode.DigressOutSlots property. Whether the user can digress to top-level nodes while filling out slots.
const ( CreateDialogNodeOptions_NodeType_EventHandler = "event_handler" CreateDialogNodeOptions_NodeType_Folder = "folder" CreateDialogNodeOptions_NodeType_Frame = "frame" CreateDialogNodeOptions_NodeType_ResponseCondition = "response_condition" CreateDialogNodeOptions_NodeType_Slot = "slot" CreateDialogNodeOptions_NodeType_Standard = "standard" )
Constants associated with the CreateDialogNodeOptions.NodeType property. How the dialog node is processed.
const ( CreateDialogNodeOptions_EventName_DigressionReturnPrompt = "digression_return_prompt" CreateDialogNodeOptions_EventName_Filled = "filled" CreateDialogNodeOptions_EventName_FilledMultiple = "filled_multiple" CreateDialogNodeOptions_EventName_Focus = "focus" CreateDialogNodeOptions_EventName_Generic = "generic" CreateDialogNodeOptions_EventName_Input = "input" CreateDialogNodeOptions_EventName_Nomatch = "nomatch" CreateDialogNodeOptions_EventName_NomatchResponsesDepleted = "nomatch_responses_depleted" CreateDialogNodeOptions_EventName_Validate = "validate" )
Constants associated with the CreateDialogNodeOptions.EventName property. How an `event_handler` node is processed.
const ( CreateDialogNodeOptions_DigressIn_DoesNotReturn = "does_not_return" CreateDialogNodeOptions_DigressIn_NotAvailable = "not_available" CreateDialogNodeOptions_DigressIn_Returns = "returns" )
Constants associated with the CreateDialogNodeOptions.DigressIn property. Whether this top-level dialog node can be digressed into.
const ( CreateDialogNodeOptions_DigressOut_AllowAll = "allow_all" CreateDialogNodeOptions_DigressOut_AllowAllNeverReturn = "allow_all_never_return" CreateDialogNodeOptions_DigressOut_AllowReturning = "allow_returning" )
Constants associated with the CreateDialogNodeOptions.DigressOut property. Whether this dialog node can be returned to after a digression.
const ( CreateDialogNodeOptions_DigressOutSlots_AllowAll = "allow_all" CreateDialogNodeOptions_DigressOutSlots_AllowReturning = "allow_returning" CreateDialogNodeOptions_DigressOutSlots_NotAllowed = "not_allowed" )
Constants associated with the CreateDialogNodeOptions.DigressOutSlots property. Whether the user can digress to top-level nodes while filling out slots.
const ( CreateValue_ValueType_Patterns = "patterns" CreateValue_ValueType_Synonyms = "synonyms" )
Constants associated with the CreateValue.ValueType property. Specifies the type of value.
const ( CreateValueOptions_ValueType_Patterns = "patterns" CreateValueOptions_ValueType_Synonyms = "synonyms" )
Constants associated with the CreateValueOptions.ValueType property. Specifies the type of value.
const ( DialogNode_NodeType_EventHandler = "event_handler" DialogNode_NodeType_Folder = "folder" DialogNode_NodeType_Frame = "frame" DialogNode_NodeType_ResponseCondition = "response_condition" DialogNode_NodeType_Slot = "slot" DialogNode_NodeType_Standard = "standard" )
Constants associated with the DialogNode.NodeType property. How the dialog node is processed.
const ( DialogNode_EventName_DigressionReturnPrompt = "digression_return_prompt" DialogNode_EventName_Filled = "filled" DialogNode_EventName_FilledMultiple = "filled_multiple" DialogNode_EventName_Focus = "focus" DialogNode_EventName_Generic = "generic" DialogNode_EventName_Input = "input" DialogNode_EventName_Nomatch = "nomatch" DialogNode_EventName_NomatchResponsesDepleted = "nomatch_responses_depleted" DialogNode_EventName_Validate = "validate" )
Constants associated with the DialogNode.EventName property. How an `event_handler` node is processed.
const ( DialogNode_DigressIn_DoesNotReturn = "does_not_return" DialogNode_DigressIn_NotAvailable = "not_available" DialogNode_DigressIn_Returns = "returns" )
Constants associated with the DialogNode.DigressIn property. Whether this top-level dialog node can be digressed into.
const ( DialogNode_DigressOut_AllowAll = "allow_all" DialogNode_DigressOut_AllowAllNeverReturn = "allow_all_never_return" DialogNode_DigressOut_AllowReturning = "allow_returning" )
Constants associated with the DialogNode.DigressOut property. Whether this dialog node can be returned to after a digression.
const ( DialogNode_DigressOutSlots_AllowAll = "allow_all" DialogNode_DigressOutSlots_AllowReturning = "allow_returning" DialogNode_DigressOutSlots_NotAllowed = "not_allowed" )
Constants associated with the DialogNode.DigressOutSlots property. Whether the user can digress to top-level nodes while filling out slots.
const ( DialogNodeAction_ActionType_Client = "client" DialogNodeAction_ActionType_CloudFunction = "cloud_function" DialogNodeAction_ActionType_Server = "server" DialogNodeAction_ActionType_WebAction = "web_action" )
Constants associated with the DialogNodeAction.ActionType property. The type of action to invoke.
const ( DialogNodeNextStep_Behavior_GetUserInput = "get_user_input" DialogNodeNextStep_Behavior_JumpTo = "jump_to" DialogNodeNextStep_Behavior_Reprompt = "reprompt" DialogNodeNextStep_Behavior_SkipAllSlots = "skip_all_slots" DialogNodeNextStep_Behavior_SkipSlot = "skip_slot" DialogNodeNextStep_Behavior_SkipUserInput = "skip_user_input" )
Constants associated with the DialogNodeNextStep.Behavior property. What happens after the dialog node completes. The valid values depend on the node type: - The following values are valid for any node:
- `get_user_input`
- `skip_user_input`
- `jump_to`
- If the node is of type `event_handler` and its parent node is of type `slot` or `frame`, additional values are also valid:
- if **event_name**=`filled` and the type of the parent node is `slot`:
- `reprompt`
- `skip_all_slots`
- if **event_name**=`nomatch` and the type of the parent node is `slot`:
- `reprompt`
- `skip_slot`
- `skip_all_slots`
- if **event_name**=`generic` and the type of the parent node is `frame`:
- `reprompt`
- `skip_slot`
- `skip_all_slots`
If you specify `jump_to`, then you must also specify a value for the `dialog_node` property.
const ( DialogNodeNextStep_Selector_Body = "body" DialogNodeNextStep_Selector_Client = "client" DialogNodeNextStep_Selector_Condition = "condition" DialogNodeNextStep_Selector_UserInput = "user_input" )
Constants associated with the DialogNodeNextStep.Selector property. Which part of the dialog node to process next.
const ( DialogNodeOutputGeneric_ResponseType_ConnectToAgent = "connect_to_agent" DialogNodeOutputGeneric_ResponseType_Image = "image" DialogNodeOutputGeneric_ResponseType_Option = "option" DialogNodeOutputGeneric_ResponseType_Pause = "pause" DialogNodeOutputGeneric_ResponseType_Text = "text" )
Constants associated with the DialogNodeOutputGeneric.ResponseType property. The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.
const ( DialogNodeOutputGeneric_SelectionPolicy_Multiline = "multiline" DialogNodeOutputGeneric_SelectionPolicy_Random = "random" DialogNodeOutputGeneric_SelectionPolicy_Sequential = "sequential" )
Constants associated with the DialogNodeOutputGeneric.SelectionPolicy property. How a response is selected from the list, if more than one response is specified. Valid only when **response_type**=`text`.
const ( DialogNodeOutputGeneric_Preference_Button = "button" DialogNodeOutputGeneric_Preference_Dropdown = "dropdown" )
Constants associated with the DialogNodeOutputGeneric.Preference property. The preferred type of control to display, if supported by the channel. Valid only when **response_type**=`option`.
const ( DialogRuntimeResponseGeneric_ResponseType_ConnectToAgent = "connect_to_agent" DialogRuntimeResponseGeneric_ResponseType_Image = "image" DialogRuntimeResponseGeneric_ResponseType_Option = "option" DialogRuntimeResponseGeneric_ResponseType_Pause = "pause" DialogRuntimeResponseGeneric_ResponseType_Suggestion = "suggestion" DialogRuntimeResponseGeneric_ResponseType_Text = "text" )
Constants associated with the DialogRuntimeResponseGeneric.ResponseType property. The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.
**Note:** The **suggestion** response type is part of the disambiguation feature, which is only available for Premium users.
const ( DialogRuntimeResponseGeneric_Preference_Button = "button" DialogRuntimeResponseGeneric_Preference_Dropdown = "dropdown" )
Constants associated with the DialogRuntimeResponseGeneric.Preference property. The preferred type of control to display.
const ( LogMessage_Level_Error = "error" LogMessage_Level_Info = "info" LogMessage_Level_Warn = "warn" )
Constants associated with the LogMessage.Level property. The severity of the log message.
const ( UpdateDialogNodeOptions_NodeType_EventHandler = "event_handler" UpdateDialogNodeOptions_NodeType_Folder = "folder" UpdateDialogNodeOptions_NodeType_Frame = "frame" UpdateDialogNodeOptions_NodeType_ResponseCondition = "response_condition" UpdateDialogNodeOptions_NodeType_Slot = "slot" UpdateDialogNodeOptions_NodeType_Standard = "standard" )
Constants associated with the UpdateDialogNodeOptions.NodeType property. How the dialog node is processed.
const ( UpdateDialogNodeOptions_NewDigressOut_AllowAll = "allow_all" UpdateDialogNodeOptions_NewDigressOut_AllowAllNeverReturn = "allow_all_never_return" UpdateDialogNodeOptions_NewDigressOut_AllowReturning = "allow_returning" )
Constants associated with the UpdateDialogNodeOptions.NewDigressOut property. Whether this dialog node can be returned to after a digression.
const ( UpdateDialogNodeOptions_NewEventName_DigressionReturnPrompt = "digression_return_prompt" UpdateDialogNodeOptions_NewEventName_Filled = "filled" UpdateDialogNodeOptions_NewEventName_FilledMultiple = "filled_multiple" UpdateDialogNodeOptions_NewEventName_Focus = "focus" UpdateDialogNodeOptions_NewEventName_Generic = "generic" UpdateDialogNodeOptions_NewEventName_Input = "input" UpdateDialogNodeOptions_NewEventName_Nomatch = "nomatch" UpdateDialogNodeOptions_NewEventName_NomatchResponsesDepleted = "nomatch_responses_depleted" UpdateDialogNodeOptions_NewEventName_Validate = "validate" )
Constants associated with the UpdateDialogNodeOptions.NewEventName property. How an `event_handler` node is processed.
const ( UpdateDialogNodeOptions_NewDigressOutSlots_AllowAll = "allow_all" UpdateDialogNodeOptions_NewDigressOutSlots_AllowReturning = "allow_returning" UpdateDialogNodeOptions_NewDigressOutSlots_NotAllowed = "not_allowed" )
Constants associated with the UpdateDialogNodeOptions.NewDigressOutSlots property. Whether the user can digress to top-level nodes while filling out slots.
const ( UpdateDialogNodeOptions_NewDigressIn_DoesNotReturn = "does_not_return" UpdateDialogNodeOptions_NewDigressIn_NotAvailable = "not_available" UpdateDialogNodeOptions_NewDigressIn_Returns = "returns" )
Constants associated with the UpdateDialogNodeOptions.NewDigressIn property. Whether this top-level dialog node can be digressed into.
const ( UpdateValueOptions_ValueType_Patterns = "patterns" UpdateValueOptions_ValueType_Synonyms = "synonyms" )
Constants associated with the UpdateValueOptions.ValueType property. Specifies the type of value.
const ( Value_ValueType_Patterns = "patterns" Value_ValueType_Synonyms = "synonyms" )
Constants associated with the Value.ValueType property. Specifies the type of value.
const ( ValueExport_ValueType_Patterns = "patterns" ValueExport_ValueType_Synonyms = "synonyms" )
Constants associated with the ValueExport.ValueType property. Specifies the type of value.
const ( WorkspaceExport_Status_Available = "Available" WorkspaceExport_Status_Failed = "Failed" WorkspaceExport_Status_NonExistent = "Non Existent" WorkspaceExport_Status_Training = "Training" )
Constants associated with the WorkspaceExport.Status property. The current status of the workspace.
const ( WorkspaceSystemSettingsDisambiguation_Sensitivity_Auto = "auto" WorkspaceSystemSettingsDisambiguation_Sensitivity_High = "high" )
Constants associated with the WorkspaceSystemSettingsDisambiguation.Sensitivity property. The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantV1 ¶
type AssistantV1 struct {
Service *core.WatsonService
}
AssistantV1 : The IBM Watson™ Assistant service combines machine learning, natural language understanding, and integrated dialog tools to create conversation flows between your apps and your users.
Version: V1 See: http://www.ibm.com/watson/developercloud/assistant.html
func NewAssistantV1 ¶
func NewAssistantV1(options *AssistantV1Options) (*AssistantV1, error)
NewAssistantV1 : Instantiate AssistantV1
func (*AssistantV1) CreateCounterexample ¶
func (assistant *AssistantV1) CreateCounterexample(createCounterexampleOptions *CreateCounterexampleOptions) (*core.DetailedResponse, error)
CreateCounterexample : Create counterexample Add a new counterexample to a workspace. Counterexamples are examples that have been marked as irrelevant input.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateDialogNode ¶
func (assistant *AssistantV1) CreateDialogNode(createDialogNodeOptions *CreateDialogNodeOptions) (*core.DetailedResponse, error)
CreateDialogNode : Create dialog node Create a new dialog node.
This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateEntity ¶
func (assistant *AssistantV1) CreateEntity(createEntityOptions *CreateEntityOptions) (*core.DetailedResponse, error)
CreateEntity : Create entity Create a new entity.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateExample ¶
func (assistant *AssistantV1) CreateExample(createExampleOptions *CreateExampleOptions) (*core.DetailedResponse, error)
CreateExample : Create user input example Add a new user input example to an intent.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateIntent ¶
func (assistant *AssistantV1) CreateIntent(createIntentOptions *CreateIntentOptions) (*core.DetailedResponse, error)
CreateIntent : Create intent Create a new intent.
This operation is limited to 2000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateSynonym ¶
func (assistant *AssistantV1) CreateSynonym(createSynonymOptions *CreateSynonymOptions) (*core.DetailedResponse, error)
CreateSynonym : Add entity value synonym Add a new synonym to an entity value.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateValue ¶
func (assistant *AssistantV1) CreateValue(createValueOptions *CreateValueOptions) (*core.DetailedResponse, error)
CreateValue : Add entity value Create a new value for an entity.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) CreateWorkspace ¶
func (assistant *AssistantV1) CreateWorkspace(createWorkspaceOptions *CreateWorkspaceOptions) (*core.DetailedResponse, error)
CreateWorkspace : Create workspace Create a workspace based on component objects. You must provide workspace components defining the content of the new workspace.
This operation is limited to 30 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteCounterexample ¶
func (assistant *AssistantV1) DeleteCounterexample(deleteCounterexampleOptions *DeleteCounterexampleOptions) (*core.DetailedResponse, error)
DeleteCounterexample : Delete counterexample Delete a counterexample from a workspace. Counterexamples are examples that have been marked as irrelevant input.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteDialogNode ¶
func (assistant *AssistantV1) DeleteDialogNode(deleteDialogNodeOptions *DeleteDialogNodeOptions) (*core.DetailedResponse, error)
DeleteDialogNode : Delete dialog node Delete a dialog node from a workspace.
This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteEntity ¶
func (assistant *AssistantV1) DeleteEntity(deleteEntityOptions *DeleteEntityOptions) (*core.DetailedResponse, error)
DeleteEntity : Delete entity Delete an entity from a workspace.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteExample ¶
func (assistant *AssistantV1) DeleteExample(deleteExampleOptions *DeleteExampleOptions) (*core.DetailedResponse, error)
DeleteExample : Delete user input example Delete a user input example from an intent.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteIntent ¶
func (assistant *AssistantV1) DeleteIntent(deleteIntentOptions *DeleteIntentOptions) (*core.DetailedResponse, error)
DeleteIntent : Delete intent Delete an intent from a workspace.
This operation is limited to 2000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteSynonym ¶
func (assistant *AssistantV1) DeleteSynonym(deleteSynonymOptions *DeleteSynonymOptions) (*core.DetailedResponse, error)
DeleteSynonym : Delete entity value synonym Delete a synonym from an entity value.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteUserData ¶
func (assistant *AssistantV1) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (*core.DetailedResponse, error)
DeleteUserData : Delete labeled data Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://console.bluemix.net/docs/services/conversation/information-security.html).
func (*AssistantV1) DeleteValue ¶
func (assistant *AssistantV1) DeleteValue(deleteValueOptions *DeleteValueOptions) (*core.DetailedResponse, error)
DeleteValue : Delete entity value Delete a value from an entity.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) DeleteWorkspace ¶
func (assistant *AssistantV1) DeleteWorkspace(deleteWorkspaceOptions *DeleteWorkspaceOptions) (*core.DetailedResponse, error)
DeleteWorkspace : Delete workspace Delete a workspace from the service instance.
This operation is limited to 30 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetCounterexample ¶
func (assistant *AssistantV1) GetCounterexample(getCounterexampleOptions *GetCounterexampleOptions) (*core.DetailedResponse, error)
GetCounterexample : Get counterexample Get information about a counterexample. Counterexamples are examples that have been marked as irrelevant input.
This operation is limited to 6000 requests per 5 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetCreateCounterexampleResult ¶
func (assistant *AssistantV1) GetCreateCounterexampleResult(response *core.DetailedResponse) *Counterexample
GetCreateCounterexampleResult : Retrieve result of CreateCounterexample operation
func (*AssistantV1) GetCreateDialogNodeResult ¶
func (assistant *AssistantV1) GetCreateDialogNodeResult(response *core.DetailedResponse) *DialogNode
GetCreateDialogNodeResult : Retrieve result of CreateDialogNode operation
func (*AssistantV1) GetCreateEntityResult ¶
func (assistant *AssistantV1) GetCreateEntityResult(response *core.DetailedResponse) *Entity
GetCreateEntityResult : Retrieve result of CreateEntity operation
func (*AssistantV1) GetCreateExampleResult ¶
func (assistant *AssistantV1) GetCreateExampleResult(response *core.DetailedResponse) *Example
GetCreateExampleResult : Retrieve result of CreateExample operation
func (*AssistantV1) GetCreateIntentResult ¶
func (assistant *AssistantV1) GetCreateIntentResult(response *core.DetailedResponse) *Intent
GetCreateIntentResult : Retrieve result of CreateIntent operation
func (*AssistantV1) GetCreateSynonymResult ¶
func (assistant *AssistantV1) GetCreateSynonymResult(response *core.DetailedResponse) *Synonym
GetCreateSynonymResult : Retrieve result of CreateSynonym operation
func (*AssistantV1) GetCreateValueResult ¶
func (assistant *AssistantV1) GetCreateValueResult(response *core.DetailedResponse) *Value
GetCreateValueResult : Retrieve result of CreateValue operation
func (*AssistantV1) GetCreateWorkspaceResult ¶
func (assistant *AssistantV1) GetCreateWorkspaceResult(response *core.DetailedResponse) *Workspace
GetCreateWorkspaceResult : Retrieve result of CreateWorkspace operation
func (*AssistantV1) GetDialogNode ¶
func (assistant *AssistantV1) GetDialogNode(getDialogNodeOptions *GetDialogNodeOptions) (*core.DetailedResponse, error)
GetDialogNode : Get dialog node Get information about a dialog node.
This operation is limited to 6000 requests per 5 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetEntity ¶
func (assistant *AssistantV1) GetEntity(getEntityOptions *GetEntityOptions) (*core.DetailedResponse, error)
GetEntity : Get entity Get information about an entity, optionally including all entity content.
With **export**=`false`, this operation is limited to 6000 requests per 5 minutes. With **export**=`true`, the limit is 200 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetExample ¶
func (assistant *AssistantV1) GetExample(getExampleOptions *GetExampleOptions) (*core.DetailedResponse, error)
GetExample : Get user input example Get information about a user input example.
This operation is limited to 6000 requests per 5 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetGetCounterexampleResult ¶
func (assistant *AssistantV1) GetGetCounterexampleResult(response *core.DetailedResponse) *Counterexample
GetGetCounterexampleResult : Retrieve result of GetCounterexample operation
func (*AssistantV1) GetGetDialogNodeResult ¶
func (assistant *AssistantV1) GetGetDialogNodeResult(response *core.DetailedResponse) *DialogNode
GetGetDialogNodeResult : Retrieve result of GetDialogNode operation
func (*AssistantV1) GetGetEntityResult ¶
func (assistant *AssistantV1) GetGetEntityResult(response *core.DetailedResponse) *EntityExport
GetGetEntityResult : Retrieve result of GetEntity operation
func (*AssistantV1) GetGetExampleResult ¶
func (assistant *AssistantV1) GetGetExampleResult(response *core.DetailedResponse) *Example
GetGetExampleResult : Retrieve result of GetExample operation
func (*AssistantV1) GetGetIntentResult ¶
func (assistant *AssistantV1) GetGetIntentResult(response *core.DetailedResponse) *IntentExport
GetGetIntentResult : Retrieve result of GetIntent operation
func (*AssistantV1) GetGetSynonymResult ¶
func (assistant *AssistantV1) GetGetSynonymResult(response *core.DetailedResponse) *Synonym
GetGetSynonymResult : Retrieve result of GetSynonym operation
func (*AssistantV1) GetGetValueResult ¶
func (assistant *AssistantV1) GetGetValueResult(response *core.DetailedResponse) *ValueExport
GetGetValueResult : Retrieve result of GetValue operation
func (*AssistantV1) GetGetWorkspaceResult ¶
func (assistant *AssistantV1) GetGetWorkspaceResult(response *core.DetailedResponse) *WorkspaceExport
GetGetWorkspaceResult : Retrieve result of GetWorkspace operation
func (*AssistantV1) GetIntent ¶
func (assistant *AssistantV1) GetIntent(getIntentOptions *GetIntentOptions) (*core.DetailedResponse, error)
GetIntent : Get intent Get information about an intent, optionally including all intent content.
With **export**=`false`, this operation is limited to 6000 requests per 5 minutes. With **export**=`true`, the limit is 400 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetListAllLogsResult ¶
func (assistant *AssistantV1) GetListAllLogsResult(response *core.DetailedResponse) *LogCollection
GetListAllLogsResult : Retrieve result of ListAllLogs operation
func (*AssistantV1) GetListCounterexamplesResult ¶
func (assistant *AssistantV1) GetListCounterexamplesResult(response *core.DetailedResponse) *CounterexampleCollection
GetListCounterexamplesResult : Retrieve result of ListCounterexamples operation
func (*AssistantV1) GetListDialogNodesResult ¶
func (assistant *AssistantV1) GetListDialogNodesResult(response *core.DetailedResponse) *DialogNodeCollection
GetListDialogNodesResult : Retrieve result of ListDialogNodes operation
func (*AssistantV1) GetListEntitiesResult ¶
func (assistant *AssistantV1) GetListEntitiesResult(response *core.DetailedResponse) *EntityCollection
GetListEntitiesResult : Retrieve result of ListEntities operation
func (*AssistantV1) GetListExamplesResult ¶
func (assistant *AssistantV1) GetListExamplesResult(response *core.DetailedResponse) *ExampleCollection
GetListExamplesResult : Retrieve result of ListExamples operation
func (*AssistantV1) GetListIntentsResult ¶
func (assistant *AssistantV1) GetListIntentsResult(response *core.DetailedResponse) *IntentCollection
GetListIntentsResult : Retrieve result of ListIntents operation
func (*AssistantV1) GetListLogsResult ¶
func (assistant *AssistantV1) GetListLogsResult(response *core.DetailedResponse) *LogCollection
GetListLogsResult : Retrieve result of ListLogs operation
func (*AssistantV1) GetListMentionsResult ¶
func (assistant *AssistantV1) GetListMentionsResult(response *core.DetailedResponse) *EntityMentionCollection
GetListMentionsResult : Retrieve result of ListMentions operation
func (*AssistantV1) GetListSynonymsResult ¶
func (assistant *AssistantV1) GetListSynonymsResult(response *core.DetailedResponse) *SynonymCollection
GetListSynonymsResult : Retrieve result of ListSynonyms operation
func (*AssistantV1) GetListValuesResult ¶
func (assistant *AssistantV1) GetListValuesResult(response *core.DetailedResponse) *ValueCollection
GetListValuesResult : Retrieve result of ListValues operation
func (*AssistantV1) GetListWorkspacesResult ¶
func (assistant *AssistantV1) GetListWorkspacesResult(response *core.DetailedResponse) *WorkspaceCollection
GetListWorkspacesResult : Retrieve result of ListWorkspaces operation
func (*AssistantV1) GetMessageResult ¶
func (assistant *AssistantV1) GetMessageResult(response *core.DetailedResponse) *MessageResponse
GetMessageResult : Retrieve result of Message operation
func (*AssistantV1) GetSynonym ¶
func (assistant *AssistantV1) GetSynonym(getSynonymOptions *GetSynonymOptions) (*core.DetailedResponse, error)
GetSynonym : Get entity value synonym Get information about a synonym of an entity value.
This operation is limited to 6000 requests per 5 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetUpdateCounterexampleResult ¶
func (assistant *AssistantV1) GetUpdateCounterexampleResult(response *core.DetailedResponse) *Counterexample
GetUpdateCounterexampleResult : Retrieve result of UpdateCounterexample operation
func (*AssistantV1) GetUpdateDialogNodeResult ¶
func (assistant *AssistantV1) GetUpdateDialogNodeResult(response *core.DetailedResponse) *DialogNode
GetUpdateDialogNodeResult : Retrieve result of UpdateDialogNode operation
func (*AssistantV1) GetUpdateEntityResult ¶
func (assistant *AssistantV1) GetUpdateEntityResult(response *core.DetailedResponse) *Entity
GetUpdateEntityResult : Retrieve result of UpdateEntity operation
func (*AssistantV1) GetUpdateExampleResult ¶
func (assistant *AssistantV1) GetUpdateExampleResult(response *core.DetailedResponse) *Example
GetUpdateExampleResult : Retrieve result of UpdateExample operation
func (*AssistantV1) GetUpdateIntentResult ¶
func (assistant *AssistantV1) GetUpdateIntentResult(response *core.DetailedResponse) *Intent
GetUpdateIntentResult : Retrieve result of UpdateIntent operation
func (*AssistantV1) GetUpdateSynonymResult ¶
func (assistant *AssistantV1) GetUpdateSynonymResult(response *core.DetailedResponse) *Synonym
GetUpdateSynonymResult : Retrieve result of UpdateSynonym operation
func (*AssistantV1) GetUpdateValueResult ¶
func (assistant *AssistantV1) GetUpdateValueResult(response *core.DetailedResponse) *Value
GetUpdateValueResult : Retrieve result of UpdateValue operation
func (*AssistantV1) GetUpdateWorkspaceResult ¶
func (assistant *AssistantV1) GetUpdateWorkspaceResult(response *core.DetailedResponse) *Workspace
GetUpdateWorkspaceResult : Retrieve result of UpdateWorkspace operation
func (*AssistantV1) GetValue ¶
func (assistant *AssistantV1) GetValue(getValueOptions *GetValueOptions) (*core.DetailedResponse, error)
GetValue : Get entity value Get information about an entity value.
This operation is limited to 6000 requests per 5 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) GetWorkspace ¶
func (assistant *AssistantV1) GetWorkspace(getWorkspaceOptions *GetWorkspaceOptions) (*core.DetailedResponse, error)
GetWorkspace : Get information about a workspace Get information about a workspace, optionally including all workspace content.
With **export**=`false`, this operation is limited to 6000 requests per 5 minutes. With **export**=`true`, the limit is 20 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListAllLogs ¶
func (assistant *AssistantV1) ListAllLogs(listAllLogsOptions *ListAllLogsOptions) (*core.DetailedResponse, error)
ListAllLogs : List log events in all workspaces List the events from the logs of all workspaces in the service instance.
If **cursor** is not specified, this operation is limited to 40 requests per 30 minutes. If **cursor** is specified, the limit is 120 requests per minute. For more information, see **Rate limiting**.
func (*AssistantV1) ListCounterexamples ¶
func (assistant *AssistantV1) ListCounterexamples(listCounterexamplesOptions *ListCounterexamplesOptions) (*core.DetailedResponse, error)
ListCounterexamples : List counterexamples List the counterexamples for a workspace. Counterexamples are examples that have been marked as irrelevant input.
This operation is limited to 2500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListDialogNodes ¶
func (assistant *AssistantV1) ListDialogNodes(listDialogNodesOptions *ListDialogNodesOptions) (*core.DetailedResponse, error)
ListDialogNodes : List dialog nodes List the dialog nodes for a workspace.
This operation is limited to 2500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListEntities ¶
func (assistant *AssistantV1) ListEntities(listEntitiesOptions *ListEntitiesOptions) (*core.DetailedResponse, error)
ListEntities : List entities List the entities for a workspace.
With **export**=`false`, this operation is limited to 1000 requests per 30 minutes. With **export**=`true`, the limit is 200 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListExamples ¶
func (assistant *AssistantV1) ListExamples(listExamplesOptions *ListExamplesOptions) (*core.DetailedResponse, error)
ListExamples : List user input examples List the user input examples for an intent, optionally including contextual entity mentions.
This operation is limited to 2500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListIntents ¶
func (assistant *AssistantV1) ListIntents(listIntentsOptions *ListIntentsOptions) (*core.DetailedResponse, error)
ListIntents : List intents List the intents for a workspace.
With **export**=`false`, this operation is limited to 2000 requests per 30 minutes. With **export**=`true`, the limit is 400 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListLogs ¶
func (assistant *AssistantV1) ListLogs(listLogsOptions *ListLogsOptions) (*core.DetailedResponse, error)
ListLogs : List log events in a workspace List the events from the log of a specific workspace.
If **cursor** is not specified, this operation is limited to 40 requests per 30 minutes. If **cursor** is specified, the limit is 120 requests per minute. For more information, see **Rate limiting**.
func (*AssistantV1) ListMentions ¶
func (assistant *AssistantV1) ListMentions(listMentionsOptions *ListMentionsOptions) (*core.DetailedResponse, error)
ListMentions : List entity mentions List mentions for a contextual entity. An entity mention is an occurrence of a contextual entity in the context of an intent user input example.
This operation is limited to 200 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListSynonyms ¶
func (assistant *AssistantV1) ListSynonyms(listSynonymsOptions *ListSynonymsOptions) (*core.DetailedResponse, error)
ListSynonyms : List entity value synonyms List the synonyms for an entity value.
This operation is limited to 2500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListValues ¶
func (assistant *AssistantV1) ListValues(listValuesOptions *ListValuesOptions) (*core.DetailedResponse, error)
ListValues : List entity values List the values for an entity.
This operation is limited to 2500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) ListWorkspaces ¶
func (assistant *AssistantV1) ListWorkspaces(listWorkspacesOptions *ListWorkspacesOptions) (*core.DetailedResponse, error)
ListWorkspaces : List workspaces List the workspaces associated with a Watson Assistant service instance.
This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) Message ¶
func (assistant *AssistantV1) Message(messageOptions *MessageOptions) (*core.DetailedResponse, error)
Message : Get response to user input Get a response to a user's input.
There is no rate limit for this operation.
func (*AssistantV1) NewCreateCounterexampleOptions ¶
func (assistant *AssistantV1) NewCreateCounterexampleOptions(workspaceID string, text string) *CreateCounterexampleOptions
NewCreateCounterexampleOptions : Instantiate CreateCounterexampleOptions
func (*AssistantV1) NewCreateDialogNodeOptions ¶
func (assistant *AssistantV1) NewCreateDialogNodeOptions(workspaceID string, dialogNode string) *CreateDialogNodeOptions
NewCreateDialogNodeOptions : Instantiate CreateDialogNodeOptions
func (*AssistantV1) NewCreateEntityOptions ¶
func (assistant *AssistantV1) NewCreateEntityOptions(workspaceID string, entity string) *CreateEntityOptions
NewCreateEntityOptions : Instantiate CreateEntityOptions
func (*AssistantV1) NewCreateExampleOptions ¶
func (assistant *AssistantV1) NewCreateExampleOptions(workspaceID string, intent string, text string) *CreateExampleOptions
NewCreateExampleOptions : Instantiate CreateExampleOptions
func (*AssistantV1) NewCreateIntentOptions ¶
func (assistant *AssistantV1) NewCreateIntentOptions(workspaceID string, intent string) *CreateIntentOptions
NewCreateIntentOptions : Instantiate CreateIntentOptions
func (*AssistantV1) NewCreateSynonymOptions ¶
func (assistant *AssistantV1) NewCreateSynonymOptions(workspaceID string, entity string, value string, synonym string) *CreateSynonymOptions
NewCreateSynonymOptions : Instantiate CreateSynonymOptions
func (*AssistantV1) NewCreateValueOptions ¶
func (assistant *AssistantV1) NewCreateValueOptions(workspaceID string, entity string, value string) *CreateValueOptions
NewCreateValueOptions : Instantiate CreateValueOptions
func (*AssistantV1) NewCreateWorkspaceOptions ¶
func (assistant *AssistantV1) NewCreateWorkspaceOptions() *CreateWorkspaceOptions
NewCreateWorkspaceOptions : Instantiate CreateWorkspaceOptions
func (*AssistantV1) NewDeleteCounterexampleOptions ¶
func (assistant *AssistantV1) NewDeleteCounterexampleOptions(workspaceID string, text string) *DeleteCounterexampleOptions
NewDeleteCounterexampleOptions : Instantiate DeleteCounterexampleOptions
func (*AssistantV1) NewDeleteDialogNodeOptions ¶
func (assistant *AssistantV1) NewDeleteDialogNodeOptions(workspaceID string, dialogNode string) *DeleteDialogNodeOptions
NewDeleteDialogNodeOptions : Instantiate DeleteDialogNodeOptions
func (*AssistantV1) NewDeleteEntityOptions ¶
func (assistant *AssistantV1) NewDeleteEntityOptions(workspaceID string, entity string) *DeleteEntityOptions
NewDeleteEntityOptions : Instantiate DeleteEntityOptions
func (*AssistantV1) NewDeleteExampleOptions ¶
func (assistant *AssistantV1) NewDeleteExampleOptions(workspaceID string, intent string, text string) *DeleteExampleOptions
NewDeleteExampleOptions : Instantiate DeleteExampleOptions
func (*AssistantV1) NewDeleteIntentOptions ¶
func (assistant *AssistantV1) NewDeleteIntentOptions(workspaceID string, intent string) *DeleteIntentOptions
NewDeleteIntentOptions : Instantiate DeleteIntentOptions
func (*AssistantV1) NewDeleteSynonymOptions ¶
func (assistant *AssistantV1) NewDeleteSynonymOptions(workspaceID string, entity string, value string, synonym string) *DeleteSynonymOptions
NewDeleteSynonymOptions : Instantiate DeleteSynonymOptions
func (*AssistantV1) NewDeleteUserDataOptions ¶
func (assistant *AssistantV1) NewDeleteUserDataOptions(customerID string) *DeleteUserDataOptions
NewDeleteUserDataOptions : Instantiate DeleteUserDataOptions
func (*AssistantV1) NewDeleteValueOptions ¶
func (assistant *AssistantV1) NewDeleteValueOptions(workspaceID string, entity string, value string) *DeleteValueOptions
NewDeleteValueOptions : Instantiate DeleteValueOptions
func (*AssistantV1) NewDeleteWorkspaceOptions ¶
func (assistant *AssistantV1) NewDeleteWorkspaceOptions(workspaceID string) *DeleteWorkspaceOptions
NewDeleteWorkspaceOptions : Instantiate DeleteWorkspaceOptions
func (*AssistantV1) NewGetCounterexampleOptions ¶
func (assistant *AssistantV1) NewGetCounterexampleOptions(workspaceID string, text string) *GetCounterexampleOptions
NewGetCounterexampleOptions : Instantiate GetCounterexampleOptions
func (*AssistantV1) NewGetDialogNodeOptions ¶
func (assistant *AssistantV1) NewGetDialogNodeOptions(workspaceID string, dialogNode string) *GetDialogNodeOptions
NewGetDialogNodeOptions : Instantiate GetDialogNodeOptions
func (*AssistantV1) NewGetEntityOptions ¶
func (assistant *AssistantV1) NewGetEntityOptions(workspaceID string, entity string) *GetEntityOptions
NewGetEntityOptions : Instantiate GetEntityOptions
func (*AssistantV1) NewGetExampleOptions ¶
func (assistant *AssistantV1) NewGetExampleOptions(workspaceID string, intent string, text string) *GetExampleOptions
NewGetExampleOptions : Instantiate GetExampleOptions
func (*AssistantV1) NewGetIntentOptions ¶
func (assistant *AssistantV1) NewGetIntentOptions(workspaceID string, intent string) *GetIntentOptions
NewGetIntentOptions : Instantiate GetIntentOptions
func (*AssistantV1) NewGetSynonymOptions ¶
func (assistant *AssistantV1) NewGetSynonymOptions(workspaceID string, entity string, value string, synonym string) *GetSynonymOptions
NewGetSynonymOptions : Instantiate GetSynonymOptions
func (*AssistantV1) NewGetValueOptions ¶
func (assistant *AssistantV1) NewGetValueOptions(workspaceID string, entity string, value string) *GetValueOptions
NewGetValueOptions : Instantiate GetValueOptions
func (*AssistantV1) NewGetWorkspaceOptions ¶
func (assistant *AssistantV1) NewGetWorkspaceOptions(workspaceID string) *GetWorkspaceOptions
NewGetWorkspaceOptions : Instantiate GetWorkspaceOptions
func (*AssistantV1) NewListAllLogsOptions ¶
func (assistant *AssistantV1) NewListAllLogsOptions(filter string) *ListAllLogsOptions
NewListAllLogsOptions : Instantiate ListAllLogsOptions
func (*AssistantV1) NewListCounterexamplesOptions ¶
func (assistant *AssistantV1) NewListCounterexamplesOptions(workspaceID string) *ListCounterexamplesOptions
NewListCounterexamplesOptions : Instantiate ListCounterexamplesOptions
func (*AssistantV1) NewListDialogNodesOptions ¶
func (assistant *AssistantV1) NewListDialogNodesOptions(workspaceID string) *ListDialogNodesOptions
NewListDialogNodesOptions : Instantiate ListDialogNodesOptions
func (*AssistantV1) NewListEntitiesOptions ¶
func (assistant *AssistantV1) NewListEntitiesOptions(workspaceID string) *ListEntitiesOptions
NewListEntitiesOptions : Instantiate ListEntitiesOptions
func (*AssistantV1) NewListExamplesOptions ¶
func (assistant *AssistantV1) NewListExamplesOptions(workspaceID string, intent string) *ListExamplesOptions
NewListExamplesOptions : Instantiate ListExamplesOptions
func (*AssistantV1) NewListIntentsOptions ¶
func (assistant *AssistantV1) NewListIntentsOptions(workspaceID string) *ListIntentsOptions
NewListIntentsOptions : Instantiate ListIntentsOptions
func (*AssistantV1) NewListLogsOptions ¶
func (assistant *AssistantV1) NewListLogsOptions(workspaceID string) *ListLogsOptions
NewListLogsOptions : Instantiate ListLogsOptions
func (*AssistantV1) NewListMentionsOptions ¶
func (assistant *AssistantV1) NewListMentionsOptions(workspaceID string, entity string) *ListMentionsOptions
NewListMentionsOptions : Instantiate ListMentionsOptions
func (*AssistantV1) NewListSynonymsOptions ¶
func (assistant *AssistantV1) NewListSynonymsOptions(workspaceID string, entity string, value string) *ListSynonymsOptions
NewListSynonymsOptions : Instantiate ListSynonymsOptions
func (*AssistantV1) NewListValuesOptions ¶
func (assistant *AssistantV1) NewListValuesOptions(workspaceID string, entity string) *ListValuesOptions
NewListValuesOptions : Instantiate ListValuesOptions
func (*AssistantV1) NewListWorkspacesOptions ¶
func (assistant *AssistantV1) NewListWorkspacesOptions() *ListWorkspacesOptions
NewListWorkspacesOptions : Instantiate ListWorkspacesOptions
func (*AssistantV1) NewMessageOptions ¶
func (assistant *AssistantV1) NewMessageOptions(workspaceID string) *MessageOptions
NewMessageOptions : Instantiate MessageOptions
func (*AssistantV1) NewUpdateCounterexampleOptions ¶
func (assistant *AssistantV1) NewUpdateCounterexampleOptions(workspaceID string, text string) *UpdateCounterexampleOptions
NewUpdateCounterexampleOptions : Instantiate UpdateCounterexampleOptions
func (*AssistantV1) NewUpdateDialogNodeOptions ¶
func (assistant *AssistantV1) NewUpdateDialogNodeOptions(workspaceID string, dialogNode string) *UpdateDialogNodeOptions
NewUpdateDialogNodeOptions : Instantiate UpdateDialogNodeOptions
func (*AssistantV1) NewUpdateEntityOptions ¶
func (assistant *AssistantV1) NewUpdateEntityOptions(workspaceID string, entity string) *UpdateEntityOptions
NewUpdateEntityOptions : Instantiate UpdateEntityOptions
func (*AssistantV1) NewUpdateExampleOptions ¶
func (assistant *AssistantV1) NewUpdateExampleOptions(workspaceID string, intent string, text string) *UpdateExampleOptions
NewUpdateExampleOptions : Instantiate UpdateExampleOptions
func (*AssistantV1) NewUpdateIntentOptions ¶
func (assistant *AssistantV1) NewUpdateIntentOptions(workspaceID string, intent string) *UpdateIntentOptions
NewUpdateIntentOptions : Instantiate UpdateIntentOptions
func (*AssistantV1) NewUpdateSynonymOptions ¶
func (assistant *AssistantV1) NewUpdateSynonymOptions(workspaceID string, entity string, value string, synonym string) *UpdateSynonymOptions
NewUpdateSynonymOptions : Instantiate UpdateSynonymOptions
func (*AssistantV1) NewUpdateValueOptions ¶
func (assistant *AssistantV1) NewUpdateValueOptions(workspaceID string, entity string, value string) *UpdateValueOptions
NewUpdateValueOptions : Instantiate UpdateValueOptions
func (*AssistantV1) NewUpdateWorkspaceOptions ¶
func (assistant *AssistantV1) NewUpdateWorkspaceOptions(workspaceID string) *UpdateWorkspaceOptions
NewUpdateWorkspaceOptions : Instantiate UpdateWorkspaceOptions
func (*AssistantV1) UpdateCounterexample ¶
func (assistant *AssistantV1) UpdateCounterexample(updateCounterexampleOptions *UpdateCounterexampleOptions) (*core.DetailedResponse, error)
UpdateCounterexample : Update counterexample Update the text of a counterexample. Counterexamples are examples that have been marked as irrelevant input.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateDialogNode ¶
func (assistant *AssistantV1) UpdateDialogNode(updateDialogNodeOptions *UpdateDialogNodeOptions) (*core.DetailedResponse, error)
UpdateDialogNode : Update dialog node Update an existing dialog node with new or modified data.
This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateEntity ¶
func (assistant *AssistantV1) UpdateEntity(updateEntityOptions *UpdateEntityOptions) (*core.DetailedResponse, error)
UpdateEntity : Update entity Update an existing entity with new or modified data. You must provide component objects defining the content of the updated entity.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateExample ¶
func (assistant *AssistantV1) UpdateExample(updateExampleOptions *UpdateExampleOptions) (*core.DetailedResponse, error)
UpdateExample : Update user input example Update the text of a user input example.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateIntent ¶
func (assistant *AssistantV1) UpdateIntent(updateIntentOptions *UpdateIntentOptions) (*core.DetailedResponse, error)
UpdateIntent : Update intent Update an existing intent with new or modified data. You must provide component objects defining the content of the updated intent.
This operation is limited to 2000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateSynonym ¶
func (assistant *AssistantV1) UpdateSynonym(updateSynonymOptions *UpdateSynonymOptions) (*core.DetailedResponse, error)
UpdateSynonym : Update entity value synonym Update an existing entity value synonym with new text.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateValue ¶
func (assistant *AssistantV1) UpdateValue(updateValueOptions *UpdateValueOptions) (*core.DetailedResponse, error)
UpdateValue : Update entity value Update an existing entity value with new or modified data. You must provide component objects defining the content of the updated entity value.
This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
func (*AssistantV1) UpdateWorkspace ¶
func (assistant *AssistantV1) UpdateWorkspace(updateWorkspaceOptions *UpdateWorkspaceOptions) (*core.DetailedResponse, error)
UpdateWorkspace : Update workspace Update an existing workspace with new or modified data. You must provide component objects defining the content of the updated workspace.
This operation is limited to 30 request per 30 minutes. For more information, see **Rate limiting**.
type AssistantV1Options ¶
type AssistantV1Options struct {
Version string
URL string
Username string
Password string
IAMApiKey string
IAMAccessToken string
IAMURL string
}
AssistantV1Options : Service options
type CaptureGroup ¶
type CaptureGroup struct {
// A recognized capture group for the entity.
Group *string `json:"group" validate:"required"`
// Zero-based character offsets that indicate where the entity value begins and ends in the input text.
Location []int64 `json:"location,omitempty"`
}
CaptureGroup : CaptureGroup struct
type Context ¶
type Context struct {
// The unique identifier of the conversation.
ConversationID *string `json:"conversation_id,omitempty"`
// For internal use only.
System *SystemResponse `json:"system,omitempty"`
}
Context : State information for the conversation. To maintain state, include the context from the previous response.
type Counterexample ¶
type Counterexample struct {
// The text of the counterexample.
Text *string `json:"text" validate:"required"`
// The timestamp for creation of the counterexample.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the counterexample.
Updated *strfmt.DateTime `json:"updated,omitempty"`
}
Counterexample : Counterexample struct
type CounterexampleCollection ¶
type CounterexampleCollection struct {
// An array of objects describing the examples marked as irrelevant input.
Counterexamples []Counterexample `json:"counterexamples" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
CounterexampleCollection : CounterexampleCollection struct
type CreateCounterexample ¶
type CreateCounterexample struct {
// The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters
// - It cannot consist of only whitespace characters
// - It must be no longer than 1024 characters.
Text *string `json:"text" validate:"required"`
}
CreateCounterexample : CreateCounterexample struct
type CreateCounterexampleOptions ¶
type CreateCounterexampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters
// - It cannot consist of only whitespace characters
// - It must be no longer than 1024 characters.
Text *string `json:"text" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateCounterexampleOptions : The createCounterexample options.
func (*CreateCounterexampleOptions) SetHeaders ¶
func (options *CreateCounterexampleOptions) SetHeaders(param map[string]string) *CreateCounterexampleOptions
SetHeaders : Allow user to set Headers
func (*CreateCounterexampleOptions) SetText ¶
func (options *CreateCounterexampleOptions) SetText(text string) *CreateCounterexampleOptions
SetText : Allow user to set Text
func (*CreateCounterexampleOptions) SetWorkspaceID ¶
func (options *CreateCounterexampleOptions) SetWorkspaceID(workspaceID string) *CreateCounterexampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateDialogNode ¶
type CreateDialogNode struct {
// The dialog node ID. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 1024 characters.
DialogNode *string `json:"dialog_node" validate:"required"`
// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters, and it
// must be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
// characters, and it must be no longer than 2048 characters.
Conditions *string `json:"conditions,omitempty"`
// The ID of the parent dialog node.
Parent *string `json:"parent,omitempty"`
// The ID of the previous dialog node.
PreviousSibling *string `json:"previous_sibling,omitempty"`
// The output of the dialog node. For more information about how to specify dialog node output, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
Output *DialogNodeOutput `json:"output,omitempty"`
// The context for the dialog node.
Context interface{} `json:"context,omitempty"`
// The metadata for the dialog node.
Metadata interface{} `json:"metadata,omitempty"`
// The next step to be executed in dialog processing.
NextStep *DialogNodeNextStep `json:"next_step,omitempty"`
// An array of objects describing any actions to be invoked by the dialog node.
Actions []DialogNodeAction `json:"actions,omitempty"`
// The alias used to identify the dialog node. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 64 characters.
Title *string `json:"title,omitempty"`
// How the dialog node is processed.
NodeType *string `json:"type,omitempty"`
// How an `event_handler` node is processed.
EventName *string `json:"event_name,omitempty"`
// The location in the dialog context where output is stored.
Variable *string `json:"variable,omitempty"`
// Whether this top-level dialog node can be digressed into.
DigressIn *string `json:"digress_in,omitempty"`
// Whether this dialog node can be returned to after a digression.
DigressOut *string `json:"digress_out,omitempty"`
// Whether the user can digress to top-level nodes while filling out slots.
DigressOutSlots *string `json:"digress_out_slots,omitempty"`
// A label that can be displayed externally to describe the purpose of the node to users. This string must be no longer
// than 512 characters.
UserLabel *string `json:"user_label,omitempty"`
}
CreateDialogNode : CreateDialogNode struct
type CreateDialogNodeOptions ¶
type CreateDialogNodeOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The dialog node ID. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 1024 characters.
DialogNode *string `json:"dialog_node" validate:"required"`
// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters, and it
// must be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
// characters, and it must be no longer than 2048 characters.
Conditions *string `json:"conditions,omitempty"`
// The ID of the parent dialog node.
Parent *string `json:"parent,omitempty"`
// The ID of the previous dialog node.
PreviousSibling *string `json:"previous_sibling,omitempty"`
// The output of the dialog node. For more information about how to specify dialog node output, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
Output *DialogNodeOutput `json:"output,omitempty"`
// The context for the dialog node.
Context interface{} `json:"context,omitempty"`
// The metadata for the dialog node.
Metadata interface{} `json:"metadata,omitempty"`
// The next step to be executed in dialog processing.
NextStep *DialogNodeNextStep `json:"next_step,omitempty"`
// An array of objects describing any actions to be invoked by the dialog node.
Actions []DialogNodeAction `json:"actions,omitempty"`
// The alias used to identify the dialog node. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 64 characters.
Title *string `json:"title,omitempty"`
// How the dialog node is processed.
NodeType *string `json:"type,omitempty"`
// How an `event_handler` node is processed.
EventName *string `json:"event_name,omitempty"`
// The location in the dialog context where output is stored.
Variable *string `json:"variable,omitempty"`
// Whether this top-level dialog node can be digressed into.
DigressIn *string `json:"digress_in,omitempty"`
// Whether this dialog node can be returned to after a digression.
DigressOut *string `json:"digress_out,omitempty"`
// Whether the user can digress to top-level nodes while filling out slots.
DigressOutSlots *string `json:"digress_out_slots,omitempty"`
// A label that can be displayed externally to describe the purpose of the node to users. This string must be no longer
// than 512 characters.
UserLabel *string `json:"user_label,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateDialogNodeOptions : The createDialogNode options.
func (*CreateDialogNodeOptions) SetActions ¶
func (options *CreateDialogNodeOptions) SetActions(actions []DialogNodeAction) *CreateDialogNodeOptions
SetActions : Allow user to set Actions
func (*CreateDialogNodeOptions) SetConditions ¶
func (options *CreateDialogNodeOptions) SetConditions(conditions string) *CreateDialogNodeOptions
SetConditions : Allow user to set Conditions
func (*CreateDialogNodeOptions) SetContext ¶
func (options *CreateDialogNodeOptions) SetContext(context interface{}) *CreateDialogNodeOptions
SetContext : Allow user to set Context
func (*CreateDialogNodeOptions) SetDescription ¶
func (options *CreateDialogNodeOptions) SetDescription(description string) *CreateDialogNodeOptions
SetDescription : Allow user to set Description
func (*CreateDialogNodeOptions) SetDialogNode ¶
func (options *CreateDialogNodeOptions) SetDialogNode(dialogNode string) *CreateDialogNodeOptions
SetDialogNode : Allow user to set DialogNode
func (*CreateDialogNodeOptions) SetDigressIn ¶
func (options *CreateDialogNodeOptions) SetDigressIn(digressIn string) *CreateDialogNodeOptions
SetDigressIn : Allow user to set DigressIn
func (*CreateDialogNodeOptions) SetDigressOut ¶
func (options *CreateDialogNodeOptions) SetDigressOut(digressOut string) *CreateDialogNodeOptions
SetDigressOut : Allow user to set DigressOut
func (*CreateDialogNodeOptions) SetDigressOutSlots ¶
func (options *CreateDialogNodeOptions) SetDigressOutSlots(digressOutSlots string) *CreateDialogNodeOptions
SetDigressOutSlots : Allow user to set DigressOutSlots
func (*CreateDialogNodeOptions) SetEventName ¶
func (options *CreateDialogNodeOptions) SetEventName(eventName string) *CreateDialogNodeOptions
SetEventName : Allow user to set EventName
func (*CreateDialogNodeOptions) SetHeaders ¶
func (options *CreateDialogNodeOptions) SetHeaders(param map[string]string) *CreateDialogNodeOptions
SetHeaders : Allow user to set Headers
func (*CreateDialogNodeOptions) SetMetadata ¶
func (options *CreateDialogNodeOptions) SetMetadata(metadata interface{}) *CreateDialogNodeOptions
SetMetadata : Allow user to set Metadata
func (*CreateDialogNodeOptions) SetNextStep ¶
func (options *CreateDialogNodeOptions) SetNextStep(nextStep *DialogNodeNextStep) *CreateDialogNodeOptions
SetNextStep : Allow user to set NextStep
func (*CreateDialogNodeOptions) SetNodeType ¶
func (options *CreateDialogNodeOptions) SetNodeType(nodeType string) *CreateDialogNodeOptions
SetNodeType : Allow user to set NodeType
func (*CreateDialogNodeOptions) SetOutput ¶
func (options *CreateDialogNodeOptions) SetOutput(output *DialogNodeOutput) *CreateDialogNodeOptions
SetOutput : Allow user to set Output
func (*CreateDialogNodeOptions) SetParent ¶
func (options *CreateDialogNodeOptions) SetParent(parent string) *CreateDialogNodeOptions
SetParent : Allow user to set Parent
func (*CreateDialogNodeOptions) SetPreviousSibling ¶
func (options *CreateDialogNodeOptions) SetPreviousSibling(previousSibling string) *CreateDialogNodeOptions
SetPreviousSibling : Allow user to set PreviousSibling
func (*CreateDialogNodeOptions) SetTitle ¶
func (options *CreateDialogNodeOptions) SetTitle(title string) *CreateDialogNodeOptions
SetTitle : Allow user to set Title
func (*CreateDialogNodeOptions) SetUserLabel ¶
func (options *CreateDialogNodeOptions) SetUserLabel(userLabel string) *CreateDialogNodeOptions
SetUserLabel : Allow user to set UserLabel
func (*CreateDialogNodeOptions) SetVariable ¶
func (options *CreateDialogNodeOptions) SetVariable(variable string) *CreateDialogNodeOptions
SetVariable : Allow user to set Variable
func (*CreateDialogNodeOptions) SetWorkspaceID ¶
func (options *CreateDialogNodeOptions) SetWorkspaceID(workspaceID string) *CreateDialogNodeOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateEntity ¶
type CreateEntity struct {
// The name of the entity. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 64 characters.
Entity *string `json:"entity" validate:"required"`
// The description of the entity. This string cannot contain carriage return, newline, or tab characters, and it must
// be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// Any metadata related to the value.
Metadata interface{} `json:"metadata,omitempty"`
// An array of objects describing the entity values.
Values []CreateValue `json:"values,omitempty"`
// Whether to use fuzzy matching for the entity.
FuzzyMatch *bool `json:"fuzzy_match,omitempty"`
}
CreateEntity : CreateEntity struct
type CreateEntityOptions ¶
type CreateEntityOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 64 characters.
Entity *string `json:"entity" validate:"required"`
// The description of the entity. This string cannot contain carriage return, newline, or tab characters, and it must
// be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// Any metadata related to the value.
Metadata interface{} `json:"metadata,omitempty"`
// An array of objects describing the entity values.
Values []CreateValue `json:"values,omitempty"`
// Whether to use fuzzy matching for the entity.
FuzzyMatch *bool `json:"fuzzy_match,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateEntityOptions : The createEntity options.
func (*CreateEntityOptions) SetDescription ¶
func (options *CreateEntityOptions) SetDescription(description string) *CreateEntityOptions
SetDescription : Allow user to set Description
func (*CreateEntityOptions) SetEntity ¶
func (options *CreateEntityOptions) SetEntity(entity string) *CreateEntityOptions
SetEntity : Allow user to set Entity
func (*CreateEntityOptions) SetFuzzyMatch ¶
func (options *CreateEntityOptions) SetFuzzyMatch(fuzzyMatch bool) *CreateEntityOptions
SetFuzzyMatch : Allow user to set FuzzyMatch
func (*CreateEntityOptions) SetHeaders ¶
func (options *CreateEntityOptions) SetHeaders(param map[string]string) *CreateEntityOptions
SetHeaders : Allow user to set Headers
func (*CreateEntityOptions) SetMetadata ¶
func (options *CreateEntityOptions) SetMetadata(metadata interface{}) *CreateEntityOptions
SetMetadata : Allow user to set Metadata
func (*CreateEntityOptions) SetValues ¶
func (options *CreateEntityOptions) SetValues(values []CreateValue) *CreateEntityOptions
SetValues : Allow user to set Values
func (*CreateEntityOptions) SetWorkspaceID ¶
func (options *CreateEntityOptions) SetWorkspaceID(workspaceID string) *CreateEntityOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateExample ¶
type CreateExample struct {
// The text of a user input example. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 1024 characters.
Text *string `json:"text" validate:"required"`
// An array of contextual entity mentions.
Mentions []Mentions `json:"mentions,omitempty"`
}
CreateExample : CreateExample struct
type CreateExampleOptions ¶
type CreateExampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The text of a user input example. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 1024 characters.
Text *string `json:"text" validate:"required"`
// An array of contextual entity mentions.
Mentions []Mentions `json:"mentions,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateExampleOptions : The createExample options.
func (*CreateExampleOptions) SetHeaders ¶
func (options *CreateExampleOptions) SetHeaders(param map[string]string) *CreateExampleOptions
SetHeaders : Allow user to set Headers
func (*CreateExampleOptions) SetIntent ¶
func (options *CreateExampleOptions) SetIntent(intent string) *CreateExampleOptions
SetIntent : Allow user to set Intent
func (*CreateExampleOptions) SetMentions ¶
func (options *CreateExampleOptions) SetMentions(mentions []Mentions) *CreateExampleOptions
SetMentions : Allow user to set Mentions
func (*CreateExampleOptions) SetText ¶
func (options *CreateExampleOptions) SetText(text string) *CreateExampleOptions
SetText : Allow user to set Text
func (*CreateExampleOptions) SetWorkspaceID ¶
func (options *CreateExampleOptions) SetWorkspaceID(workspaceID string) *CreateExampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateIntent ¶
type CreateIntent struct {
// The name of the intent. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 128 characters.
Intent *string `json:"intent" validate:"required"`
// The description of the intent. This string cannot contain carriage return, newline, or tab characters, and it must
// be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// An array of user input examples for the intent.
Examples []CreateExample `json:"examples,omitempty"`
}
CreateIntent : CreateIntent struct
type CreateIntentOptions ¶
type CreateIntentOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the intent. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 128 characters.
Intent *string `json:"intent" validate:"required"`
// The description of the intent. This string cannot contain carriage return, newline, or tab characters, and it must
// be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// An array of user input examples for the intent.
Examples []CreateExample `json:"examples,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateIntentOptions : The createIntent options.
func (*CreateIntentOptions) SetDescription ¶
func (options *CreateIntentOptions) SetDescription(description string) *CreateIntentOptions
SetDescription : Allow user to set Description
func (*CreateIntentOptions) SetExamples ¶
func (options *CreateIntentOptions) SetExamples(examples []CreateExample) *CreateIntentOptions
SetExamples : Allow user to set Examples
func (*CreateIntentOptions) SetHeaders ¶
func (options *CreateIntentOptions) SetHeaders(param map[string]string) *CreateIntentOptions
SetHeaders : Allow user to set Headers
func (*CreateIntentOptions) SetIntent ¶
func (options *CreateIntentOptions) SetIntent(intent string) *CreateIntentOptions
SetIntent : Allow user to set Intent
func (*CreateIntentOptions) SetWorkspaceID ¶
func (options *CreateIntentOptions) SetWorkspaceID(workspaceID string) *CreateIntentOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateSynonymOptions ¶
type CreateSynonymOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// The text of the synonym. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
Synonym *string `json:"synonym" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateSynonymOptions : The createSynonym options.
func (*CreateSynonymOptions) SetEntity ¶
func (options *CreateSynonymOptions) SetEntity(entity string) *CreateSynonymOptions
SetEntity : Allow user to set Entity
func (*CreateSynonymOptions) SetHeaders ¶
func (options *CreateSynonymOptions) SetHeaders(param map[string]string) *CreateSynonymOptions
SetHeaders : Allow user to set Headers
func (*CreateSynonymOptions) SetSynonym ¶
func (options *CreateSynonymOptions) SetSynonym(synonym string) *CreateSynonymOptions
SetSynonym : Allow user to set Synonym
func (*CreateSynonymOptions) SetValue ¶
func (options *CreateSynonymOptions) SetValue(value string) *CreateSynonymOptions
SetValue : Allow user to set Value
func (*CreateSynonymOptions) SetWorkspaceID ¶
func (options *CreateSynonymOptions) SetWorkspaceID(workspaceID string) *CreateSynonymOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateValue ¶
type CreateValue struct {
// The text of the entity value. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
Value *string `json:"value" validate:"required"`
// Any metadata related to the entity value.
Metadata interface{} `json:"metadata,omitempty"`
// An array containing any synonyms for the entity value. You can provide either synonyms or patterns (as indicated by
// **type**), but not both. A synonym must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
Synonyms []string `json:"synonyms,omitempty"`
// An array of patterns for the entity value. You can provide either synonyms or patterns (as indicated by **type**),
// but not both. A pattern is a regular expression no longer than 512 characters. For more information about how to
// specify a pattern, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
Patterns []string `json:"patterns,omitempty"`
// Specifies the type of value.
ValueType *string `json:"type,omitempty"`
}
CreateValue : CreateValue struct
type CreateValueOptions ¶
type CreateValueOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
Value *string `json:"value" validate:"required"`
// Any metadata related to the entity value.
Metadata interface{} `json:"metadata,omitempty"`
// An array containing any synonyms for the entity value. You can provide either synonyms or patterns (as indicated by
// **type**), but not both. A synonym must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
Synonyms []string `json:"synonyms,omitempty"`
// An array of patterns for the entity value. You can provide either synonyms or patterns (as indicated by **type**),
// but not both. A pattern is a regular expression no longer than 512 characters. For more information about how to
// specify a pattern, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
Patterns []string `json:"patterns,omitempty"`
// Specifies the type of value.
ValueType *string `json:"type,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateValueOptions : The createValue options.
func (*CreateValueOptions) SetEntity ¶
func (options *CreateValueOptions) SetEntity(entity string) *CreateValueOptions
SetEntity : Allow user to set Entity
func (*CreateValueOptions) SetHeaders ¶
func (options *CreateValueOptions) SetHeaders(param map[string]string) *CreateValueOptions
SetHeaders : Allow user to set Headers
func (*CreateValueOptions) SetMetadata ¶
func (options *CreateValueOptions) SetMetadata(metadata interface{}) *CreateValueOptions
SetMetadata : Allow user to set Metadata
func (*CreateValueOptions) SetPatterns ¶
func (options *CreateValueOptions) SetPatterns(patterns []string) *CreateValueOptions
SetPatterns : Allow user to set Patterns
func (*CreateValueOptions) SetSynonyms ¶
func (options *CreateValueOptions) SetSynonyms(synonyms []string) *CreateValueOptions
SetSynonyms : Allow user to set Synonyms
func (*CreateValueOptions) SetValue ¶
func (options *CreateValueOptions) SetValue(value string) *CreateValueOptions
SetValue : Allow user to set Value
func (*CreateValueOptions) SetValueType ¶
func (options *CreateValueOptions) SetValueType(valueType string) *CreateValueOptions
SetValueType : Allow user to set ValueType
func (*CreateValueOptions) SetWorkspaceID ¶
func (options *CreateValueOptions) SetWorkspaceID(workspaceID string) *CreateValueOptions
SetWorkspaceID : Allow user to set WorkspaceID
type CreateWorkspaceOptions ¶
type CreateWorkspaceOptions struct {
// The name of the workspace. This string cannot contain carriage return, newline, or tab characters, and it must be no
// longer than 64 characters.
Name *string `json:"name,omitempty"`
// The description of the workspace. This string cannot contain carriage return, newline, or tab characters, and it
// must be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// The language of the workspace.
Language *string `json:"language,omitempty"`
// An array of objects defining the intents for the workspace.
Intents []CreateIntent `json:"intents,omitempty"`
// An array of objects defining the entities for the workspace.
Entities []CreateEntity `json:"entities,omitempty"`
// An array of objects defining the nodes in the workspace dialog.
DialogNodes []CreateDialogNode `json:"dialog_nodes,omitempty"`
// An array of objects defining input examples that have been marked as irrelevant input.
Counterexamples []CreateCounterexample `json:"counterexamples,omitempty"`
// Any metadata related to the workspace.
Metadata interface{} `json:"metadata,omitempty"`
// Whether training data from the workspace can be used by IBM for general service improvements. `true` indicates that
// workspace training data is not to be used.
LearningOptOut *bool `json:"learning_opt_out,omitempty"`
// Global settings for the workspace.
SystemSettings *WorkspaceSystemSettings `json:"system_settings,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
CreateWorkspaceOptions : The createWorkspace options.
func (*CreateWorkspaceOptions) SetCounterexamples ¶
func (options *CreateWorkspaceOptions) SetCounterexamples(counterexamples []CreateCounterexample) *CreateWorkspaceOptions
SetCounterexamples : Allow user to set Counterexamples
func (*CreateWorkspaceOptions) SetDescription ¶
func (options *CreateWorkspaceOptions) SetDescription(description string) *CreateWorkspaceOptions
SetDescription : Allow user to set Description
func (*CreateWorkspaceOptions) SetDialogNodes ¶
func (options *CreateWorkspaceOptions) SetDialogNodes(dialogNodes []CreateDialogNode) *CreateWorkspaceOptions
SetDialogNodes : Allow user to set DialogNodes
func (*CreateWorkspaceOptions) SetEntities ¶
func (options *CreateWorkspaceOptions) SetEntities(entities []CreateEntity) *CreateWorkspaceOptions
SetEntities : Allow user to set Entities
func (*CreateWorkspaceOptions) SetHeaders ¶
func (options *CreateWorkspaceOptions) SetHeaders(param map[string]string) *CreateWorkspaceOptions
SetHeaders : Allow user to set Headers
func (*CreateWorkspaceOptions) SetIntents ¶
func (options *CreateWorkspaceOptions) SetIntents(intents []CreateIntent) *CreateWorkspaceOptions
SetIntents : Allow user to set Intents
func (*CreateWorkspaceOptions) SetLanguage ¶
func (options *CreateWorkspaceOptions) SetLanguage(language string) *CreateWorkspaceOptions
SetLanguage : Allow user to set Language
func (*CreateWorkspaceOptions) SetLearningOptOut ¶
func (options *CreateWorkspaceOptions) SetLearningOptOut(learningOptOut bool) *CreateWorkspaceOptions
SetLearningOptOut : Allow user to set LearningOptOut
func (*CreateWorkspaceOptions) SetMetadata ¶
func (options *CreateWorkspaceOptions) SetMetadata(metadata interface{}) *CreateWorkspaceOptions
SetMetadata : Allow user to set Metadata
func (*CreateWorkspaceOptions) SetName ¶
func (options *CreateWorkspaceOptions) SetName(name string) *CreateWorkspaceOptions
SetName : Allow user to set Name
func (*CreateWorkspaceOptions) SetSystemSettings ¶
func (options *CreateWorkspaceOptions) SetSystemSettings(systemSettings *WorkspaceSystemSettings) *CreateWorkspaceOptions
SetSystemSettings : Allow user to set SystemSettings
type DeleteCounterexampleOptions ¶
type DeleteCounterexampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The text of a user input counterexample (for example, `What are you wearing?`).
Text *string `json:"text" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteCounterexampleOptions : The deleteCounterexample options.
func (*DeleteCounterexampleOptions) SetHeaders ¶
func (options *DeleteCounterexampleOptions) SetHeaders(param map[string]string) *DeleteCounterexampleOptions
SetHeaders : Allow user to set Headers
func (*DeleteCounterexampleOptions) SetText ¶
func (options *DeleteCounterexampleOptions) SetText(text string) *DeleteCounterexampleOptions
SetText : Allow user to set Text
func (*DeleteCounterexampleOptions) SetWorkspaceID ¶
func (options *DeleteCounterexampleOptions) SetWorkspaceID(workspaceID string) *DeleteCounterexampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteDialogNodeOptions ¶
type DeleteDialogNodeOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The dialog node ID (for example, `get_order`).
DialogNode *string `json:"dialog_node" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteDialogNodeOptions : The deleteDialogNode options.
func (*DeleteDialogNodeOptions) SetDialogNode ¶
func (options *DeleteDialogNodeOptions) SetDialogNode(dialogNode string) *DeleteDialogNodeOptions
SetDialogNode : Allow user to set DialogNode
func (*DeleteDialogNodeOptions) SetHeaders ¶
func (options *DeleteDialogNodeOptions) SetHeaders(param map[string]string) *DeleteDialogNodeOptions
SetHeaders : Allow user to set Headers
func (*DeleteDialogNodeOptions) SetWorkspaceID ¶
func (options *DeleteDialogNodeOptions) SetWorkspaceID(workspaceID string) *DeleteDialogNodeOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteEntityOptions ¶
type DeleteEntityOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteEntityOptions : The deleteEntity options.
func (*DeleteEntityOptions) SetEntity ¶
func (options *DeleteEntityOptions) SetEntity(entity string) *DeleteEntityOptions
SetEntity : Allow user to set Entity
func (*DeleteEntityOptions) SetHeaders ¶
func (options *DeleteEntityOptions) SetHeaders(param map[string]string) *DeleteEntityOptions
SetHeaders : Allow user to set Headers
func (*DeleteEntityOptions) SetWorkspaceID ¶
func (options *DeleteEntityOptions) SetWorkspaceID(workspaceID string) *DeleteEntityOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteExampleOptions ¶
type DeleteExampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The text of the user input example.
Text *string `json:"text" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteExampleOptions : The deleteExample options.
func (*DeleteExampleOptions) SetHeaders ¶
func (options *DeleteExampleOptions) SetHeaders(param map[string]string) *DeleteExampleOptions
SetHeaders : Allow user to set Headers
func (*DeleteExampleOptions) SetIntent ¶
func (options *DeleteExampleOptions) SetIntent(intent string) *DeleteExampleOptions
SetIntent : Allow user to set Intent
func (*DeleteExampleOptions) SetText ¶
func (options *DeleteExampleOptions) SetText(text string) *DeleteExampleOptions
SetText : Allow user to set Text
func (*DeleteExampleOptions) SetWorkspaceID ¶
func (options *DeleteExampleOptions) SetWorkspaceID(workspaceID string) *DeleteExampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteIntentOptions ¶
type DeleteIntentOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteIntentOptions : The deleteIntent options.
func (*DeleteIntentOptions) SetHeaders ¶
func (options *DeleteIntentOptions) SetHeaders(param map[string]string) *DeleteIntentOptions
SetHeaders : Allow user to set Headers
func (*DeleteIntentOptions) SetIntent ¶
func (options *DeleteIntentOptions) SetIntent(intent string) *DeleteIntentOptions
SetIntent : Allow user to set Intent
func (*DeleteIntentOptions) SetWorkspaceID ¶
func (options *DeleteIntentOptions) SetWorkspaceID(workspaceID string) *DeleteIntentOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteSynonymOptions ¶
type DeleteSynonymOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// The text of the synonym.
Synonym *string `json:"synonym" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteSynonymOptions : The deleteSynonym options.
func (*DeleteSynonymOptions) SetEntity ¶
func (options *DeleteSynonymOptions) SetEntity(entity string) *DeleteSynonymOptions
SetEntity : Allow user to set Entity
func (*DeleteSynonymOptions) SetHeaders ¶
func (options *DeleteSynonymOptions) SetHeaders(param map[string]string) *DeleteSynonymOptions
SetHeaders : Allow user to set Headers
func (*DeleteSynonymOptions) SetSynonym ¶
func (options *DeleteSynonymOptions) SetSynonym(synonym string) *DeleteSynonymOptions
SetSynonym : Allow user to set Synonym
func (*DeleteSynonymOptions) SetValue ¶
func (options *DeleteSynonymOptions) SetValue(value string) *DeleteSynonymOptions
SetValue : Allow user to set Value
func (*DeleteSynonymOptions) SetWorkspaceID ¶
func (options *DeleteSynonymOptions) SetWorkspaceID(workspaceID string) *DeleteSynonymOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteUserDataOptions ¶
type DeleteUserDataOptions struct {
// The customer ID for which all data is to be deleted.
CustomerID *string `json:"customer_id" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteUserDataOptions : The deleteUserData options.
func (*DeleteUserDataOptions) SetCustomerID ¶
func (options *DeleteUserDataOptions) SetCustomerID(customerID string) *DeleteUserDataOptions
SetCustomerID : Allow user to set CustomerID
func (*DeleteUserDataOptions) SetHeaders ¶
func (options *DeleteUserDataOptions) SetHeaders(param map[string]string) *DeleteUserDataOptions
SetHeaders : Allow user to set Headers
type DeleteValueOptions ¶
type DeleteValueOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteValueOptions : The deleteValue options.
func (*DeleteValueOptions) SetEntity ¶
func (options *DeleteValueOptions) SetEntity(entity string) *DeleteValueOptions
SetEntity : Allow user to set Entity
func (*DeleteValueOptions) SetHeaders ¶
func (options *DeleteValueOptions) SetHeaders(param map[string]string) *DeleteValueOptions
SetHeaders : Allow user to set Headers
func (*DeleteValueOptions) SetValue ¶
func (options *DeleteValueOptions) SetValue(value string) *DeleteValueOptions
SetValue : Allow user to set Value
func (*DeleteValueOptions) SetWorkspaceID ¶
func (options *DeleteValueOptions) SetWorkspaceID(workspaceID string) *DeleteValueOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DeleteWorkspaceOptions ¶
type DeleteWorkspaceOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
DeleteWorkspaceOptions : The deleteWorkspace options.
func (*DeleteWorkspaceOptions) SetHeaders ¶
func (options *DeleteWorkspaceOptions) SetHeaders(param map[string]string) *DeleteWorkspaceOptions
SetHeaders : Allow user to set Headers
func (*DeleteWorkspaceOptions) SetWorkspaceID ¶
func (options *DeleteWorkspaceOptions) SetWorkspaceID(workspaceID string) *DeleteWorkspaceOptions
SetWorkspaceID : Allow user to set WorkspaceID
type DialogNode ¶
type DialogNode struct {
// The dialog node ID.
DialogNodeID *string `json:"dialog_node" validate:"required"`
// The description of the dialog node.
Description *string `json:"description,omitempty"`
// The condition that triggers the dialog node.
Conditions *string `json:"conditions,omitempty"`
// The ID of the parent dialog node. This property is not returned if the dialog node has no parent.
Parent *string `json:"parent,omitempty"`
// The ID of the previous sibling dialog node. This property is not returned if the dialog node has no previous
// sibling.
PreviousSibling *string `json:"previous_sibling,omitempty"`
// The output of the dialog node. For more information about how to specify dialog node output, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
Output *DialogNodeOutput `json:"output,omitempty"`
// The context (if defined) for the dialog node.
Context interface{} `json:"context,omitempty"`
// Any metadata for the dialog node.
Metadata interface{} `json:"metadata,omitempty"`
// The next step to execute following this dialog node.
NextStep *DialogNodeNextStep `json:"next_step,omitempty"`
// The timestamp for creation of the dialog node.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the most recent update to the dialog node.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The actions for the dialog node.
Actions []DialogNodeAction `json:"actions,omitempty"`
// The alias used to identify the dialog node.
Title *string `json:"title,omitempty"`
// How the dialog node is processed.
NodeType *string `json:"type,omitempty"`
// How an `event_handler` node is processed.
EventName *string `json:"event_name,omitempty"`
// The location in the dialog context where output is stored.
Variable *string `json:"variable,omitempty"`
// Whether this top-level dialog node can be digressed into.
DigressIn *string `json:"digress_in,omitempty"`
// Whether this dialog node can be returned to after a digression.
DigressOut *string `json:"digress_out,omitempty"`
// Whether the user can digress to top-level nodes while filling out slots.
DigressOutSlots *string `json:"digress_out_slots,omitempty"`
// A label that can be displayed externally to describe the purpose of the node to users. This string must be no longer
// than 512 characters.
UserLabel *string `json:"user_label,omitempty"`
}
DialogNode : DialogNode struct
type DialogNodeAction ¶
type DialogNodeAction struct {
// The name of the action.
Name *string `json:"name" validate:"required"`
// The type of action to invoke.
ActionType *string `json:"type,omitempty"`
// A map of key/value pairs to be provided to the action.
Parameters interface{} `json:"parameters,omitempty"`
// The location in the dialog context where the result of the action is stored.
ResultVariable *string `json:"result_variable" validate:"required"`
// The name of the context variable that the client application will use to pass in credentials for the action.
Credentials *string `json:"credentials,omitempty"`
}
DialogNodeAction : DialogNodeAction struct
type DialogNodeCollection ¶
type DialogNodeCollection struct {
// An array of objects describing the dialog nodes defined for the workspace.
DialogNodes []DialogNode `json:"dialog_nodes" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
DialogNodeCollection : An array of dialog nodes.
type DialogNodeNextStep ¶
type DialogNodeNextStep struct {
// What happens after the dialog node completes. The valid values depend on the node type:
// - The following values are valid for any node:
// - `get_user_input`
// - `skip_user_input`
// - `jump_to`
// - If the node is of type `event_handler` and its parent node is of type `slot` or `frame`, additional values are
// also valid:
// - if **event_name**=`filled` and the type of the parent node is `slot`:
// - `reprompt`
// - `skip_all_slots`
// - if **event_name**=`nomatch` and the type of the parent node is `slot`:
// - `reprompt`
// - `skip_slot`
// - `skip_all_slots`
// - if **event_name**=`generic` and the type of the parent node is `frame`:
// - `reprompt`
// - `skip_slot`
// - `skip_all_slots`
//
// If you specify `jump_to`, then you must also specify a value for the `dialog_node` property.
Behavior *string `json:"behavior" validate:"required"`
// The ID of the dialog node to process next. This parameter is required if **behavior**=`jump_to`.
DialogNode *string `json:"dialog_node,omitempty"`
// Which part of the dialog node to process next.
Selector *string `json:"selector,omitempty"`
}
DialogNodeNextStep : The next step to execute following this dialog node.
type DialogNodeOutput ¶
type DialogNodeOutput struct {
// An array of objects describing the output defined for the dialog node.
Generic []DialogNodeOutputGeneric `json:"generic,omitempty"`
// Options that modify how specified output is handled.
Modifiers *DialogNodeOutputModifiers `json:"modifiers,omitempty"`
}
DialogNodeOutput : The output of the dialog node. For more information about how to specify dialog node output, see the [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
type DialogNodeOutputGeneric ¶
type DialogNodeOutputGeneric struct {
// The type of response returned by the dialog node. The specified response type must be supported by the client
// application or channel.
ResponseType *string `json:"response_type" validate:"required"`
// A list of one or more objects defining text responses. Required when **response_type**=`text`.
Values []DialogNodeOutputTextValuesElement `json:"values,omitempty"`
// How a response is selected from the list, if more than one response is specified. Valid only when
// **response_type**=`text`.
SelectionPolicy *string `json:"selection_policy,omitempty"`
// The delimiter to use as a separator between responses when `selection_policy`=`multiline`.
Delimiter *string `json:"delimiter,omitempty"`
// How long to pause, in milliseconds. The valid values are from 0 to 10000. Valid only when **response_type**=`pause`.
Time *int64 `json:"time,omitempty"`
// Whether to send a "user is typing" event during the pause. Ignored if the channel does not support this event. Valid
// only when **response_type**=`pause`.
Typing *bool `json:"typing,omitempty"`
// The URL of the image. Required when **response_type**=`image`.
Source *string `json:"source,omitempty"`
// An optional title to show before the response. Valid only when **response_type**=`image` or `option`. This string
// must be no longer than 512 characters.
Title *string `json:"title,omitempty"`
// An optional description to show with the response. Valid only when **response_type**=`image` or `option`. This
// string must be no longer than 256 characters.
Description *string `json:"description,omitempty"`
// The preferred type of control to display, if supported by the channel. Valid only when **response_type**=`option`.
Preference *string `json:"preference,omitempty"`
// An array of objects describing the options from which the user can choose. You can include up to 20 options.
// Required when **response_type**=`option`.
Options []DialogNodeOutputOptionsElement `json:"options,omitempty"`
// An optional message to be sent to the human agent who will be taking over the conversation. Valid only when
// **reponse_type**=`connect_to_agent`. This string must be no longer than 256 characters.
MessageToHumanAgent *string `json:"message_to_human_agent,omitempty"`
}
DialogNodeOutputGeneric : DialogNodeOutputGeneric struct
type DialogNodeOutputModifiers ¶
type DialogNodeOutputModifiers struct {
// Whether values in the output will overwrite output values in an array specified by previously executed dialog nodes.
// If this option is set to **false**, new values will be appended to previously specified values.
Overwrite *bool `json:"overwrite,omitempty"`
}
DialogNodeOutputModifiers : Options that modify how specified output is handled.
type DialogNodeOutputOptionsElement ¶
type DialogNodeOutputOptionsElement struct {
// The user-facing label for the option.
Label *string `json:"label" validate:"required"`
// An object defining the message input to be sent to the Watson Assistant service if the user selects the
// corresponding option.
Value *DialogNodeOutputOptionsElementValue `json:"value" validate:"required"`
}
DialogNodeOutputOptionsElement : DialogNodeOutputOptionsElement struct
type DialogNodeOutputOptionsElementValue ¶
type DialogNodeOutputOptionsElementValue struct {
// The user input.
Input *InputData `json:"input,omitempty"`
}
DialogNodeOutputOptionsElementValue : An object defining the message input to be sent to the Watson Assistant service if the user selects the corresponding option.
type DialogNodeOutputTextValuesElement ¶
type DialogNodeOutputTextValuesElement struct {
// The text of a response. This string can include newline characters (`
// `), Markdown tagging, or other special characters, if supported by the channel. It must be no longer than 4096
// characters.
Text *string `json:"text,omitempty"`
}
DialogNodeOutputTextValuesElement : DialogNodeOutputTextValuesElement struct
type DialogNodeVisitedDetails ¶
type DialogNodeVisitedDetails struct {
// A dialog node that was triggered during processing of the input message.
DialogNode *string `json:"dialog_node,omitempty"`
// The title of the dialog node.
Title *string `json:"title,omitempty"`
// The conditions that trigger the dialog node.
Conditions *string `json:"conditions,omitempty"`
}
DialogNodeVisitedDetails : DialogNodeVisitedDetails struct
type DialogRuntimeResponseGeneric ¶
type DialogRuntimeResponseGeneric struct {
// The type of response returned by the dialog node. The specified response type must be supported by the client
// application or channel.
//
// **Note:** The **suggestion** response type is part of the disambiguation feature, which is only available for
// Premium users.
ResponseType *string `json:"response_type" validate:"required"`
// The text of the response.
Text *string `json:"text,omitempty"`
// How long to pause, in milliseconds.
Time *int64 `json:"time,omitempty"`
// Whether to send a "user is typing" event during the pause.
Typing *bool `json:"typing,omitempty"`
// The URL of the image.
Source *string `json:"source,omitempty"`
// The title or introductory text to show before the response.
Title *string `json:"title,omitempty"`
// The description to show with the the response.
Description *string `json:"description,omitempty"`
// The preferred type of control to display.
Preference *string `json:"preference,omitempty"`
// An array of objects describing the options from which the user can choose.
Options []DialogNodeOutputOptionsElement `json:"options,omitempty"`
// A message to be sent to the human agent who will be taking over the conversation.
MessageToHumanAgent *string `json:"message_to_human_agent,omitempty"`
// A label identifying the topic of the conversation, derived from the **user_label** property of the relevant node.
Topic *string `json:"topic,omitempty"`
// An array of objects describing the possible matching dialog nodes from which the user can choose.
//
// **Note:** The **suggestions** property is part of the disambiguation feature, which is only available for Premium
// users.
Suggestions []DialogSuggestion `json:"suggestions,omitempty"`
}
DialogRuntimeResponseGeneric : DialogRuntimeResponseGeneric struct
type DialogSuggestion ¶
type DialogSuggestion struct {
// The user-facing label for the disambiguation option. This label is taken from the **user_label** property of the
// corresponding dialog node.
Label *string `json:"label" validate:"required"`
// An object defining the message input, intents, and entities to be sent to the Watson Assistant service if the user
// selects the corresponding disambiguation option.
Value *DialogSuggestionValue `json:"value" validate:"required"`
// The dialog output that will be returned from the Watson Assistant service if the user selects the corresponding
// option.
Output interface{} `json:"output,omitempty"`
}
DialogSuggestion : DialogSuggestion struct
type DialogSuggestionValue ¶
type DialogSuggestionValue struct {
// The user input.
Input *InputData `json:"input,omitempty"`
// An array of intents to be sent along with the user input.
Intents []RuntimeIntent `json:"intents,omitempty"`
// An array of entities to be sent along with the user input.
Entities []RuntimeEntity `json:"entities,omitempty"`
}
DialogSuggestionValue : An object defining the message input, intents, and entities to be sent to the Watson Assistant service if the user selects the corresponding disambiguation option.
type Entity ¶
type Entity struct {
// The name of the entity.
EntityName *string `json:"entity" validate:"required"`
// The timestamp for creation of the entity.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the entity.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The description of the entity.
Description *string `json:"description,omitempty"`
// Any metadata related to the entity.
Metadata interface{} `json:"metadata,omitempty"`
// Whether fuzzy matching is used for the entity.
FuzzyMatch *bool `json:"fuzzy_match,omitempty"`
}
Entity : Entity struct
type EntityCollection ¶
type EntityCollection struct {
// An array of objects describing the entities defined for the workspace.
Entities []EntityExport `json:"entities" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
EntityCollection : An array of entities.
type EntityExport ¶
type EntityExport struct {
// The name of the entity.
EntityName *string `json:"entity" validate:"required"`
// The timestamp for creation of the entity.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the entity.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The description of the entity.
Description *string `json:"description,omitempty"`
// Any metadata related to the entity.
Metadata interface{} `json:"metadata,omitempty"`
// Whether fuzzy matching is used for the entity.
FuzzyMatch *bool `json:"fuzzy_match,omitempty"`
// An array objects describing the entity values.
Values []ValueExport `json:"values,omitempty"`
}
EntityExport : EntityExport struct
type EntityMention ¶
type EntityMention struct {
// The text of the user input example.
ExampleText *string `json:"text" validate:"required"`
// The name of the intent.
IntentName *string `json:"intent" validate:"required"`
// An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.
Location []int64 `json:"location" validate:"required"`
}
EntityMention : An object describing a contextual entity mention.
type EntityMentionCollection ¶
type EntityMentionCollection struct {
// An array of objects describing the entity mentions defined for an entity.
Examples []EntityMention `json:"examples" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
EntityMentionCollection : EntityMentionCollection struct
type Example ¶
type Example struct {
// The text of the user input example.
ExampleText *string `json:"text" validate:"required"`
// The timestamp for creation of the example.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the example.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// An array of contextual entity mentions.
Mentions []Mentions `json:"mentions,omitempty"`
}
Example : Example struct
type ExampleCollection ¶
type ExampleCollection struct {
// An array of objects describing the examples defined for the intent.
Examples []Example `json:"examples" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
ExampleCollection : ExampleCollection struct
type GetCounterexampleOptions ¶
type GetCounterexampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The text of a user input counterexample (for example, `What are you wearing?`).
Text *string `json:"text" validate:"required"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetCounterexampleOptions : The getCounterexample options.
func (*GetCounterexampleOptions) SetHeaders ¶
func (options *GetCounterexampleOptions) SetHeaders(param map[string]string) *GetCounterexampleOptions
SetHeaders : Allow user to set Headers
func (*GetCounterexampleOptions) SetIncludeAudit ¶
func (options *GetCounterexampleOptions) SetIncludeAudit(includeAudit bool) *GetCounterexampleOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetCounterexampleOptions) SetText ¶
func (options *GetCounterexampleOptions) SetText(text string) *GetCounterexampleOptions
SetText : Allow user to set Text
func (*GetCounterexampleOptions) SetWorkspaceID ¶
func (options *GetCounterexampleOptions) SetWorkspaceID(workspaceID string) *GetCounterexampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetDialogNodeOptions ¶
type GetDialogNodeOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The dialog node ID (for example, `get_order`).
DialogNode *string `json:"dialog_node" validate:"required"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetDialogNodeOptions : The getDialogNode options.
func (*GetDialogNodeOptions) SetDialogNode ¶
func (options *GetDialogNodeOptions) SetDialogNode(dialogNode string) *GetDialogNodeOptions
SetDialogNode : Allow user to set DialogNode
func (*GetDialogNodeOptions) SetHeaders ¶
func (options *GetDialogNodeOptions) SetHeaders(param map[string]string) *GetDialogNodeOptions
SetHeaders : Allow user to set Headers
func (*GetDialogNodeOptions) SetIncludeAudit ¶
func (options *GetDialogNodeOptions) SetIncludeAudit(includeAudit bool) *GetDialogNodeOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetDialogNodeOptions) SetWorkspaceID ¶
func (options *GetDialogNodeOptions) SetWorkspaceID(workspaceID string) *GetDialogNodeOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetEntityOptions ¶
type GetEntityOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetEntityOptions : The getEntity options.
func (*GetEntityOptions) SetEntity ¶
func (options *GetEntityOptions) SetEntity(entity string) *GetEntityOptions
SetEntity : Allow user to set Entity
func (*GetEntityOptions) SetExport ¶
func (options *GetEntityOptions) SetExport(export bool) *GetEntityOptions
SetExport : Allow user to set Export
func (*GetEntityOptions) SetHeaders ¶
func (options *GetEntityOptions) SetHeaders(param map[string]string) *GetEntityOptions
SetHeaders : Allow user to set Headers
func (*GetEntityOptions) SetIncludeAudit ¶
func (options *GetEntityOptions) SetIncludeAudit(includeAudit bool) *GetEntityOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetEntityOptions) SetWorkspaceID ¶
func (options *GetEntityOptions) SetWorkspaceID(workspaceID string) *GetEntityOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetExampleOptions ¶
type GetExampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The text of the user input example.
Text *string `json:"text" validate:"required"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetExampleOptions : The getExample options.
func (*GetExampleOptions) SetHeaders ¶
func (options *GetExampleOptions) SetHeaders(param map[string]string) *GetExampleOptions
SetHeaders : Allow user to set Headers
func (*GetExampleOptions) SetIncludeAudit ¶
func (options *GetExampleOptions) SetIncludeAudit(includeAudit bool) *GetExampleOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetExampleOptions) SetIntent ¶
func (options *GetExampleOptions) SetIntent(intent string) *GetExampleOptions
SetIntent : Allow user to set Intent
func (*GetExampleOptions) SetText ¶
func (options *GetExampleOptions) SetText(text string) *GetExampleOptions
SetText : Allow user to set Text
func (*GetExampleOptions) SetWorkspaceID ¶
func (options *GetExampleOptions) SetWorkspaceID(workspaceID string) *GetExampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetIntentOptions ¶
type GetIntentOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetIntentOptions : The getIntent options.
func (*GetIntentOptions) SetExport ¶
func (options *GetIntentOptions) SetExport(export bool) *GetIntentOptions
SetExport : Allow user to set Export
func (*GetIntentOptions) SetHeaders ¶
func (options *GetIntentOptions) SetHeaders(param map[string]string) *GetIntentOptions
SetHeaders : Allow user to set Headers
func (*GetIntentOptions) SetIncludeAudit ¶
func (options *GetIntentOptions) SetIncludeAudit(includeAudit bool) *GetIntentOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetIntentOptions) SetIntent ¶
func (options *GetIntentOptions) SetIntent(intent string) *GetIntentOptions
SetIntent : Allow user to set Intent
func (*GetIntentOptions) SetWorkspaceID ¶
func (options *GetIntentOptions) SetWorkspaceID(workspaceID string) *GetIntentOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetSynonymOptions ¶
type GetSynonymOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// The text of the synonym.
Synonym *string `json:"synonym" validate:"required"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetSynonymOptions : The getSynonym options.
func (*GetSynonymOptions) SetEntity ¶
func (options *GetSynonymOptions) SetEntity(entity string) *GetSynonymOptions
SetEntity : Allow user to set Entity
func (*GetSynonymOptions) SetHeaders ¶
func (options *GetSynonymOptions) SetHeaders(param map[string]string) *GetSynonymOptions
SetHeaders : Allow user to set Headers
func (*GetSynonymOptions) SetIncludeAudit ¶
func (options *GetSynonymOptions) SetIncludeAudit(includeAudit bool) *GetSynonymOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetSynonymOptions) SetSynonym ¶
func (options *GetSynonymOptions) SetSynonym(synonym string) *GetSynonymOptions
SetSynonym : Allow user to set Synonym
func (*GetSynonymOptions) SetValue ¶
func (options *GetSynonymOptions) SetValue(value string) *GetSynonymOptions
SetValue : Allow user to set Value
func (*GetSynonymOptions) SetWorkspaceID ¶
func (options *GetSynonymOptions) SetWorkspaceID(workspaceID string) *GetSynonymOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetValueOptions ¶
type GetValueOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetValueOptions : The getValue options.
func (*GetValueOptions) SetEntity ¶
func (options *GetValueOptions) SetEntity(entity string) *GetValueOptions
SetEntity : Allow user to set Entity
func (*GetValueOptions) SetExport ¶
func (options *GetValueOptions) SetExport(export bool) *GetValueOptions
SetExport : Allow user to set Export
func (*GetValueOptions) SetHeaders ¶
func (options *GetValueOptions) SetHeaders(param map[string]string) *GetValueOptions
SetHeaders : Allow user to set Headers
func (*GetValueOptions) SetIncludeAudit ¶
func (options *GetValueOptions) SetIncludeAudit(includeAudit bool) *GetValueOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetValueOptions) SetValue ¶
func (options *GetValueOptions) SetValue(value string) *GetValueOptions
SetValue : Allow user to set Value
func (*GetValueOptions) SetWorkspaceID ¶
func (options *GetValueOptions) SetWorkspaceID(workspaceID string) *GetValueOptions
SetWorkspaceID : Allow user to set WorkspaceID
type GetWorkspaceOptions ¶
type GetWorkspaceOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
GetWorkspaceOptions : The getWorkspace options.
func (*GetWorkspaceOptions) SetExport ¶
func (options *GetWorkspaceOptions) SetExport(export bool) *GetWorkspaceOptions
SetExport : Allow user to set Export
func (*GetWorkspaceOptions) SetHeaders ¶
func (options *GetWorkspaceOptions) SetHeaders(param map[string]string) *GetWorkspaceOptions
SetHeaders : Allow user to set Headers
func (*GetWorkspaceOptions) SetIncludeAudit ¶
func (options *GetWorkspaceOptions) SetIncludeAudit(includeAudit bool) *GetWorkspaceOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*GetWorkspaceOptions) SetWorkspaceID ¶
func (options *GetWorkspaceOptions) SetWorkspaceID(workspaceID string) *GetWorkspaceOptions
SetWorkspaceID : Allow user to set WorkspaceID
type InputData ¶
type InputData struct {
// The text of the user input. This string cannot contain carriage return, newline, or tab characters, and it must be
// no longer than 2048 characters.
Text *string `json:"text" validate:"required"`
}
InputData : The user input.
type Intent ¶
type Intent struct {
// The name of the intent.
IntentName *string `json:"intent" validate:"required"`
// The timestamp for creation of the intent.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the intent.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The description of the intent.
Description *string `json:"description,omitempty"`
}
Intent : Intent struct
type IntentCollection ¶
type IntentCollection struct {
// An array of objects describing the intents defined for the workspace.
Intents []IntentExport `json:"intents" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
IntentCollection : IntentCollection struct
type IntentExport ¶
type IntentExport struct {
// The name of the intent.
IntentName *string `json:"intent" validate:"required"`
// The timestamp for creation of the intent.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the intent.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The description of the intent.
Description *string `json:"description,omitempty"`
// An array of objects describing the user input examples for the intent.
Examples []Example `json:"examples,omitempty"`
}
IntentExport : IntentExport struct
type ListAllLogsOptions ¶
type ListAllLogsOptions struct {
// A cacheable parameter that limits the results to those matching the specified filter. You must specify a filter
// query that includes a value for `language`, as well as a value for `workspace_id` or
// `request.context.metadata.deployment`. For more information, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/filter-reference.html#filter-query-syntax).
Filter *string `json:"filter" validate:"required"`
// How to sort the returned log events. You can sort by **request_timestamp**. To reverse the sort order, prefix the
// parameter value with a minus sign (`-`).
Sort *string `json:"sort,omitempty"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListAllLogsOptions : The listAllLogs options.
func (*ListAllLogsOptions) SetCursor ¶
func (options *ListAllLogsOptions) SetCursor(cursor string) *ListAllLogsOptions
SetCursor : Allow user to set Cursor
func (*ListAllLogsOptions) SetFilter ¶
func (options *ListAllLogsOptions) SetFilter(filter string) *ListAllLogsOptions
SetFilter : Allow user to set Filter
func (*ListAllLogsOptions) SetHeaders ¶
func (options *ListAllLogsOptions) SetHeaders(param map[string]string) *ListAllLogsOptions
SetHeaders : Allow user to set Headers
func (*ListAllLogsOptions) SetPageLimit ¶
func (options *ListAllLogsOptions) SetPageLimit(pageLimit int64) *ListAllLogsOptions
SetPageLimit : Allow user to set PageLimit
func (*ListAllLogsOptions) SetSort ¶
func (options *ListAllLogsOptions) SetSort(sort string) *ListAllLogsOptions
SetSort : Allow user to set Sort
type ListCounterexamplesOptions ¶
type ListCounterexamplesOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListCounterexamplesOptions : The listCounterexamples options.
func (*ListCounterexamplesOptions) SetCursor ¶
func (options *ListCounterexamplesOptions) SetCursor(cursor string) *ListCounterexamplesOptions
SetCursor : Allow user to set Cursor
func (*ListCounterexamplesOptions) SetHeaders ¶
func (options *ListCounterexamplesOptions) SetHeaders(param map[string]string) *ListCounterexamplesOptions
SetHeaders : Allow user to set Headers
func (*ListCounterexamplesOptions) SetIncludeAudit ¶
func (options *ListCounterexamplesOptions) SetIncludeAudit(includeAudit bool) *ListCounterexamplesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListCounterexamplesOptions) SetIncludeCount ¶
func (options *ListCounterexamplesOptions) SetIncludeCount(includeCount bool) *ListCounterexamplesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListCounterexamplesOptions) SetPageLimit ¶
func (options *ListCounterexamplesOptions) SetPageLimit(pageLimit int64) *ListCounterexamplesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListCounterexamplesOptions) SetSort ¶
func (options *ListCounterexamplesOptions) SetSort(sort string) *ListCounterexamplesOptions
SetSort : Allow user to set Sort
func (*ListCounterexamplesOptions) SetWorkspaceID ¶
func (options *ListCounterexamplesOptions) SetWorkspaceID(workspaceID string) *ListCounterexamplesOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListDialogNodesOptions ¶
type ListDialogNodesOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListDialogNodesOptions : The listDialogNodes options.
func (*ListDialogNodesOptions) SetCursor ¶
func (options *ListDialogNodesOptions) SetCursor(cursor string) *ListDialogNodesOptions
SetCursor : Allow user to set Cursor
func (*ListDialogNodesOptions) SetHeaders ¶
func (options *ListDialogNodesOptions) SetHeaders(param map[string]string) *ListDialogNodesOptions
SetHeaders : Allow user to set Headers
func (*ListDialogNodesOptions) SetIncludeAudit ¶
func (options *ListDialogNodesOptions) SetIncludeAudit(includeAudit bool) *ListDialogNodesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListDialogNodesOptions) SetIncludeCount ¶
func (options *ListDialogNodesOptions) SetIncludeCount(includeCount bool) *ListDialogNodesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListDialogNodesOptions) SetPageLimit ¶
func (options *ListDialogNodesOptions) SetPageLimit(pageLimit int64) *ListDialogNodesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListDialogNodesOptions) SetSort ¶
func (options *ListDialogNodesOptions) SetSort(sort string) *ListDialogNodesOptions
SetSort : Allow user to set Sort
func (*ListDialogNodesOptions) SetWorkspaceID ¶
func (options *ListDialogNodesOptions) SetWorkspaceID(workspaceID string) *ListDialogNodesOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListEntitiesOptions ¶
type ListEntitiesOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListEntitiesOptions : The listEntities options.
func (*ListEntitiesOptions) SetCursor ¶
func (options *ListEntitiesOptions) SetCursor(cursor string) *ListEntitiesOptions
SetCursor : Allow user to set Cursor
func (*ListEntitiesOptions) SetExport ¶
func (options *ListEntitiesOptions) SetExport(export bool) *ListEntitiesOptions
SetExport : Allow user to set Export
func (*ListEntitiesOptions) SetHeaders ¶
func (options *ListEntitiesOptions) SetHeaders(param map[string]string) *ListEntitiesOptions
SetHeaders : Allow user to set Headers
func (*ListEntitiesOptions) SetIncludeAudit ¶
func (options *ListEntitiesOptions) SetIncludeAudit(includeAudit bool) *ListEntitiesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListEntitiesOptions) SetIncludeCount ¶
func (options *ListEntitiesOptions) SetIncludeCount(includeCount bool) *ListEntitiesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListEntitiesOptions) SetPageLimit ¶
func (options *ListEntitiesOptions) SetPageLimit(pageLimit int64) *ListEntitiesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListEntitiesOptions) SetSort ¶
func (options *ListEntitiesOptions) SetSort(sort string) *ListEntitiesOptions
SetSort : Allow user to set Sort
func (*ListEntitiesOptions) SetWorkspaceID ¶
func (options *ListEntitiesOptions) SetWorkspaceID(workspaceID string) *ListEntitiesOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListExamplesOptions ¶
type ListExamplesOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListExamplesOptions : The listExamples options.
func (*ListExamplesOptions) SetCursor ¶
func (options *ListExamplesOptions) SetCursor(cursor string) *ListExamplesOptions
SetCursor : Allow user to set Cursor
func (*ListExamplesOptions) SetHeaders ¶
func (options *ListExamplesOptions) SetHeaders(param map[string]string) *ListExamplesOptions
SetHeaders : Allow user to set Headers
func (*ListExamplesOptions) SetIncludeAudit ¶
func (options *ListExamplesOptions) SetIncludeAudit(includeAudit bool) *ListExamplesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListExamplesOptions) SetIncludeCount ¶
func (options *ListExamplesOptions) SetIncludeCount(includeCount bool) *ListExamplesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListExamplesOptions) SetIntent ¶
func (options *ListExamplesOptions) SetIntent(intent string) *ListExamplesOptions
SetIntent : Allow user to set Intent
func (*ListExamplesOptions) SetPageLimit ¶
func (options *ListExamplesOptions) SetPageLimit(pageLimit int64) *ListExamplesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListExamplesOptions) SetSort ¶
func (options *ListExamplesOptions) SetSort(sort string) *ListExamplesOptions
SetSort : Allow user to set Sort
func (*ListExamplesOptions) SetWorkspaceID ¶
func (options *ListExamplesOptions) SetWorkspaceID(workspaceID string) *ListExamplesOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListIntentsOptions ¶
type ListIntentsOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListIntentsOptions : The listIntents options.
func (*ListIntentsOptions) SetCursor ¶
func (options *ListIntentsOptions) SetCursor(cursor string) *ListIntentsOptions
SetCursor : Allow user to set Cursor
func (*ListIntentsOptions) SetExport ¶
func (options *ListIntentsOptions) SetExport(export bool) *ListIntentsOptions
SetExport : Allow user to set Export
func (*ListIntentsOptions) SetHeaders ¶
func (options *ListIntentsOptions) SetHeaders(param map[string]string) *ListIntentsOptions
SetHeaders : Allow user to set Headers
func (*ListIntentsOptions) SetIncludeAudit ¶
func (options *ListIntentsOptions) SetIncludeAudit(includeAudit bool) *ListIntentsOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListIntentsOptions) SetIncludeCount ¶
func (options *ListIntentsOptions) SetIncludeCount(includeCount bool) *ListIntentsOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListIntentsOptions) SetPageLimit ¶
func (options *ListIntentsOptions) SetPageLimit(pageLimit int64) *ListIntentsOptions
SetPageLimit : Allow user to set PageLimit
func (*ListIntentsOptions) SetSort ¶
func (options *ListIntentsOptions) SetSort(sort string) *ListIntentsOptions
SetSort : Allow user to set Sort
func (*ListIntentsOptions) SetWorkspaceID ¶
func (options *ListIntentsOptions) SetWorkspaceID(workspaceID string) *ListIntentsOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListLogsOptions ¶
type ListLogsOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// How to sort the returned log events. You can sort by **request_timestamp**. To reverse the sort order, prefix the
// parameter value with a minus sign (`-`).
Sort *string `json:"sort,omitempty"`
// A cacheable parameter that limits the results to those matching the specified filter. For more information, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/filter-reference.html#filter-query-syntax).
Filter *string `json:"filter,omitempty"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListLogsOptions : The listLogs options.
func (*ListLogsOptions) SetCursor ¶
func (options *ListLogsOptions) SetCursor(cursor string) *ListLogsOptions
SetCursor : Allow user to set Cursor
func (*ListLogsOptions) SetFilter ¶
func (options *ListLogsOptions) SetFilter(filter string) *ListLogsOptions
SetFilter : Allow user to set Filter
func (*ListLogsOptions) SetHeaders ¶
func (options *ListLogsOptions) SetHeaders(param map[string]string) *ListLogsOptions
SetHeaders : Allow user to set Headers
func (*ListLogsOptions) SetPageLimit ¶
func (options *ListLogsOptions) SetPageLimit(pageLimit int64) *ListLogsOptions
SetPageLimit : Allow user to set PageLimit
func (*ListLogsOptions) SetSort ¶
func (options *ListLogsOptions) SetSort(sort string) *ListLogsOptions
SetSort : Allow user to set Sort
func (*ListLogsOptions) SetWorkspaceID ¶
func (options *ListLogsOptions) SetWorkspaceID(workspaceID string) *ListLogsOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListMentionsOptions ¶
type ListMentionsOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListMentionsOptions : The listMentions options.
func (*ListMentionsOptions) SetEntity ¶
func (options *ListMentionsOptions) SetEntity(entity string) *ListMentionsOptions
SetEntity : Allow user to set Entity
func (*ListMentionsOptions) SetExport ¶
func (options *ListMentionsOptions) SetExport(export bool) *ListMentionsOptions
SetExport : Allow user to set Export
func (*ListMentionsOptions) SetHeaders ¶
func (options *ListMentionsOptions) SetHeaders(param map[string]string) *ListMentionsOptions
SetHeaders : Allow user to set Headers
func (*ListMentionsOptions) SetIncludeAudit ¶
func (options *ListMentionsOptions) SetIncludeAudit(includeAudit bool) *ListMentionsOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListMentionsOptions) SetWorkspaceID ¶
func (options *ListMentionsOptions) SetWorkspaceID(workspaceID string) *ListMentionsOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListSynonymsOptions ¶
type ListSynonymsOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListSynonymsOptions : The listSynonyms options.
func (*ListSynonymsOptions) SetCursor ¶
func (options *ListSynonymsOptions) SetCursor(cursor string) *ListSynonymsOptions
SetCursor : Allow user to set Cursor
func (*ListSynonymsOptions) SetEntity ¶
func (options *ListSynonymsOptions) SetEntity(entity string) *ListSynonymsOptions
SetEntity : Allow user to set Entity
func (*ListSynonymsOptions) SetHeaders ¶
func (options *ListSynonymsOptions) SetHeaders(param map[string]string) *ListSynonymsOptions
SetHeaders : Allow user to set Headers
func (*ListSynonymsOptions) SetIncludeAudit ¶
func (options *ListSynonymsOptions) SetIncludeAudit(includeAudit bool) *ListSynonymsOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListSynonymsOptions) SetIncludeCount ¶
func (options *ListSynonymsOptions) SetIncludeCount(includeCount bool) *ListSynonymsOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListSynonymsOptions) SetPageLimit ¶
func (options *ListSynonymsOptions) SetPageLimit(pageLimit int64) *ListSynonymsOptions
SetPageLimit : Allow user to set PageLimit
func (*ListSynonymsOptions) SetSort ¶
func (options *ListSynonymsOptions) SetSort(sort string) *ListSynonymsOptions
SetSort : Allow user to set Sort
func (*ListSynonymsOptions) SetValue ¶
func (options *ListSynonymsOptions) SetValue(value string) *ListSynonymsOptions
SetValue : Allow user to set Value
func (*ListSynonymsOptions) SetWorkspaceID ¶
func (options *ListSynonymsOptions) SetWorkspaceID(workspaceID string) *ListSynonymsOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListValuesOptions ¶
type ListValuesOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// Whether to include all element content in the returned data. If **export**=`false`, the returned data includes only
// information about the element itself. If **export**=`true`, all content, including subelements, is included.
Export *bool `json:"export,omitempty"`
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListValuesOptions : The listValues options.
func (*ListValuesOptions) SetCursor ¶
func (options *ListValuesOptions) SetCursor(cursor string) *ListValuesOptions
SetCursor : Allow user to set Cursor
func (*ListValuesOptions) SetEntity ¶
func (options *ListValuesOptions) SetEntity(entity string) *ListValuesOptions
SetEntity : Allow user to set Entity
func (*ListValuesOptions) SetExport ¶
func (options *ListValuesOptions) SetExport(export bool) *ListValuesOptions
SetExport : Allow user to set Export
func (*ListValuesOptions) SetHeaders ¶
func (options *ListValuesOptions) SetHeaders(param map[string]string) *ListValuesOptions
SetHeaders : Allow user to set Headers
func (*ListValuesOptions) SetIncludeAudit ¶
func (options *ListValuesOptions) SetIncludeAudit(includeAudit bool) *ListValuesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListValuesOptions) SetIncludeCount ¶
func (options *ListValuesOptions) SetIncludeCount(includeCount bool) *ListValuesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListValuesOptions) SetPageLimit ¶
func (options *ListValuesOptions) SetPageLimit(pageLimit int64) *ListValuesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListValuesOptions) SetSort ¶
func (options *ListValuesOptions) SetSort(sort string) *ListValuesOptions
SetSort : Allow user to set Sort
func (*ListValuesOptions) SetWorkspaceID ¶
func (options *ListValuesOptions) SetWorkspaceID(workspaceID string) *ListValuesOptions
SetWorkspaceID : Allow user to set WorkspaceID
type ListWorkspacesOptions ¶
type ListWorkspacesOptions struct {
// The number of records to return in each page of results.
PageLimit *int64 `json:"page_limit,omitempty"`
// Whether to include information about the number of records returned.
IncludeCount *bool `json:"include_count,omitempty"`
// The attribute by which returned results will be sorted. To reverse the sort order, prefix the value with a minus
// sign (`-`).
Sort *string `json:"sort,omitempty"`
// A token identifying the page of results to retrieve.
Cursor *string `json:"cursor,omitempty"`
// Whether to include the audit properties (`created` and `updated` timestamps) in the response.
IncludeAudit *bool `json:"include_audit,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
ListWorkspacesOptions : The listWorkspaces options.
func (*ListWorkspacesOptions) SetCursor ¶
func (options *ListWorkspacesOptions) SetCursor(cursor string) *ListWorkspacesOptions
SetCursor : Allow user to set Cursor
func (*ListWorkspacesOptions) SetHeaders ¶
func (options *ListWorkspacesOptions) SetHeaders(param map[string]string) *ListWorkspacesOptions
SetHeaders : Allow user to set Headers
func (*ListWorkspacesOptions) SetIncludeAudit ¶
func (options *ListWorkspacesOptions) SetIncludeAudit(includeAudit bool) *ListWorkspacesOptions
SetIncludeAudit : Allow user to set IncludeAudit
func (*ListWorkspacesOptions) SetIncludeCount ¶
func (options *ListWorkspacesOptions) SetIncludeCount(includeCount bool) *ListWorkspacesOptions
SetIncludeCount : Allow user to set IncludeCount
func (*ListWorkspacesOptions) SetPageLimit ¶
func (options *ListWorkspacesOptions) SetPageLimit(pageLimit int64) *ListWorkspacesOptions
SetPageLimit : Allow user to set PageLimit
func (*ListWorkspacesOptions) SetSort ¶
func (options *ListWorkspacesOptions) SetSort(sort string) *ListWorkspacesOptions
SetSort : Allow user to set Sort
type LogCollection ¶
type LogCollection struct {
// An array of objects describing log events.
Logs []LogExport `json:"logs" validate:"required"`
// The pagination data for the returned objects.
Pagination *LogPagination `json:"pagination" validate:"required"`
}
LogCollection : LogCollection struct
type LogExport ¶
type LogExport struct {
// A request received by the workspace, including the user input and context.
Request *MessageRequest `json:"request" validate:"required"`
// The response sent by the workspace, including the output text, detected intents and entities, and context.
Response *MessageResponse `json:"response" validate:"required"`
// A unique identifier for the logged event.
LogID *string `json:"log_id" validate:"required"`
// The timestamp for receipt of the message.
RequestTimestamp *string `json:"request_timestamp" validate:"required"`
// The timestamp for the system response to the message.
ResponseTimestamp *string `json:"response_timestamp" validate:"required"`
// The unique identifier of the workspace where the request was made.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The language of the workspace where the message request was made.
Language *string `json:"language" validate:"required"`
}
LogExport : LogExport struct
type LogMessage ¶
type LogMessage struct {
// The severity of the log message.
Level *string `json:"level" validate:"required"`
// The text of the log message.
Msg *string `json:"msg" validate:"required"`
}
LogMessage : Log message details.
type LogPagination ¶
type LogPagination struct {
// The URL that will return the next page of results, if any.
NextURL *string `json:"next_url,omitempty"`
// Reserved for future use.
Matched *int64 `json:"matched,omitempty"`
// A token identifying the next page of results.
NextCursor *string `json:"next_cursor,omitempty"`
}
LogPagination : The pagination data for the returned objects.
type Mentions ¶
type Mentions struct {
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.
Location []int64 `json:"location" validate:"required"`
}
Mentions : A mention of a contextual entity.
type MessageInput ¶
type MessageInput struct {
// The user's input.
Text *string `json:"text,omitempty"`
}
MessageInput : The text of the user input.
type MessageOptions ¶
type MessageOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// An input object that includes the input text.
Input *InputData `json:"input,omitempty"`
// Whether to return more than one intent. Set to `true` to return all matching intents.
AlternateIntents *bool `json:"alternate_intents,omitempty"`
// State information for the conversation. Continue a conversation by including the context object from the previous
// response.
Context *Context `json:"context,omitempty"`
// Entities to use when evaluating the message. Include entities from the previous response to continue using those
// entities rather than detecting entities in the new input.
Entities []RuntimeEntity `json:"entities,omitempty"`
// Intents to use when evaluating the user input. Include intents from the previous response to continue using those
// intents rather than trying to recognize intents in the new input.
Intents []RuntimeIntent `json:"intents,omitempty"`
// System output. Include the output from the previous response to maintain intermediate information over multiple
// requests.
Output *OutputData `json:"output,omitempty"`
// Whether to include additional diagnostic information about the dialog nodes that were visited during processing of
// the message.
NodesVisitedDetails *bool `json:"nodes_visited_details,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
MessageOptions : The message options.
func (*MessageOptions) SetAlternateIntents ¶
func (options *MessageOptions) SetAlternateIntents(alternateIntents bool) *MessageOptions
SetAlternateIntents : Allow user to set AlternateIntents
func (*MessageOptions) SetContext ¶
func (options *MessageOptions) SetContext(context *Context) *MessageOptions
SetContext : Allow user to set Context
func (*MessageOptions) SetEntities ¶
func (options *MessageOptions) SetEntities(entities []RuntimeEntity) *MessageOptions
SetEntities : Allow user to set Entities
func (*MessageOptions) SetHeaders ¶
func (options *MessageOptions) SetHeaders(param map[string]string) *MessageOptions
SetHeaders : Allow user to set Headers
func (*MessageOptions) SetInput ¶
func (options *MessageOptions) SetInput(input *InputData) *MessageOptions
SetInput : Allow user to set Input
func (*MessageOptions) SetIntents ¶
func (options *MessageOptions) SetIntents(intents []RuntimeIntent) *MessageOptions
SetIntents : Allow user to set Intents
func (*MessageOptions) SetNodesVisitedDetails ¶
func (options *MessageOptions) SetNodesVisitedDetails(nodesVisitedDetails bool) *MessageOptions
SetNodesVisitedDetails : Allow user to set NodesVisitedDetails
func (*MessageOptions) SetOutput ¶
func (options *MessageOptions) SetOutput(output *OutputData) *MessageOptions
SetOutput : Allow user to set Output
func (*MessageOptions) SetWorkspaceID ¶
func (options *MessageOptions) SetWorkspaceID(workspaceID string) *MessageOptions
SetWorkspaceID : Allow user to set WorkspaceID
type MessageRequest ¶
type MessageRequest struct {
// An input object that includes the input text.
Input *InputData `json:"input,omitempty"`
// Whether to return more than one intent. Set to `true` to return all matching intents.
AlternateIntents *bool `json:"alternate_intents,omitempty"`
// State information for the conversation. Continue a conversation by including the context object from the previous
// response.
Context *Context `json:"context,omitempty"`
// Entities to use when evaluating the message. Include entities from the previous response to continue using those
// entities rather than detecting entities in the new input.
Entities []RuntimeEntity `json:"entities,omitempty"`
// Intents to use when evaluating the user input. Include intents from the previous response to continue using those
// intents rather than trying to recognize intents in the new input.
Intents []RuntimeIntent `json:"intents,omitempty"`
// System output. Include the output from the previous response to maintain intermediate information over multiple
// requests.
Output *OutputData `json:"output,omitempty"`
}
MessageRequest : A message request formatted for the Watson Assistant service.
type MessageResponse ¶
type MessageResponse struct {
// The user input from the request.
Input *MessageInput `json:"input,omitempty"`
// An array of intents recognized in the user input, sorted in descending order of confidence.
Intents []RuntimeIntent `json:"intents" validate:"required"`
// An array of entities identified in the user input.
Entities []RuntimeEntity `json:"entities" validate:"required"`
// Whether to return more than one intent. A value of `true` indicates that all matching intents are returned.
AlternateIntents *bool `json:"alternate_intents,omitempty"`
// State information for the conversation.
Context *Context `json:"context" validate:"required"`
// Output from the dialog, including the response to the user, the nodes that were triggered, and log messages.
Output *OutputData `json:"output" validate:"required"`
// An array of objects describing any actions requested by the dialog node.
Actions []DialogNodeAction `json:"actions,omitempty"`
}
MessageResponse : A response from the Watson Assistant service.
type OutputData ¶
type OutputData struct {
// An array of up to 50 messages logged with the request.
LogMessages []LogMessage `json:"log_messages" validate:"required"`
// An array of responses to the user.
Text []string `json:"text" validate:"required"`
// Output intended for any channel. It is the responsibility of the client application to implement the supported
// response types.
Generic []DialogRuntimeResponseGeneric `json:"generic,omitempty"`
// An array of the nodes that were triggered to create the response, in the order in which they were visited. This
// information is useful for debugging and for tracing the path taken through the node tree.
NodesVisited []string `json:"nodes_visited,omitempty"`
// An array of objects containing detailed diagnostic information about the nodes that were triggered during processing
// of the input message. Included only if **nodes_visited_details** is set to `true` in the message request.
NodesVisitedDetails []DialogNodeVisitedDetails `json:"nodes_visited_details,omitempty"`
}
OutputData : An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the log.
type Pagination ¶
type Pagination struct {
// The URL that will return the same page of results.
RefreshURL *string `json:"refresh_url" validate:"required"`
// The URL that will return the next page of results.
NextURL *string `json:"next_url,omitempty"`
// Reserved for future use.
Total *int64 `json:"total,omitempty"`
// Reserved for future use.
Matched *int64 `json:"matched,omitempty"`
// A token identifying the current page of results.
RefreshCursor *string `json:"refresh_cursor,omitempty"`
// A token identifying the next page of results.
NextCursor *string `json:"next_cursor,omitempty"`
}
Pagination : The pagination data for the returned objects.
type RuntimeEntity ¶
type RuntimeEntity struct {
// An entity detected in the input.
Entity *string `json:"entity" validate:"required"`
// An array of zero-based character offsets that indicate where the detected entity values begin and end in the input
// text.
Location []int64 `json:"location" validate:"required"`
// The term in the input text that was recognized as an entity value.
Value *string `json:"value" validate:"required"`
// A decimal percentage that represents Watson's confidence in the entity.
Confidence *float64 `json:"confidence,omitempty"`
// Any metadata for the entity.
Metadata interface{} `json:"metadata,omitempty"`
// The recognized capture groups for the entity, as defined by the entity pattern.
Groups []CaptureGroup `json:"groups,omitempty"`
}
RuntimeEntity : A term from the request that was identified as an entity.
type RuntimeIntent ¶
type RuntimeIntent struct {
// The name of the recognized intent.
Intent *string `json:"intent" validate:"required"`
// A decimal percentage that represents Watson's confidence in the intent.
Confidence *float64 `json:"confidence" validate:"required"`
}
RuntimeIntent : An intent identified in the user input.
type Synonym ¶
type Synonym struct {
// The text of the synonym.
SynonymText *string `json:"synonym" validate:"required"`
// The timestamp for creation of the synonym.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the most recent update to the synonym.
Updated *strfmt.DateTime `json:"updated,omitempty"`
}
Synonym : Synonym struct
type SynonymCollection ¶
type SynonymCollection struct {
// An array of synonyms.
Synonyms []Synonym `json:"synonyms" validate:"required"`
// The pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
SynonymCollection : SynonymCollection struct
type UpdateCounterexampleOptions ¶
type UpdateCounterexampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The text of a user input counterexample (for example, `What are you wearing?`).
Text *string `json:"text" validate:"required"`
// The text of a user input counterexample.
NewText *string `json:"new_text,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateCounterexampleOptions : The updateCounterexample options.
func (*UpdateCounterexampleOptions) SetHeaders ¶
func (options *UpdateCounterexampleOptions) SetHeaders(param map[string]string) *UpdateCounterexampleOptions
SetHeaders : Allow user to set Headers
func (*UpdateCounterexampleOptions) SetNewText ¶
func (options *UpdateCounterexampleOptions) SetNewText(newText string) *UpdateCounterexampleOptions
SetNewText : Allow user to set NewText
func (*UpdateCounterexampleOptions) SetText ¶
func (options *UpdateCounterexampleOptions) SetText(text string) *UpdateCounterexampleOptions
SetText : Allow user to set Text
func (*UpdateCounterexampleOptions) SetWorkspaceID ¶
func (options *UpdateCounterexampleOptions) SetWorkspaceID(workspaceID string) *UpdateCounterexampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateDialogNodeOptions ¶
type UpdateDialogNodeOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The dialog node ID (for example, `get_order`).
DialogNode *string `json:"dialog_node" validate:"required"`
// How the dialog node is processed.
NodeType *string `json:"new_type,omitempty"`
// An array of objects describing any actions to be invoked by the dialog node.
NewActions []DialogNodeAction `json:"new_actions,omitempty"`
// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
// characters, and it must be no longer than 2048 characters.
NewConditions *string `json:"new_conditions,omitempty"`
// The context for the dialog node.
NewContext interface{} `json:"new_context,omitempty"`
// The ID of the previous sibling dialog node.
NewPreviousSibling *string `json:"new_previous_sibling,omitempty"`
// The location in the dialog context where output is stored.
NewVariable *string `json:"new_variable,omitempty"`
// A label that can be displayed externally to describe the purpose of the node to users. This string must be no longer
// than 512 characters.
NewUserLabel *string `json:"new_user_label,omitempty"`
// The metadata for the dialog node.
NewMetadata interface{} `json:"new_metadata,omitempty"`
// The alias used to identify the dialog node. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 64 characters.
NewTitle *string `json:"new_title,omitempty"`
// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters, and it
// must be no longer than 128 characters.
NewDescription *string `json:"new_description,omitempty"`
// Whether this dialog node can be returned to after a digression.
NewDigressOut *string `json:"new_digress_out,omitempty"`
// How an `event_handler` node is processed.
NewEventName *string `json:"new_event_name,omitempty"`
// Whether the user can digress to top-level nodes while filling out slots.
NewDigressOutSlots *string `json:"new_digress_out_slots,omitempty"`
// The next step to be executed in dialog processing.
NewNextStep *DialogNodeNextStep `json:"new_next_step,omitempty"`
// Whether this top-level dialog node can be digressed into.
NewDigressIn *string `json:"new_digress_in,omitempty"`
// The output of the dialog node. For more information about how to specify dialog node output, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
NewOutput *DialogNodeOutput `json:"new_output,omitempty"`
// The ID of the parent dialog node.
NewParent *string `json:"new_parent,omitempty"`
// The dialog node ID. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
// - It must be no longer than 1024 characters.
NewDialogNode *string `json:"new_dialog_node,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateDialogNodeOptions : The updateDialogNode options.
func (*UpdateDialogNodeOptions) SetDialogNode ¶
func (options *UpdateDialogNodeOptions) SetDialogNode(dialogNode string) *UpdateDialogNodeOptions
SetDialogNode : Allow user to set DialogNode
func (*UpdateDialogNodeOptions) SetHeaders ¶
func (options *UpdateDialogNodeOptions) SetHeaders(param map[string]string) *UpdateDialogNodeOptions
SetHeaders : Allow user to set Headers
func (*UpdateDialogNodeOptions) SetNewActions ¶
func (options *UpdateDialogNodeOptions) SetNewActions(newActions []DialogNodeAction) *UpdateDialogNodeOptions
SetNewActions : Allow user to set NewActions
func (*UpdateDialogNodeOptions) SetNewConditions ¶
func (options *UpdateDialogNodeOptions) SetNewConditions(newConditions string) *UpdateDialogNodeOptions
SetNewConditions : Allow user to set NewConditions
func (*UpdateDialogNodeOptions) SetNewContext ¶
func (options *UpdateDialogNodeOptions) SetNewContext(newContext interface{}) *UpdateDialogNodeOptions
SetNewContext : Allow user to set NewContext
func (*UpdateDialogNodeOptions) SetNewDescription ¶
func (options *UpdateDialogNodeOptions) SetNewDescription(newDescription string) *UpdateDialogNodeOptions
SetNewDescription : Allow user to set NewDescription
func (*UpdateDialogNodeOptions) SetNewDialogNode ¶
func (options *UpdateDialogNodeOptions) SetNewDialogNode(newDialogNode string) *UpdateDialogNodeOptions
SetNewDialogNode : Allow user to set NewDialogNode
func (*UpdateDialogNodeOptions) SetNewDigressIn ¶
func (options *UpdateDialogNodeOptions) SetNewDigressIn(newDigressIn string) *UpdateDialogNodeOptions
SetNewDigressIn : Allow user to set NewDigressIn
func (*UpdateDialogNodeOptions) SetNewDigressOut ¶
func (options *UpdateDialogNodeOptions) SetNewDigressOut(newDigressOut string) *UpdateDialogNodeOptions
SetNewDigressOut : Allow user to set NewDigressOut
func (*UpdateDialogNodeOptions) SetNewDigressOutSlots ¶
func (options *UpdateDialogNodeOptions) SetNewDigressOutSlots(newDigressOutSlots string) *UpdateDialogNodeOptions
SetNewDigressOutSlots : Allow user to set NewDigressOutSlots
func (*UpdateDialogNodeOptions) SetNewEventName ¶
func (options *UpdateDialogNodeOptions) SetNewEventName(newEventName string) *UpdateDialogNodeOptions
SetNewEventName : Allow user to set NewEventName
func (*UpdateDialogNodeOptions) SetNewMetadata ¶
func (options *UpdateDialogNodeOptions) SetNewMetadata(newMetadata interface{}) *UpdateDialogNodeOptions
SetNewMetadata : Allow user to set NewMetadata
func (*UpdateDialogNodeOptions) SetNewNextStep ¶
func (options *UpdateDialogNodeOptions) SetNewNextStep(newNextStep *DialogNodeNextStep) *UpdateDialogNodeOptions
SetNewNextStep : Allow user to set NewNextStep
func (*UpdateDialogNodeOptions) SetNewOutput ¶
func (options *UpdateDialogNodeOptions) SetNewOutput(newOutput *DialogNodeOutput) *UpdateDialogNodeOptions
SetNewOutput : Allow user to set NewOutput
func (*UpdateDialogNodeOptions) SetNewParent ¶
func (options *UpdateDialogNodeOptions) SetNewParent(newParent string) *UpdateDialogNodeOptions
SetNewParent : Allow user to set NewParent
func (*UpdateDialogNodeOptions) SetNewPreviousSibling ¶
func (options *UpdateDialogNodeOptions) SetNewPreviousSibling(newPreviousSibling string) *UpdateDialogNodeOptions
SetNewPreviousSibling : Allow user to set NewPreviousSibling
func (*UpdateDialogNodeOptions) SetNewTitle ¶
func (options *UpdateDialogNodeOptions) SetNewTitle(newTitle string) *UpdateDialogNodeOptions
SetNewTitle : Allow user to set NewTitle
func (*UpdateDialogNodeOptions) SetNewUserLabel ¶
func (options *UpdateDialogNodeOptions) SetNewUserLabel(newUserLabel string) *UpdateDialogNodeOptions
SetNewUserLabel : Allow user to set NewUserLabel
func (*UpdateDialogNodeOptions) SetNewVariable ¶
func (options *UpdateDialogNodeOptions) SetNewVariable(newVariable string) *UpdateDialogNodeOptions
SetNewVariable : Allow user to set NewVariable
func (*UpdateDialogNodeOptions) SetNodeType ¶
func (options *UpdateDialogNodeOptions) SetNodeType(nodeType string) *UpdateDialogNodeOptions
SetNodeType : Allow user to set NodeType
func (*UpdateDialogNodeOptions) SetWorkspaceID ¶
func (options *UpdateDialogNodeOptions) SetWorkspaceID(workspaceID string) *UpdateDialogNodeOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateEntityOptions ¶
type UpdateEntityOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// Whether to use fuzzy matching for the entity.
NewFuzzyMatch *bool `json:"new_fuzzy_match,omitempty"`
// The name of the entity. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 64 characters.
NewEntity *string `json:"new_entity,omitempty"`
// Any metadata related to the entity.
NewMetadata interface{} `json:"new_metadata,omitempty"`
// An array of entity values.
NewValues []CreateValue `json:"new_values,omitempty"`
// The description of the entity. This string cannot contain carriage return, newline, or tab characters, and it must
// be no longer than 128 characters.
NewDescription *string `json:"new_description,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateEntityOptions : The updateEntity options.
func (*UpdateEntityOptions) SetEntity ¶
func (options *UpdateEntityOptions) SetEntity(entity string) *UpdateEntityOptions
SetEntity : Allow user to set Entity
func (*UpdateEntityOptions) SetHeaders ¶
func (options *UpdateEntityOptions) SetHeaders(param map[string]string) *UpdateEntityOptions
SetHeaders : Allow user to set Headers
func (*UpdateEntityOptions) SetNewDescription ¶
func (options *UpdateEntityOptions) SetNewDescription(newDescription string) *UpdateEntityOptions
SetNewDescription : Allow user to set NewDescription
func (*UpdateEntityOptions) SetNewEntity ¶
func (options *UpdateEntityOptions) SetNewEntity(newEntity string) *UpdateEntityOptions
SetNewEntity : Allow user to set NewEntity
func (*UpdateEntityOptions) SetNewFuzzyMatch ¶
func (options *UpdateEntityOptions) SetNewFuzzyMatch(newFuzzyMatch bool) *UpdateEntityOptions
SetNewFuzzyMatch : Allow user to set NewFuzzyMatch
func (*UpdateEntityOptions) SetNewMetadata ¶
func (options *UpdateEntityOptions) SetNewMetadata(newMetadata interface{}) *UpdateEntityOptions
SetNewMetadata : Allow user to set NewMetadata
func (*UpdateEntityOptions) SetNewValues ¶
func (options *UpdateEntityOptions) SetNewValues(newValues []CreateValue) *UpdateEntityOptions
SetNewValues : Allow user to set NewValues
func (*UpdateEntityOptions) SetWorkspaceID ¶
func (options *UpdateEntityOptions) SetWorkspaceID(workspaceID string) *UpdateEntityOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateExampleOptions ¶
type UpdateExampleOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The text of the user input example.
Text *string `json:"text" validate:"required"`
// The text of the user input example. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 1024 characters.
NewText *string `json:"new_text,omitempty"`
// An array of contextual entity mentions.
NewMentions []Mentions `json:"new_mentions,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateExampleOptions : The updateExample options.
func (*UpdateExampleOptions) SetHeaders ¶
func (options *UpdateExampleOptions) SetHeaders(param map[string]string) *UpdateExampleOptions
SetHeaders : Allow user to set Headers
func (*UpdateExampleOptions) SetIntent ¶
func (options *UpdateExampleOptions) SetIntent(intent string) *UpdateExampleOptions
SetIntent : Allow user to set Intent
func (*UpdateExampleOptions) SetNewMentions ¶
func (options *UpdateExampleOptions) SetNewMentions(newMentions []Mentions) *UpdateExampleOptions
SetNewMentions : Allow user to set NewMentions
func (*UpdateExampleOptions) SetNewText ¶
func (options *UpdateExampleOptions) SetNewText(newText string) *UpdateExampleOptions
SetNewText : Allow user to set NewText
func (*UpdateExampleOptions) SetText ¶
func (options *UpdateExampleOptions) SetText(text string) *UpdateExampleOptions
SetText : Allow user to set Text
func (*UpdateExampleOptions) SetWorkspaceID ¶
func (options *UpdateExampleOptions) SetWorkspaceID(workspaceID string) *UpdateExampleOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateIntentOptions ¶
type UpdateIntentOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The intent name.
Intent *string `json:"intent" validate:"required"`
// The name of the intent. This string must conform to the following restrictions:
// - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
// - It cannot begin with the reserved prefix `sys-`.
// - It must be no longer than 128 characters.
NewIntent *string `json:"new_intent,omitempty"`
// An array of user input examples for the intent.
NewExamples []CreateExample `json:"new_examples,omitempty"`
// The description of the intent.
NewDescription *string `json:"new_description,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateIntentOptions : The updateIntent options.
func (*UpdateIntentOptions) SetHeaders ¶
func (options *UpdateIntentOptions) SetHeaders(param map[string]string) *UpdateIntentOptions
SetHeaders : Allow user to set Headers
func (*UpdateIntentOptions) SetIntent ¶
func (options *UpdateIntentOptions) SetIntent(intent string) *UpdateIntentOptions
SetIntent : Allow user to set Intent
func (*UpdateIntentOptions) SetNewDescription ¶
func (options *UpdateIntentOptions) SetNewDescription(newDescription string) *UpdateIntentOptions
SetNewDescription : Allow user to set NewDescription
func (*UpdateIntentOptions) SetNewExamples ¶
func (options *UpdateIntentOptions) SetNewExamples(newExamples []CreateExample) *UpdateIntentOptions
SetNewExamples : Allow user to set NewExamples
func (*UpdateIntentOptions) SetNewIntent ¶
func (options *UpdateIntentOptions) SetNewIntent(newIntent string) *UpdateIntentOptions
SetNewIntent : Allow user to set NewIntent
func (*UpdateIntentOptions) SetWorkspaceID ¶
func (options *UpdateIntentOptions) SetWorkspaceID(workspaceID string) *UpdateIntentOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateSynonymOptions ¶
type UpdateSynonymOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// The text of the synonym.
Synonym *string `json:"synonym" validate:"required"`
// The text of the synonym. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
NewSynonym *string `json:"new_synonym,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateSynonymOptions : The updateSynonym options.
func (*UpdateSynonymOptions) SetEntity ¶
func (options *UpdateSynonymOptions) SetEntity(entity string) *UpdateSynonymOptions
SetEntity : Allow user to set Entity
func (*UpdateSynonymOptions) SetHeaders ¶
func (options *UpdateSynonymOptions) SetHeaders(param map[string]string) *UpdateSynonymOptions
SetHeaders : Allow user to set Headers
func (*UpdateSynonymOptions) SetNewSynonym ¶
func (options *UpdateSynonymOptions) SetNewSynonym(newSynonym string) *UpdateSynonymOptions
SetNewSynonym : Allow user to set NewSynonym
func (*UpdateSynonymOptions) SetSynonym ¶
func (options *UpdateSynonymOptions) SetSynonym(synonym string) *UpdateSynonymOptions
SetSynonym : Allow user to set Synonym
func (*UpdateSynonymOptions) SetValue ¶
func (options *UpdateSynonymOptions) SetValue(value string) *UpdateSynonymOptions
SetValue : Allow user to set Value
func (*UpdateSynonymOptions) SetWorkspaceID ¶
func (options *UpdateSynonymOptions) SetWorkspaceID(workspaceID string) *UpdateSynonymOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateValueOptions ¶
type UpdateValueOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the entity.
Entity *string `json:"entity" validate:"required"`
// The text of the entity value.
Value *string `json:"value" validate:"required"`
// An array of synonyms for the entity value. You can provide either synonyms or patterns (as indicated by **type**),
// but not both. A synonym must conform to the following resrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
NewSynonyms []string `json:"new_synonyms,omitempty"`
// Specifies the type of value.
ValueType *string `json:"new_type,omitempty"`
// Any metadata related to the entity value.
NewMetadata interface{} `json:"new_metadata,omitempty"`
// An array of patterns for the entity value. You can provide either synonyms or patterns (as indicated by **type**),
// but not both. A pattern is a regular expression no longer than 512 characters. For more information about how to
// specify a pattern, see the
// [documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
NewPatterns []string `json:"new_patterns,omitempty"`
// The text of the entity value. This string must conform to the following restrictions:
// - It cannot contain carriage return, newline, or tab characters.
// - It cannot consist of only whitespace characters.
// - It must be no longer than 64 characters.
NewValue *string `json:"new_value,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateValueOptions : The updateValue options.
func (*UpdateValueOptions) SetEntity ¶
func (options *UpdateValueOptions) SetEntity(entity string) *UpdateValueOptions
SetEntity : Allow user to set Entity
func (*UpdateValueOptions) SetHeaders ¶
func (options *UpdateValueOptions) SetHeaders(param map[string]string) *UpdateValueOptions
SetHeaders : Allow user to set Headers
func (*UpdateValueOptions) SetNewMetadata ¶
func (options *UpdateValueOptions) SetNewMetadata(newMetadata interface{}) *UpdateValueOptions
SetNewMetadata : Allow user to set NewMetadata
func (*UpdateValueOptions) SetNewPatterns ¶
func (options *UpdateValueOptions) SetNewPatterns(newPatterns []string) *UpdateValueOptions
SetNewPatterns : Allow user to set NewPatterns
func (*UpdateValueOptions) SetNewSynonyms ¶
func (options *UpdateValueOptions) SetNewSynonyms(newSynonyms []string) *UpdateValueOptions
SetNewSynonyms : Allow user to set NewSynonyms
func (*UpdateValueOptions) SetNewValue ¶
func (options *UpdateValueOptions) SetNewValue(newValue string) *UpdateValueOptions
SetNewValue : Allow user to set NewValue
func (*UpdateValueOptions) SetValue ¶
func (options *UpdateValueOptions) SetValue(value string) *UpdateValueOptions
SetValue : Allow user to set Value
func (*UpdateValueOptions) SetValueType ¶
func (options *UpdateValueOptions) SetValueType(valueType string) *UpdateValueOptions
SetValueType : Allow user to set ValueType
func (*UpdateValueOptions) SetWorkspaceID ¶
func (options *UpdateValueOptions) SetWorkspaceID(workspaceID string) *UpdateValueOptions
SetWorkspaceID : Allow user to set WorkspaceID
type UpdateWorkspaceOptions ¶
type UpdateWorkspaceOptions struct {
// Unique identifier of the workspace.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The name of the workspace. This string cannot contain carriage return, newline, or tab characters, and it must be no
// longer than 64 characters.
Name *string `json:"name,omitempty"`
// The description of the workspace. This string cannot contain carriage return, newline, or tab characters, and it
// must be no longer than 128 characters.
Description *string `json:"description,omitempty"`
// The language of the workspace.
Language *string `json:"language,omitempty"`
// An array of objects defining the intents for the workspace.
Intents []CreateIntent `json:"intents,omitempty"`
// An array of objects defining the entities for the workspace.
Entities []CreateEntity `json:"entities,omitempty"`
// An array of objects defining the nodes in the workspace dialog.
DialogNodes []CreateDialogNode `json:"dialog_nodes,omitempty"`
// An array of objects defining input examples that have been marked as irrelevant input.
Counterexamples []CreateCounterexample `json:"counterexamples,omitempty"`
// Any metadata related to the workspace.
Metadata interface{} `json:"metadata,omitempty"`
// Whether training data from the workspace can be used by IBM for general service improvements. `true` indicates that
// workspace training data is not to be used.
LearningOptOut *bool `json:"learning_opt_out,omitempty"`
// Global settings for the workspace.
SystemSettings *WorkspaceSystemSettings `json:"system_settings,omitempty"`
// Whether the new data is to be appended to the existing data in the workspace. If **append**=`false`, elements
// included in the new data completely replace the corresponding existing elements, including all subelements. For
// example, if the new data includes **entities** and **append**=`false`, all existing entities in the workspace are
// discarded and replaced with the new entities.
//
// If **append**=`true`, existing elements are preserved, and the new elements are added. If any elements in the new
// data collide with existing elements, the update request fails.
Append *bool `json:"append,omitempty"`
// Allows users to set headers to be GDPR compliant
Headers map[string]string
}
UpdateWorkspaceOptions : The updateWorkspace options.
func (*UpdateWorkspaceOptions) SetAppend ¶
func (options *UpdateWorkspaceOptions) SetAppend(append bool) *UpdateWorkspaceOptions
SetAppend : Allow user to set Append
func (*UpdateWorkspaceOptions) SetCounterexamples ¶
func (options *UpdateWorkspaceOptions) SetCounterexamples(counterexamples []CreateCounterexample) *UpdateWorkspaceOptions
SetCounterexamples : Allow user to set Counterexamples
func (*UpdateWorkspaceOptions) SetDescription ¶
func (options *UpdateWorkspaceOptions) SetDescription(description string) *UpdateWorkspaceOptions
SetDescription : Allow user to set Description
func (*UpdateWorkspaceOptions) SetDialogNodes ¶
func (options *UpdateWorkspaceOptions) SetDialogNodes(dialogNodes []CreateDialogNode) *UpdateWorkspaceOptions
SetDialogNodes : Allow user to set DialogNodes
func (*UpdateWorkspaceOptions) SetEntities ¶
func (options *UpdateWorkspaceOptions) SetEntities(entities []CreateEntity) *UpdateWorkspaceOptions
SetEntities : Allow user to set Entities
func (*UpdateWorkspaceOptions) SetHeaders ¶
func (options *UpdateWorkspaceOptions) SetHeaders(param map[string]string) *UpdateWorkspaceOptions
SetHeaders : Allow user to set Headers
func (*UpdateWorkspaceOptions) SetIntents ¶
func (options *UpdateWorkspaceOptions) SetIntents(intents []CreateIntent) *UpdateWorkspaceOptions
SetIntents : Allow user to set Intents
func (*UpdateWorkspaceOptions) SetLanguage ¶
func (options *UpdateWorkspaceOptions) SetLanguage(language string) *UpdateWorkspaceOptions
SetLanguage : Allow user to set Language
func (*UpdateWorkspaceOptions) SetLearningOptOut ¶
func (options *UpdateWorkspaceOptions) SetLearningOptOut(learningOptOut bool) *UpdateWorkspaceOptions
SetLearningOptOut : Allow user to set LearningOptOut
func (*UpdateWorkspaceOptions) SetMetadata ¶
func (options *UpdateWorkspaceOptions) SetMetadata(metadata interface{}) *UpdateWorkspaceOptions
SetMetadata : Allow user to set Metadata
func (*UpdateWorkspaceOptions) SetName ¶
func (options *UpdateWorkspaceOptions) SetName(name string) *UpdateWorkspaceOptions
SetName : Allow user to set Name
func (*UpdateWorkspaceOptions) SetSystemSettings ¶
func (options *UpdateWorkspaceOptions) SetSystemSettings(systemSettings *WorkspaceSystemSettings) *UpdateWorkspaceOptions
SetSystemSettings : Allow user to set SystemSettings
func (*UpdateWorkspaceOptions) SetWorkspaceID ¶
func (options *UpdateWorkspaceOptions) SetWorkspaceID(workspaceID string) *UpdateWorkspaceOptions
SetWorkspaceID : Allow user to set WorkspaceID
type Value ¶
type Value struct {
// The text of the entity value.
ValueText *string `json:"value" validate:"required"`
// Any metadata related to the entity value.
Metadata interface{} `json:"metadata,omitempty"`
// The timestamp for creation of the entity value.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the entity value.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// An array containing any synonyms for the entity value.
Synonyms []string `json:"synonyms,omitempty"`
// An array containing any patterns for the entity value.
Patterns []string `json:"patterns,omitempty"`
// Specifies the type of value.
ValueType *string `json:"type" validate:"required"`
}
Value : Value struct
type ValueCollection ¶
type ValueCollection struct {
// An array of entity values.
Values []ValueExport `json:"values" validate:"required"`
// An object defining the pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
ValueCollection : ValueCollection struct
type ValueExport ¶
type ValueExport struct {
// The text of the entity value.
ValueText *string `json:"value" validate:"required"`
// Any metadata related to the entity value.
Metadata interface{} `json:"metadata,omitempty"`
// The timestamp for creation of the entity value.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the entity value.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// An array containing any synonyms for the entity value.
Synonyms []string `json:"synonyms,omitempty"`
// An array containing any patterns for the entity value.
Patterns []string `json:"patterns,omitempty"`
// Specifies the type of value.
ValueType *string `json:"type" validate:"required"`
}
ValueExport : ValueExport struct
type Workspace ¶
type Workspace struct {
// The name of the workspace.
Name *string `json:"name" validate:"required"`
// The language of the workspace.
Language *string `json:"language" validate:"required"`
// The timestamp for creation of the workspace.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the workspace.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The workspace ID.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The description of the workspace.
Description *string `json:"description,omitempty"`
// Any metadata related to the workspace.
Metadata interface{} `json:"metadata,omitempty"`
// Whether training data from the workspace (including artifacts such as intents and entities) can be used by IBM for
// general service improvements. `true` indicates that workspace training data is not to be used.
LearningOptOut *bool `json:"learning_opt_out,omitempty"`
// Global settings for the workspace.
SystemSettings *WorkspaceSystemSettings `json:"system_settings,omitempty"`
}
Workspace : Workspace struct
type WorkspaceCollection ¶
type WorkspaceCollection struct {
// An array of objects describing the workspaces associated with the service instance.
Workspaces []Workspace `json:"workspaces" validate:"required"`
// An object defining the pagination data for the returned objects.
Pagination *Pagination `json:"pagination" validate:"required"`
}
WorkspaceCollection : WorkspaceCollection struct
type WorkspaceExport ¶
type WorkspaceExport struct {
// The name of the workspace.
Name *string `json:"name" validate:"required"`
// The description of the workspace.
Description *string `json:"description" validate:"required"`
// The language of the workspace.
Language *string `json:"language" validate:"required"`
// Any metadata that is required by the workspace.
Metadata interface{} `json:"metadata" validate:"required"`
// The timestamp for creation of the workspace.
Created *strfmt.DateTime `json:"created,omitempty"`
// The timestamp for the last update to the workspace.
Updated *strfmt.DateTime `json:"updated,omitempty"`
// The workspace ID.
WorkspaceID *string `json:"workspace_id" validate:"required"`
// The current status of the workspace.
Status *string `json:"status" validate:"required"`
// Whether training data from the workspace can be used by IBM for general service improvements. `true` indicates that
// workspace training data is not to be used.
LearningOptOut *bool `json:"learning_opt_out" validate:"required"`
// Global settings for the workspace.
SystemSettings *WorkspaceSystemSettings `json:"system_settings,omitempty"`
// An array of intents.
Intents []IntentExport `json:"intents,omitempty"`
// An array of entities.
Entities []EntityExport `json:"entities,omitempty"`
// An array of counterexamples.
Counterexamples []Counterexample `json:"counterexamples,omitempty"`
// An array of objects describing the dialog nodes in the workspace.
DialogNodes []DialogNode `json:"dialog_nodes,omitempty"`
}
WorkspaceExport : WorkspaceExport struct
type WorkspaceSystemSettings ¶
type WorkspaceSystemSettings struct {
// Workspace settings related to the Watson Assistant tool.
Tooling *WorkspaceSystemSettingsTooling `json:"tooling,omitempty"`
// Workspace settings related to the disambiguation feature.
//
// **Note:** This feature is available only to Premium users.
Disambiguation *WorkspaceSystemSettingsDisambiguation `json:"disambiguation,omitempty"`
// For internal use only.
HumanAgentAssist interface{} `json:"human_agent_assist,omitempty"`
}
WorkspaceSystemSettings : WorkspaceSystemSettings struct
type WorkspaceSystemSettingsDisambiguation ¶
type WorkspaceSystemSettingsDisambiguation struct {
// The text of the introductory prompt that accompanies disambiguation options presented to the user.
Prompt *string `json:"prompt,omitempty"`
// The user-facing label for the option users can select if none of the suggested options is correct. If no value is
// specified for this property, this option does not appear.
NoneOfTheAbovePrompt *string `json:"none_of_the_above_prompt,omitempty"`
// Whether the disambiguation feature is enabled for the workspace.
Enabled *bool `json:"enabled,omitempty"`
// The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the
// disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
Sensitivity *string `json:"sensitivity,omitempty"`
}
WorkspaceSystemSettingsDisambiguation : WorkspaceSystemSettingsDisambiguation struct
type WorkspaceSystemSettingsTooling ¶
type WorkspaceSystemSettingsTooling struct {
// Whether the dialog JSON editor displays text responses within the `output.generic` object.
StoreGenericResponses *bool `json:"store_generic_responses,omitempty"`
}
WorkspaceSystemSettingsTooling : WorkspaceSystemSettingsTooling struct