assistantv1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package assistantv1 : Operations and models for the AssistantV1 service

Index

Constants

View Source
const (
	CreateDialogNodeOptions_Type_EventHandler      = "event_handler"
	CreateDialogNodeOptions_Type_Folder            = "folder"
	CreateDialogNodeOptions_Type_Frame             = "frame"
	CreateDialogNodeOptions_Type_ResponseCondition = "response_condition"
	CreateDialogNodeOptions_Type_Slot              = "slot"
	CreateDialogNodeOptions_Type_Standard          = "standard"
)

Constants associated with the CreateDialogNodeOptions.Type property. How the dialog node is processed.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
const (
	CreateValue_Type_Patterns = "patterns"
	CreateValue_Type_Synonyms = "synonyms"
)

Constants associated with the CreateValue.Type property. Specifies the type of entity value.

View Source
const (
	CreateValueOptions_Type_Patterns = "patterns"
	CreateValueOptions_Type_Synonyms = "synonyms"
)

Constants associated with the CreateValueOptions.Type property. Specifies the type of entity value.

View Source
const (
	DialogNode_Type_EventHandler      = "event_handler"
	DialogNode_Type_Folder            = "folder"
	DialogNode_Type_Frame             = "frame"
	DialogNode_Type_ResponseCondition = "response_condition"
	DialogNode_Type_Slot              = "slot"
	DialogNode_Type_Standard          = "standard"
)

Constants associated with the DialogNode.Type property. How the dialog node is processed.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
const (
	DialogNodeAction_Type_Client        = "client"
	DialogNodeAction_Type_CloudFunction = "cloud_function"
	DialogNodeAction_Type_Server        = "server"
	DialogNodeAction_Type_WebAction     = "web_action"
	DialogNodeAction_Type_Webhook       = "webhook"
)

Constants associated with the DialogNodeAction.Type property. The type of action to invoke.

View Source
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.
View Source
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.

View Source
const (
	DialogNodeOutputGeneric_ResponseType_ConnectToAgent = "connect_to_agent"
	DialogNodeOutputGeneric_ResponseType_Image          = "image"
	DialogNodeOutputGeneric_ResponseType_Option         = "option"
	DialogNodeOutputGeneric_ResponseType_Pause          = "pause"
	DialogNodeOutputGeneric_ResponseType_SearchSkill    = "search_skill"
	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.

**Note:** The **search_skill** response type is used only by the v2 runtime API.

View Source
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`.

View Source
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`.

View Source
const (
	DialogNodeOutputGeneric_QueryType_DiscoveryQueryLanguage = "discovery_query_language"
	DialogNodeOutputGeneric_QueryType_NaturalLanguage        = "natural_language"
)

Constants associated with the DialogNodeOutputGeneric.QueryType property. The type of the search query. Required when **response_type**=`search_skill`.

View Source
const (
	DialogSuggestionResponseGeneric_ResponseType_ConnectToAgent = "connect_to_agent"
	DialogSuggestionResponseGeneric_ResponseType_Image          = "image"
	DialogSuggestionResponseGeneric_ResponseType_Option         = "option"
	DialogSuggestionResponseGeneric_ResponseType_Pause          = "pause"
	DialogSuggestionResponseGeneric_ResponseType_SearchSkill    = "search_skill"
	DialogSuggestionResponseGeneric_ResponseType_Text           = "text"
)

Constants associated with the DialogSuggestionResponseGeneric.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 **search_skill** response type is is used only by the v2 runtime API.

View Source
const (
	DialogSuggestionResponseGeneric_Preference_Button   = "button"
	DialogSuggestionResponseGeneric_Preference_Dropdown = "dropdown"
)

Constants associated with the DialogSuggestionResponseGeneric.Preference property. The preferred type of control to display.

View Source
const (
	ListCounterexamplesOptions_Sort_Text    = "text"
	ListCounterexamplesOptions_Sort_Updated = "updated"
)

Constants associated with the ListCounterexamplesOptions.Sort property. The attribute by which returned counterexamples will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListDialogNodesOptions_Sort_DialogNode = "dialog_node"
	ListDialogNodesOptions_Sort_Updated    = "updated"
)

Constants associated with the ListDialogNodesOptions.Sort property. The attribute by which returned dialog nodes will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListEntitiesOptions_Sort_Entity  = "entity"
	ListEntitiesOptions_Sort_Updated = "updated"
)

Constants associated with the ListEntitiesOptions.Sort property. The attribute by which returned entities will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListExamplesOptions_Sort_Text    = "text"
	ListExamplesOptions_Sort_Updated = "updated"
)

Constants associated with the ListExamplesOptions.Sort property. The attribute by which returned examples will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListIntentsOptions_Sort_Intent  = "intent"
	ListIntentsOptions_Sort_Updated = "updated"
)

Constants associated with the ListIntentsOptions.Sort property. The attribute by which returned intents will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListSynonymsOptions_Sort_Synonym = "synonym"
	ListSynonymsOptions_Sort_Updated = "updated"
)

Constants associated with the ListSynonymsOptions.Sort property. The attribute by which returned entity value synonyms will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListValuesOptions_Sort_Updated = "updated"
	ListValuesOptions_Sort_Value   = "value"
)

Constants associated with the ListValuesOptions.Sort property. The attribute by which returned entity values will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
const (
	ListWorkspacesOptions_Sort_Name    = "name"
	ListWorkspacesOptions_Sort_Updated = "updated"
)

Constants associated with the ListWorkspacesOptions.Sort property. The attribute by which returned workspaces will be sorted. To reverse the sort order, prefix the value with a minus sign (`-`).

View Source
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.

View Source
const (
	RuntimeEntityInterpretation_Granularity_Day       = "day"
	RuntimeEntityInterpretation_Granularity_Fortnight = "fortnight"
	RuntimeEntityInterpretation_Granularity_Hour      = "hour"
	RuntimeEntityInterpretation_Granularity_Instant   = "instant"
	RuntimeEntityInterpretation_Granularity_Minute    = "minute"
	RuntimeEntityInterpretation_Granularity_Month     = "month"
	RuntimeEntityInterpretation_Granularity_Quarter   = "quarter"
	RuntimeEntityInterpretation_Granularity_Second    = "second"
	RuntimeEntityInterpretation_Granularity_Week      = "week"
	RuntimeEntityInterpretation_Granularity_Weekend   = "weekend"
	RuntimeEntityInterpretation_Granularity_Year      = "year"
)

Constants associated with the RuntimeEntityInterpretation.Granularity property. The precision or duration of a time range specified by a recognized `@sys-time` or `@sys-date` entity.

View Source
const (
	RuntimeEntityRole_Type_DateFrom   = "date_from"
	RuntimeEntityRole_Type_DateTo     = "date_to"
	RuntimeEntityRole_Type_NumberFrom = "number_from"
	RuntimeEntityRole_Type_NumberTo   = "number_to"
	RuntimeEntityRole_Type_TimeFrom   = "time_from"
	RuntimeEntityRole_Type_TimeTo     = "time_to"
)

Constants associated with the RuntimeEntityRole.Type property. The relationship of the entity to the range.

View Source
const (
	RuntimeResponseGeneric_ResponseType_ConnectToAgent = "connect_to_agent"
	RuntimeResponseGeneric_ResponseType_Image          = "image"
	RuntimeResponseGeneric_ResponseType_Option         = "option"
	RuntimeResponseGeneric_ResponseType_Pause          = "pause"
	RuntimeResponseGeneric_ResponseType_Suggestion     = "suggestion"
	RuntimeResponseGeneric_ResponseType_Text           = "text"
)

Constants associated with the RuntimeResponseGeneric.ResponseType property. The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.

View Source
const (
	RuntimeResponseGeneric_Preference_Button   = "button"
	RuntimeResponseGeneric_Preference_Dropdown = "dropdown"
)

Constants associated with the RuntimeResponseGeneric.Preference property. The preferred type of control to display.

View Source
const (
	UpdateDialogNodeOptions_NewType_EventHandler      = "event_handler"
	UpdateDialogNodeOptions_NewType_Folder            = "folder"
	UpdateDialogNodeOptions_NewType_Frame             = "frame"
	UpdateDialogNodeOptions_NewType_ResponseCondition = "response_condition"
	UpdateDialogNodeOptions_NewType_Slot              = "slot"
	UpdateDialogNodeOptions_NewType_Standard          = "standard"
)

Constants associated with the UpdateDialogNodeOptions.NewType property. How the dialog node is processed.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
const (
	UpdateValueOptions_NewType_Patterns = "patterns"
	UpdateValueOptions_NewType_Synonyms = "synonyms"
)

Constants associated with the UpdateValueOptions.NewType property. Specifies the type of entity value.

View Source
const (
	Value_Type_Patterns = "patterns"
	Value_Type_Synonyms = "synonyms"
)

Constants associated with the Value.Type property. Specifies the type of entity value.

View Source
const (
	Workspace_Status_Available   = "Available"
	Workspace_Status_Failed      = "Failed"
	Workspace_Status_NonExistent = "Non Existent"
	Workspace_Status_Training    = "Training"
	Workspace_Status_Unavailable = "Unavailable"
)

Constants associated with the Workspace.Status property. The current status of the workspace.

View Source
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.

View Source
const DefaultServiceName = "conversation"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.us-south.assistant.watson.cloud.ibm.com"

DefaultServiceURL is the default URL to make service requests to.

View Source
const (
	GetWorkspaceOptions_Sort_Stable = "stable"
)

Constants associated with the GetWorkspaceOptions.Sort property. Indicates how the returned workspace data will be sorted. This parameter is valid only if **export**=`true`. Specify `sort=stable` to sort all workspace objects by unique identifier, in ascending alphabetical order.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantV1

type AssistantV1 struct {
	Service *core.BaseService
	Version string
}

AssistantV1 : The IBM Watson™ Assistant service combines machine learning, natural language understanding, and an integrated dialog editor to create conversation flows between your apps and your users.

The Assistant v1 API provides authoring methods your application can use to create or update a workspace.

Version: 1.0 See: https://cloud.ibm.com/docs/assistant/

func NewAssistantV1

func NewAssistantV1(options *AssistantV1Options) (service *AssistantV1, err error)

NewAssistantV1 : constructs an instance of AssistantV1 with passed in options.

func (*AssistantV1) CreateCounterexample

func (assistant *AssistantV1) CreateCounterexample(createCounterexampleOptions *CreateCounterexampleOptions) (result *Counterexample, response *core.DetailedResponse, err error)

CreateCounterexample : Create counterexample Add a new counterexample to a workspace. Counterexamples are examples that have been marked as irrelevant input.

If you want to add multiple counterexamples with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) CreateDialogNode

func (assistant *AssistantV1) CreateDialogNode(createDialogNodeOptions *CreateDialogNodeOptions) (result *DialogNode, response *core.DetailedResponse, err error)

CreateDialogNode : Create dialog node Create a new dialog node.

If you want to create multiple dialog nodes with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) CreateEntity

func (assistant *AssistantV1) CreateEntity(createEntityOptions *CreateEntityOptions) (result *Entity, response *core.DetailedResponse, err error)

CreateEntity : Create entity Create a new entity, or enable a system entity.

If you want to create multiple entities with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) CreateExample

func (assistant *AssistantV1) CreateExample(createExampleOptions *CreateExampleOptions) (result *Example, response *core.DetailedResponse, err error)

CreateExample : Create user input example Add a new user input example to an intent.

If you want to add multiple examples with a single API call, consider using the **[Update intent](#update-intent)** method instead.

func (*AssistantV1) CreateIntent

func (assistant *AssistantV1) CreateIntent(createIntentOptions *CreateIntentOptions) (result *Intent, response *core.DetailedResponse, err error)

CreateIntent : Create intent Create a new intent.

If you want to create multiple intents with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) CreateSynonym

func (assistant *AssistantV1) CreateSynonym(createSynonymOptions *CreateSynonymOptions) (result *Synonym, response *core.DetailedResponse, err error)

CreateSynonym : Create entity value synonym Add a new synonym to an entity value.

If you want to create multiple synonyms with a single API call, consider using the **[Update entity](#update-entity)** or **[Update entity value](#update-entity-value)** method instead.

func (*AssistantV1) CreateValue

func (assistant *AssistantV1) CreateValue(createValueOptions *CreateValueOptions) (result *Value, response *core.DetailedResponse, err error)

CreateValue : Create entity value Create a new value for an entity.

If you want to create multiple entity values with a single API call, consider using the **[Update entity](#update-entity)** method instead.

func (*AssistantV1) CreateWorkspace

func (assistant *AssistantV1) CreateWorkspace(createWorkspaceOptions *CreateWorkspaceOptions) (result *Workspace, response *core.DetailedResponse, err error)

CreateWorkspace : Create workspace Create a workspace based on component objects. You must provide workspace components defining the content of the new workspace.

func (*AssistantV1) DeleteCounterexample

func (assistant *AssistantV1) DeleteCounterexample(deleteCounterexampleOptions *DeleteCounterexampleOptions) (response *core.DetailedResponse, err error)

DeleteCounterexample : Delete counterexample Delete a counterexample from a workspace. Counterexamples are examples that have been marked as irrelevant input.

func (*AssistantV1) DeleteDialogNode

func (assistant *AssistantV1) DeleteDialogNode(deleteDialogNodeOptions *DeleteDialogNodeOptions) (response *core.DetailedResponse, err error)

DeleteDialogNode : Delete dialog node Delete a dialog node from a workspace.

func (*AssistantV1) DeleteEntity

func (assistant *AssistantV1) DeleteEntity(deleteEntityOptions *DeleteEntityOptions) (response *core.DetailedResponse, err error)

DeleteEntity : Delete entity Delete an entity from a workspace, or disable a system entity.

func (*AssistantV1) DeleteExample

func (assistant *AssistantV1) DeleteExample(deleteExampleOptions *DeleteExampleOptions) (response *core.DetailedResponse, err error)

DeleteExample : Delete user input example Delete a user input example from an intent.

func (*AssistantV1) DeleteIntent

func (assistant *AssistantV1) DeleteIntent(deleteIntentOptions *DeleteIntentOptions) (response *core.DetailedResponse, err error)

DeleteIntent : Delete intent Delete an intent from a workspace.

func (*AssistantV1) DeleteSynonym

func (assistant *AssistantV1) DeleteSynonym(deleteSynonymOptions *DeleteSynonymOptions) (response *core.DetailedResponse, err error)

DeleteSynonym : Delete entity value synonym Delete a synonym from an entity value.

func (*AssistantV1) DeleteUserData

func (assistant *AssistantV1) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err 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://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security).

func (*AssistantV1) DeleteValue

func (assistant *AssistantV1) DeleteValue(deleteValueOptions *DeleteValueOptions) (response *core.DetailedResponse, err error)

DeleteValue : Delete entity value Delete a value from an entity.

func (*AssistantV1) DeleteWorkspace

func (assistant *AssistantV1) DeleteWorkspace(deleteWorkspaceOptions *DeleteWorkspaceOptions) (response *core.DetailedResponse, err error)

DeleteWorkspace : Delete workspace Delete a workspace from the service instance.

func (*AssistantV1) DisableSSLVerification added in v1.0.0

func (assistant *AssistantV1) DisableSSLVerification()

DisableSSLVerification bypasses verification of the server's SSL certificate

func (*AssistantV1) GetCounterexample

func (assistant *AssistantV1) GetCounterexample(getCounterexampleOptions *GetCounterexampleOptions) (result *Counterexample, response *core.DetailedResponse, err error)

GetCounterexample : Get counterexample Get information about a counterexample. Counterexamples are examples that have been marked as irrelevant input.

func (*AssistantV1) GetDialogNode

func (assistant *AssistantV1) GetDialogNode(getDialogNodeOptions *GetDialogNodeOptions) (result *DialogNode, response *core.DetailedResponse, err error)

GetDialogNode : Get dialog node Get information about a dialog node.

func (*AssistantV1) GetEntity

func (assistant *AssistantV1) GetEntity(getEntityOptions *GetEntityOptions) (result *Entity, response *core.DetailedResponse, err error)

GetEntity : Get entity Get information about an entity, optionally including all entity content.

func (*AssistantV1) GetExample

func (assistant *AssistantV1) GetExample(getExampleOptions *GetExampleOptions) (result *Example, response *core.DetailedResponse, err error)

GetExample : Get user input example Get information about a user input example.

func (*AssistantV1) GetIntent

func (assistant *AssistantV1) GetIntent(getIntentOptions *GetIntentOptions) (result *Intent, response *core.DetailedResponse, err error)

GetIntent : Get intent Get information about an intent, optionally including all intent content.

func (*AssistantV1) GetSynonym

func (assistant *AssistantV1) GetSynonym(getSynonymOptions *GetSynonymOptions) (result *Synonym, response *core.DetailedResponse, err error)

GetSynonym : Get entity value synonym Get information about a synonym of an entity value.

func (*AssistantV1) GetValue

func (assistant *AssistantV1) GetValue(getValueOptions *GetValueOptions) (result *Value, response *core.DetailedResponse, err error)

GetValue : Get entity value Get information about an entity value.

func (*AssistantV1) GetWorkspace

func (assistant *AssistantV1) GetWorkspace(getWorkspaceOptions *GetWorkspaceOptions) (result *Workspace, response *core.DetailedResponse, err error)

GetWorkspace : Get information about a workspace Get information about a workspace, optionally including all workspace content.

func (*AssistantV1) ListAllLogs

func (assistant *AssistantV1) ListAllLogs(listAllLogsOptions *ListAllLogsOptions) (result *LogCollection, response *core.DetailedResponse, err error)

ListAllLogs : List log events in all workspaces List the events from the logs of all workspaces in the service instance.

func (*AssistantV1) ListCounterexamples

func (assistant *AssistantV1) ListCounterexamples(listCounterexamplesOptions *ListCounterexamplesOptions) (result *CounterexampleCollection, response *core.DetailedResponse, err error)

ListCounterexamples : List counterexamples List the counterexamples for a workspace. Counterexamples are examples that have been marked as irrelevant input.

func (*AssistantV1) ListDialogNodes

func (assistant *AssistantV1) ListDialogNodes(listDialogNodesOptions *ListDialogNodesOptions) (result *DialogNodeCollection, response *core.DetailedResponse, err error)

ListDialogNodes : List dialog nodes List the dialog nodes for a workspace.

func (*AssistantV1) ListEntities

func (assistant *AssistantV1) ListEntities(listEntitiesOptions *ListEntitiesOptions) (result *EntityCollection, response *core.DetailedResponse, err error)

ListEntities : List entities List the entities for a workspace.

func (*AssistantV1) ListExamples

func (assistant *AssistantV1) ListExamples(listExamplesOptions *ListExamplesOptions) (result *ExampleCollection, response *core.DetailedResponse, err error)

ListExamples : List user input examples List the user input examples for an intent, optionally including contextual entity mentions.

func (*AssistantV1) ListIntents

func (assistant *AssistantV1) ListIntents(listIntentsOptions *ListIntentsOptions) (result *IntentCollection, response *core.DetailedResponse, err error)

ListIntents : List intents List the intents for a workspace.

func (*AssistantV1) ListLogs

func (assistant *AssistantV1) ListLogs(listLogsOptions *ListLogsOptions) (result *LogCollection, response *core.DetailedResponse, err error)

ListLogs : List log events in a workspace List the events from the log of a specific workspace.

func (*AssistantV1) ListMentions

func (assistant *AssistantV1) ListMentions(listMentionsOptions *ListMentionsOptions) (result *EntityMentionCollection, response *core.DetailedResponse, err 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.

func (*AssistantV1) ListSynonyms

func (assistant *AssistantV1) ListSynonyms(listSynonymsOptions *ListSynonymsOptions) (result *SynonymCollection, response *core.DetailedResponse, err error)

ListSynonyms : List entity value synonyms List the synonyms for an entity value.

func (*AssistantV1) ListValues

func (assistant *AssistantV1) ListValues(listValuesOptions *ListValuesOptions) (result *ValueCollection, response *core.DetailedResponse, err error)

ListValues : List entity values List the values for an entity.

func (*AssistantV1) ListWorkspaces

func (assistant *AssistantV1) ListWorkspaces(listWorkspacesOptions *ListWorkspacesOptions) (result *WorkspaceCollection, response *core.DetailedResponse, err error)

ListWorkspaces : List workspaces List the workspaces associated with a Watson Assistant service instance.

func (*AssistantV1) Message

func (assistant *AssistantV1) Message(messageOptions *MessageOptions) (result *MessageResponse, response *core.DetailedResponse, err error)

Message : Get response to user input Send user input to a workspace and receive a response.

**Important:** This method has been superseded by the new v2 runtime API. The v2 API offers significant advantages, including ease of deployment, automatic state management, versioning, and search capabilities. For more information, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-api-overview).

func (*AssistantV1) NewCaptureGroup added in v1.3.0

func (assistant *AssistantV1) NewCaptureGroup(group string) (model *CaptureGroup, err error)

NewCaptureGroup : Instantiate CaptureGroup (Generic Model Constructor)

func (*AssistantV1) NewCounterexample added in v1.3.0

func (assistant *AssistantV1) NewCounterexample(text string) (model *Counterexample, err error)

NewCounterexample : Instantiate Counterexample (Generic Model Constructor)

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) NewCreateEntity added in v1.3.0

func (assistant *AssistantV1) NewCreateEntity(entity string) (model *CreateEntity, err error)

NewCreateEntity : Instantiate CreateEntity (Generic Model Constructor)

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) NewCreateIntent added in v1.3.0

func (assistant *AssistantV1) NewCreateIntent(intent string) (model *CreateIntent, err error)

NewCreateIntent : Instantiate CreateIntent (Generic Model Constructor)

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) NewCreateValue added in v1.3.0

func (assistant *AssistantV1) NewCreateValue(value string) (model *CreateValue, err error)

NewCreateValue : Instantiate CreateValue (Generic Model Constructor)

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) NewDialogNode added in v1.3.0

func (assistant *AssistantV1) NewDialogNode(dialogNode string) (model *DialogNode, err error)

NewDialogNode : Instantiate DialogNode (Generic Model Constructor)

func (*AssistantV1) NewDialogNodeAction added in v1.3.0

func (assistant *AssistantV1) NewDialogNodeAction(name string, resultVariable string) (model *DialogNodeAction, err error)

NewDialogNodeAction : Instantiate DialogNodeAction (Generic Model Constructor)

func (*AssistantV1) NewDialogNodeNextStep added in v1.3.0

func (assistant *AssistantV1) NewDialogNodeNextStep(behavior string) (model *DialogNodeNextStep, err error)

NewDialogNodeNextStep : Instantiate DialogNodeNextStep (Generic Model Constructor)

func (*AssistantV1) NewDialogNodeOutputGeneric added in v1.3.0

func (assistant *AssistantV1) NewDialogNodeOutputGeneric(responseType string) (model *DialogNodeOutputGeneric, err error)

NewDialogNodeOutputGeneric : Instantiate DialogNodeOutputGeneric (Generic Model Constructor)

func (*AssistantV1) NewDialogNodeOutputOptionsElement added in v1.3.0

func (assistant *AssistantV1) NewDialogNodeOutputOptionsElement(label string, value *DialogNodeOutputOptionsElementValue) (model *DialogNodeOutputOptionsElement, err error)

NewDialogNodeOutputOptionsElement : Instantiate DialogNodeOutputOptionsElement (Generic Model Constructor)

func (*AssistantV1) NewDialogSuggestion added in v1.3.0

func (assistant *AssistantV1) NewDialogSuggestion(label string, value *DialogSuggestionValue) (model *DialogSuggestion, err error)

NewDialogSuggestion : Instantiate DialogSuggestion (Generic Model Constructor)

func (*AssistantV1) NewDialogSuggestionResponseGeneric added in v1.3.0

func (assistant *AssistantV1) NewDialogSuggestionResponseGeneric(responseType string) (model *DialogSuggestionResponseGeneric, err error)

NewDialogSuggestionResponseGeneric : Instantiate DialogSuggestionResponseGeneric (Generic Model Constructor)

func (*AssistantV1) NewExample added in v1.3.0

func (assistant *AssistantV1) NewExample(text string) (model *Example, err error)

NewExample : Instantiate Example (Generic Model Constructor)

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) NewLogMessage added in v1.3.0

func (assistant *AssistantV1) NewLogMessage(level string, msg string) (model *LogMessage, err error)

NewLogMessage : Instantiate LogMessage (Generic Model Constructor)

func (*AssistantV1) NewMention added in v1.3.0

func (assistant *AssistantV1) NewMention(entity string, location []int64) (model *Mention, err error)

NewMention : Instantiate Mention (Generic Model Constructor)

func (*AssistantV1) NewMessageOptions

func (assistant *AssistantV1) NewMessageOptions(workspaceID string) *MessageOptions

NewMessageOptions : Instantiate MessageOptions

func (*AssistantV1) NewRuntimeEntity added in v1.3.0

func (assistant *AssistantV1) NewRuntimeEntity(entity string, location []int64, value string) (model *RuntimeEntity, err error)

NewRuntimeEntity : Instantiate RuntimeEntity (Generic Model Constructor)

func (*AssistantV1) NewRuntimeIntent added in v1.3.0

func (assistant *AssistantV1) NewRuntimeIntent(intent string, confidence float64) (model *RuntimeIntent, err error)

NewRuntimeIntent : Instantiate RuntimeIntent (Generic Model Constructor)

func (*AssistantV1) NewRuntimeResponseGeneric added in v1.3.0

func (assistant *AssistantV1) NewRuntimeResponseGeneric(responseType string) (model *RuntimeResponseGeneric, err error)

NewRuntimeResponseGeneric : Instantiate RuntimeResponseGeneric (Generic Model Constructor)

func (*AssistantV1) NewSynonym added in v1.3.0

func (assistant *AssistantV1) NewSynonym(synonym string) (model *Synonym, err error)

NewSynonym : Instantiate Synonym (Generic Model Constructor)

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) NewWebhook added in v1.3.0

func (assistant *AssistantV1) NewWebhook(URL string, name string) (model *Webhook, err error)

NewWebhook : Instantiate Webhook (Generic Model Constructor)

func (*AssistantV1) NewWebhookHeader added in v1.3.0

func (assistant *AssistantV1) NewWebhookHeader(name string, value string) (model *WebhookHeader, err error)

NewWebhookHeader : Instantiate WebhookHeader (Generic Model Constructor)

func (*AssistantV1) SetServiceURL added in v1.0.0

func (assistant *AssistantV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*AssistantV1) UpdateCounterexample

func (assistant *AssistantV1) UpdateCounterexample(updateCounterexampleOptions *UpdateCounterexampleOptions) (result *Counterexample, response *core.DetailedResponse, err error)

UpdateCounterexample : Update counterexample Update the text of a counterexample. Counterexamples are examples that have been marked as irrelevant input.

func (*AssistantV1) UpdateDialogNode

func (assistant *AssistantV1) UpdateDialogNode(updateDialogNodeOptions *UpdateDialogNodeOptions) (result *DialogNode, response *core.DetailedResponse, err error)

UpdateDialogNode : Update dialog node Update an existing dialog node with new or modified data.

If you want to update multiple dialog nodes with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) UpdateEntity

func (assistant *AssistantV1) UpdateEntity(updateEntityOptions *UpdateEntityOptions) (result *Entity, response *core.DetailedResponse, err 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.

If you want to update multiple entities with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) UpdateExample

func (assistant *AssistantV1) UpdateExample(updateExampleOptions *UpdateExampleOptions) (result *Example, response *core.DetailedResponse, err error)

UpdateExample : Update user input example Update the text of a user input example.

If you want to update multiple examples with a single API call, consider using the **[Update intent](#update-intent)** method instead.

func (*AssistantV1) UpdateIntent

func (assistant *AssistantV1) UpdateIntent(updateIntentOptions *UpdateIntentOptions) (result *Intent, response *core.DetailedResponse, err 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.

If you want to update multiple intents with a single API call, consider using the **[Update workspace](#update-workspace)** method instead.

func (*AssistantV1) UpdateSynonym

func (assistant *AssistantV1) UpdateSynonym(updateSynonymOptions *UpdateSynonymOptions) (result *Synonym, response *core.DetailedResponse, err error)

UpdateSynonym : Update entity value synonym Update an existing entity value synonym with new text.

If you want to update multiple synonyms with a single API call, consider using the **[Update entity](#update-entity)** or **[Update entity value](#update-entity-value)** method instead.

func (*AssistantV1) UpdateValue

func (assistant *AssistantV1) UpdateValue(updateValueOptions *UpdateValueOptions) (result *Value, response *core.DetailedResponse, err 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.

If you want to update multiple entity values with a single API call, consider using the **[Update entity](#update-entity)** method instead.

func (*AssistantV1) UpdateWorkspace

func (assistant *AssistantV1) UpdateWorkspace(updateWorkspaceOptions *UpdateWorkspaceOptions) (result *Workspace, response *core.DetailedResponse, err 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.

type AssistantV1Options

type AssistantV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator
	Version       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 : A recognized capture group for a pattern-based entity.

type Context

type Context map[string]interface{}

Context : State information for the conversation. To maintain state, include the context from the previous response.

func (*Context) GetConversationID added in v0.3.0

func (this *Context) GetConversationID() *string

GetConversationID : Allow user to get ConversationID

func (*Context) GetMetadata added in v0.3.0

func (this *Context) GetMetadata() *MessageContextMetadata

GetMetadata : Allow user to get Metadata

func (*Context) GetProperty added in v0.9.0

func (this *Context) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*Context) GetSystem added in v0.3.0

func (this *Context) GetSystem() *SystemResponse

GetSystem : Allow user to get System

func (*Context) SetConversationID added in v0.3.0

func (this *Context) SetConversationID(ConversationID *string)

SetConversationID : Allow user to set ConversationID

func (*Context) SetMetadata added in v0.3.0

func (this *Context) SetMetadata(Metadata *MessageContextMetadata)

SetMetadata : Allow user to set Metadata

func (*Context) SetProperty added in v0.9.0

func (this *Context) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*Context) SetSystem added in v0.3.0

func (this *Context) SetSystem(System *SystemResponse)

SetSystem : Allow user to set System

type Counterexample

type Counterexample 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.
	Text *string `json:"text" validate:"required"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	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 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.
	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
}

CreateCounterexampleOptions : The CreateCounterexample options.

func (*CreateCounterexampleOptions) SetHeaders

func (options *CreateCounterexampleOptions) SetHeaders(param map[string]string) *CreateCounterexampleOptions

SetHeaders : Allow user to set Headers

func (*CreateCounterexampleOptions) SetIncludeAudit added in v1.4.0

func (options *CreateCounterexampleOptions) SetIncludeAudit(includeAudit bool) *CreateCounterexampleOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*CreateCounterexampleOptions) SetText

SetText : Allow user to set Text

func (*CreateCounterexampleOptions) SetWorkspaceID

func (options *CreateCounterexampleOptions) SetWorkspaceID(workspaceID string) *CreateCounterexampleOptions

SetWorkspaceID : Allow user to set WorkspaceID

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.
	DialogNode *string `json:"dialog_node" validate:"required"`

	// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
	// characters.
	Conditions *string `json:"conditions,omitempty"`

	// The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
	Parent *string `json:"parent,omitempty"`

	// The ID of the previous sibling dialog node. This property is omitted 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://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
	Output *DialogNodeOutput `json:"output,omitempty"`

	// The context for the dialog node.
	Context map[string]interface{} `json:"context,omitempty"`

	// The metadata for the dialog node.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// The next step to execute following this dialog node.
	NextStep *DialogNodeNextStep `json:"next_step,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.
	Title *string `json:"title,omitempty"`

	// How the dialog node is processed.
	Type *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"`

	// An array of objects describing any actions to be invoked by the dialog node.
	Actions []DialogNodeAction `json:"actions,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.
	UserLabel *string `json:"user_label,omitempty"`

	// Whether the dialog node should be excluded from disambiguation suggestions. Valid only when **type**=`standard` or
	// `frame`.
	DisambiguationOptOut *bool `json:"disambiguation_opt_out,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
}

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 map[string]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) SetDisambiguationOptOut added in v1.2.0

func (options *CreateDialogNodeOptions) SetDisambiguationOptOut(disambiguationOptOut bool) *CreateDialogNodeOptions

SetDisambiguationOptOut : Allow user to set DisambiguationOptOut

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) SetIncludeAudit added in v1.4.0

func (options *CreateDialogNodeOptions) SetIncludeAudit(includeAudit bool) *CreateDialogNodeOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*CreateDialogNodeOptions) SetMetadata

func (options *CreateDialogNodeOptions) SetMetadata(metadata map[string]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) SetOutput

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) SetType added in v0.12.0

func (options *CreateDialogNodeOptions) SetType(typeVar string) *CreateDialogNodeOptions

SetType : Allow user to set Type

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.
	// - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
	// that you want to enable. (Any entity content specified with the request is ignored.).
	Entity *string `json:"entity" validate:"required"`

	// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// Any metadata related to the entity.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Whether to use fuzzy matching for the entity.
	FuzzyMatch *bool `json:"fuzzy_match,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// An array of objects describing the entity values.
	Values []CreateValue `json:"values,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.
	// - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
	// that you want to enable. (Any entity content specified with the request is ignored.).
	Entity *string `json:"entity" validate:"required"`

	// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// Any metadata related to the entity.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Whether to use fuzzy matching for the entity.
	FuzzyMatch *bool `json:"fuzzy_match,omitempty"`

	// An array of objects describing the entity values.
	Values []CreateValue `json:"values,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
}

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) SetIncludeAudit added in v1.4.0

func (options *CreateEntityOptions) SetIncludeAudit(includeAudit bool) *CreateEntityOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*CreateEntityOptions) SetMetadata

func (options *CreateEntityOptions) SetMetadata(metadata map[string]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 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.
	Text *string `json:"text" validate:"required"`

	// An array of contextual entity mentions.
	Mentions []Mention `json:"mentions,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
}

CreateExampleOptions : The CreateExample options.

func (*CreateExampleOptions) SetHeaders

func (options *CreateExampleOptions) SetHeaders(param map[string]string) *CreateExampleOptions

SetHeaders : Allow user to set Headers

func (*CreateExampleOptions) SetIncludeAudit added in v1.4.0

func (options *CreateExampleOptions) SetIncludeAudit(includeAudit bool) *CreateExampleOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*CreateExampleOptions) SetIntent

func (options *CreateExampleOptions) SetIntent(intent string) *CreateExampleOptions

SetIntent : Allow user to set Intent

func (*CreateExampleOptions) SetMentions

func (options *CreateExampleOptions) SetMentions(mentions []Mention) *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-`.
	Intent *string `json:"intent" validate:"required"`

	// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// An array of user input examples for the intent.
	Examples []Example `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-`.
	Intent *string `json:"intent" validate:"required"`

	// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// An array of user input examples for the intent.
	Examples []Example `json:"examples,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
}

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 []Example) *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) SetIncludeAudit added in v1.4.0

func (options *CreateIntentOptions) SetIncludeAudit(includeAudit bool) *CreateIntentOptions

SetIncludeAudit : Allow user to set IncludeAudit

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.
	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
}

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) SetIncludeAudit added in v1.4.0

func (options *CreateSynonymOptions) SetIncludeAudit(includeAudit bool) *CreateSynonymOptions

SetIncludeAudit : Allow user to set IncludeAudit

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.
	Value *string `json:"value" validate:"required"`

	// Any metadata related to the entity value.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Specifies the type of entity value.
	Type *string `json:"type,omitempty"`

	// An array of synonyms for the entity value. A value can specify either synonyms or patterns (depending on the value
	// 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.
	Synonyms []string `json:"synonyms,omitempty"`

	// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value
	// type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
	Patterns []string `json:"patterns,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,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.
	Value *string `json:"value" validate:"required"`

	// Any metadata related to the entity value.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Specifies the type of entity value.
	Type *string `json:"type,omitempty"`

	// An array of synonyms for the entity value. A value can specify either synonyms or patterns (depending on the value
	// 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.
	Synonyms []string `json:"synonyms,omitempty"`

	// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value
	// type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
	Patterns []string `json:"patterns,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
}

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) SetIncludeAudit added in v1.4.0

func (options *CreateValueOptions) SetIncludeAudit(includeAudit bool) *CreateValueOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*CreateValueOptions) SetMetadata

func (options *CreateValueOptions) SetMetadata(metadata map[string]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) SetType added in v0.12.0

func (options *CreateValueOptions) SetType(typeVar string) *CreateValueOptions

SetType : Allow user to set Type

func (*CreateValueOptions) SetValue

func (options *CreateValueOptions) SetValue(value string) *CreateValueOptions

SetValue : Allow user to set Value

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.
	Name *string `json:"name,omitempty"`

	// The description of the workspace. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The language of the workspace.
	Language *string `json:"language,omitempty"`

	// Any metadata related to the workspace.
	Metadata map[string]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"`

	// An array of objects defining the intents for the workspace.
	Intents []CreateIntent `json:"intents,omitempty"`

	// An array of objects describing the entities for the workspace.
	Entities []CreateEntity `json:"entities,omitempty"`

	// An array of objects describing the dialog nodes in the workspace.
	DialogNodes []DialogNode `json:"dialog_nodes,omitempty"`

	// An array of objects defining input examples that have been marked as irrelevant input.
	Counterexamples []Counterexample `json:"counterexamples,omitempty"`

	Webhooks []Webhook `json:"webhooks,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
}

CreateWorkspaceOptions : The CreateWorkspace options.

func (*CreateWorkspaceOptions) SetCounterexamples

func (options *CreateWorkspaceOptions) SetCounterexamples(counterexamples []Counterexample) *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 []DialogNode) *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) SetIncludeAudit added in v1.4.0

func (options *CreateWorkspaceOptions) SetIncludeAudit(includeAudit bool) *CreateWorkspaceOptions

SetIncludeAudit : Allow user to set IncludeAudit

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 map[string]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

func (*CreateWorkspaceOptions) SetWebhooks added in v1.2.0

func (options *CreateWorkspaceOptions) SetWebhooks(webhooks []Webhook) *CreateWorkspaceOptions

SetWebhooks : Allow user to set Webhooks

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

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. This string must conform to the following restrictions:
	// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
	DialogNode *string `json:"dialog_node" validate:"required"`

	// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
	// characters.
	Conditions *string `json:"conditions,omitempty"`

	// The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
	Parent *string `json:"parent,omitempty"`

	// The ID of the previous sibling dialog node. This property is omitted 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://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
	Output *DialogNodeOutput `json:"output,omitempty"`

	// The context for the dialog node.
	Context map[string]interface{} `json:"context,omitempty"`

	// The metadata for the dialog node.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// The next step to execute following this dialog node.
	NextStep *DialogNodeNextStep `json:"next_step,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.
	Title *string `json:"title,omitempty"`

	// How the dialog node is processed.
	Type *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"`

	// An array of objects describing any actions to be invoked by the dialog node.
	Actions []DialogNodeAction `json:"actions,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.
	UserLabel *string `json:"user_label,omitempty"`

	// Whether the dialog node should be excluded from disambiguation suggestions. Valid only when **type**=`standard` or
	// `frame`.
	DisambiguationOptOut *bool `json:"disambiguation_opt_out,omitempty"`

	// For internal use only.
	Disabled *bool `json:"disabled,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,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.
	Type *string `json:"type,omitempty"`

	// A map of key/value pairs to be provided to the action.
	Parameters map[string]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 map[string]interface{}

DialogNodeOutput : The output of the dialog node. For more information about how to specify dialog node output, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).

func (*DialogNodeOutput) GetGeneric added in v0.3.0

func (this *DialogNodeOutput) GetGeneric() *[]DialogNodeOutputGeneric

GetGeneric : Allow user to get Generic

func (*DialogNodeOutput) GetModifiers added in v0.3.0

func (this *DialogNodeOutput) GetModifiers() *DialogNodeOutputModifiers

GetModifiers : Allow user to get Modifiers

func (*DialogNodeOutput) GetProperty added in v0.9.0

func (this *DialogNodeOutput) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*DialogNodeOutput) SetGeneric added in v0.3.0

func (this *DialogNodeOutput) SetGeneric(Generic *[]DialogNodeOutputGeneric)

SetGeneric : Allow user to set Generic

func (*DialogNodeOutput) SetModifiers added in v0.3.0

func (this *DialogNodeOutput) SetModifiers(Modifiers *DialogNodeOutputModifiers)

SetModifiers : Allow user to set Modifiers

func (*DialogNodeOutput) SetProperty added in v0.9.0

func (this *DialogNodeOutput) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

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.
	//
	// **Note:** The **search_skill** response type is used only by the v2 runtime API.
	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`.
	Title *string `json:"title,omitempty"`

	// An optional description to show with the response. Valid only when **response_type**=`image` or `option`.
	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`.
	MessageToHumanAgent *string `json:"message_to_human_agent,omitempty"`

	// The text of the search query. This can be either a natural-language query or a query that uses the Discovery query
	// language syntax, depending on the value of the **query_type** property. For more information, see the [Discovery
	// service documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-operators#query-operators).
	// Required when **response_type**=`search_skill`.
	Query *string `json:"query,omitempty"`

	// The type of the search query. Required when **response_type**=`search_skill`.
	QueryType *string `json:"query_type,omitempty"`

	// An optional filter that narrows the set of documents to be searched. For more information, see the [Discovery
	// service documentation]([Discovery service
	// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parameters#filter).
	Filter *string `json:"filter,omitempty"`

	// The version of the Discovery service API to use for the query.
	DiscoveryVersion *string `json:"discovery_version,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 {

	// An input object that includes the input text.
	Input *MessageInput `json:"input,omitempty"`

	// An array of intents to be used while processing the input.
	//
	// **Note:** This property is supported for backward compatibility with applications that use the v1 **Get response to
	// user input** method.
	Intents []RuntimeIntent `json:"intents,omitempty"`

	// An array of entities to be used while processing the user input.
	//
	// **Note:** This property is supported for backward compatibility with applications that use the v1 **Get response to
	// user input** method.
	Entities []RuntimeEntity `json:"entities,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 (`\n`), Markdown tagging, or other special
	// characters, if supported by the channel.
	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 DialogSuggestion

type DialogSuggestion struct {

	// The user-facing label for the disambiguation option. This label is taken from the **title** or **user_label**
	// property of the corresponding dialog node, depending on the disambiguation options.
	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 *DialogSuggestionOutput `json:"output,omitempty"`

	// The ID of the dialog node that the **label** property is taken from. The **label** property is populated using the
	// value of the dialog node's **user_label** property.
	DialogNode *string `json:"dialog_node,omitempty"`
}

DialogSuggestion : DialogSuggestion struct

type DialogSuggestionOutput added in v0.12.0

type DialogSuggestionOutput map[string]interface{}

DialogSuggestionOutput : The dialog output that will be returned from the Watson Assistant service if the user selects the corresponding option.

func (*DialogSuggestionOutput) GetGeneric added in v0.12.0

GetGeneric : Allow user to get Generic

func (*DialogSuggestionOutput) GetNodesVisited added in v0.12.0

func (this *DialogSuggestionOutput) GetNodesVisited() *[]string

GetNodesVisited : Allow user to get NodesVisited

func (*DialogSuggestionOutput) GetNodesVisitedDetails added in v0.12.0

func (this *DialogSuggestionOutput) GetNodesVisitedDetails() *[]DialogNodeVisitedDetails

GetNodesVisitedDetails : Allow user to get NodesVisitedDetails

func (*DialogSuggestionOutput) GetProperty added in v0.12.0

func (this *DialogSuggestionOutput) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*DialogSuggestionOutput) GetText added in v0.12.0

func (this *DialogSuggestionOutput) GetText() *[]string

GetText : Allow user to get Text

func (*DialogSuggestionOutput) SetGeneric added in v0.12.0

func (this *DialogSuggestionOutput) SetGeneric(Generic *[]DialogSuggestionResponseGeneric)

SetGeneric : Allow user to set Generic

func (*DialogSuggestionOutput) SetNodesVisited added in v0.12.0

func (this *DialogSuggestionOutput) SetNodesVisited(NodesVisited *[]string)

SetNodesVisited : Allow user to set NodesVisited

func (*DialogSuggestionOutput) SetNodesVisitedDetails added in v0.12.0

func (this *DialogSuggestionOutput) SetNodesVisitedDetails(NodesVisitedDetails *[]DialogNodeVisitedDetails)

SetNodesVisitedDetails : Allow user to set NodesVisitedDetails

func (*DialogSuggestionOutput) SetProperty added in v0.12.0

func (this *DialogSuggestionOutput) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*DialogSuggestionOutput) SetText added in v0.12.0

func (this *DialogSuggestionOutput) SetText(Text *[]string)

SetText : Allow user to set Text

type DialogSuggestionResponseGeneric added in v0.12.0

type DialogSuggestionResponseGeneric 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 **search_skill** response type is is used only by the v2 runtime API.
	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 **title** property of the relevant node.
	Topic *string `json:"topic,omitempty"`

	// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated using the
	// value of the dialog node's **title** property.
	DialogNode *string `json:"dialog_node,omitempty"`
}

DialogSuggestionResponseGeneric : DialogSuggestionResponseGeneric struct

type DialogSuggestionValue

type DialogSuggestionValue struct {

	// An input object that includes the input text.
	Input *MessageInput `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. This string must conform to the following restrictions:
	// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
	// - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
	// that you want to enable. (Any entity content specified with the request is ignored.).
	Entity *string `json:"entity" validate:"required"`

	// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// Any metadata related to the entity.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Whether to use fuzzy matching for the entity.
	FuzzyMatch *bool `json:"fuzzy_match,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// An array of objects describing the entity values.
	Values []Value `json:"values,omitempty"`
}

Entity : Entity struct

type EntityCollection

type EntityCollection struct {

	// An array of objects describing the entities defined for the workspace.
	Entities []Entity `json:"entities" validate:"required"`

	// The pagination data for the returned objects.
	Pagination *Pagination `json:"pagination" validate:"required"`
}

EntityCollection : An array of objects describing the entities for the workspace.

type EntityMention

type EntityMention struct {

	// The text of the user input example.
	Text *string `json:"text" validate:"required"`

	// The name of the intent.
	Intent *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 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.
	Text *string `json:"text" validate:"required"`

	// An array of contextual entity mentions.
	Mentions []Mention `json:"mentions,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,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

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"`

	// Indicates how the returned workspace data will be sorted. This parameter is valid only if **export**=`true`. Specify
	// `sort=stable` to sort all workspace objects by unique identifier, in ascending alphabetical order.
	Sort *string `json:"sort,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) SetSort added in v0.2.0

func (options *GetWorkspaceOptions) SetSort(sort string) *GetWorkspaceOptions

SetSort : Allow user to set Sort

func (*GetWorkspaceOptions) SetWorkspaceID

func (options *GetWorkspaceOptions) SetWorkspaceID(workspaceID string) *GetWorkspaceOptions

SetWorkspaceID : Allow user to set WorkspaceID

type Intent

type Intent 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-`.
	Intent *string `json:"intent" validate:"required"`

	// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// An array of user input examples for the intent.
	Examples []Example `json:"examples,omitempty"`
}

Intent : Intent struct

type IntentCollection

type IntentCollection struct {

	// An array of objects describing the intents defined for the workspace.
	Intents []Intent `json:"intents" validate:"required"`

	// The pagination data for the returned objects.
	Pagination *Pagination `json:"pagination" validate:"required"`
}

IntentCollection : IntentCollection 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 `request.context.system.assistant_id`,
	// `workspace_id`, or `request.context.metadata.deployment`. For more information, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).
	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"`

	// The attribute by which returned counterexamples 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) SetPageLimit

func (options *ListCounterexamplesOptions) SetPageLimit(pageLimit int64) *ListCounterexamplesOptions

SetPageLimit : Allow user to set PageLimit

func (*ListCounterexamplesOptions) SetSort

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"`

	// The attribute by which returned dialog nodes 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) 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"`

	// The attribute by which returned entities 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) 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"`

	// The attribute by which returned examples 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) 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"`

	// The attribute by which returned intents 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) 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://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).
	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"`

	// The attribute by which returned entity value synonyms 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) 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"`

	// The attribute by which returned entity values 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) 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"`

	// The attribute by which returned workspaces 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) 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 Log added in v0.7.0

type Log struct {

	// A request sent to 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"`
}

Log : Log struct

type LogCollection

type LogCollection struct {

	// An array of objects describing log events.
	Logs []Log `json:"logs" validate:"required"`

	// The pagination data for the returned objects.
	Pagination *LogPagination `json:"pagination" validate:"required"`
}

LogCollection : LogCollection 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 Mention added in v0.7.0

type Mention 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"`
}

Mention : A mention of a contextual entity.

type MessageContextMetadata added in v0.2.0

type MessageContextMetadata struct {

	// A label identifying the deployment environment, used for filtering log data. This string cannot contain carriage
	// return, newline, or tab characters.
	Deployment *string `json:"deployment,omitempty"`

	// A string value that identifies the user who is interacting with the workspace. The client must provide a unique
	// identifier for each individual end user who accesses the application. For Plus and Premium plans, this user ID is
	// used to identify unique users for billing purposes. This string cannot contain carriage return, newline, or tab
	// characters.
	UserID *string `json:"user_id,omitempty"`
}

MessageContextMetadata : Metadata related to the message.

type MessageInput

type MessageInput map[string]interface{}

MessageInput : An input object that includes the input text.

func (*MessageInput) GetOriginalText added in v1.6.0

func (this *MessageInput) GetOriginalText() *string

GetOriginalText : Allow user to get OriginalText

func (*MessageInput) GetProperty added in v0.9.0

func (this *MessageInput) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*MessageInput) GetSpellingAutoCorrect added in v1.6.0

func (this *MessageInput) GetSpellingAutoCorrect() *bool

GetSpellingAutoCorrect : Allow user to get SpellingAutoCorrect

func (*MessageInput) GetSpellingSuggestions added in v1.6.0

func (this *MessageInput) GetSpellingSuggestions() *bool

GetSpellingSuggestions : Allow user to get SpellingSuggestions

func (*MessageInput) GetSuggestedText added in v1.6.0

func (this *MessageInput) GetSuggestedText() *string

GetSuggestedText : Allow user to get SuggestedText

func (*MessageInput) GetText added in v0.7.0

func (this *MessageInput) GetText() *string

GetText : Allow user to get Text

func (*MessageInput) SetOriginalText added in v1.6.0

func (this *MessageInput) SetOriginalText(OriginalText *string)

SetOriginalText : Allow user to set OriginalText

func (*MessageInput) SetProperty added in v0.9.0

func (this *MessageInput) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*MessageInput) SetSpellingAutoCorrect added in v1.6.0

func (this *MessageInput) SetSpellingAutoCorrect(SpellingAutoCorrect *bool)

SetSpellingAutoCorrect : Allow user to set SpellingAutoCorrect

func (*MessageInput) SetSpellingSuggestions added in v1.6.0

func (this *MessageInput) SetSpellingSuggestions(SpellingSuggestions *bool)

SetSpellingSuggestions : Allow user to set SpellingSuggestions

func (*MessageInput) SetSuggestedText added in v1.6.0

func (this *MessageInput) SetSuggestedText(SuggestedText *string)

SetSuggestedText : Allow user to set SuggestedText

func (*MessageInput) SetText added in v0.7.0

func (this *MessageInput) SetText(Text *string)

SetText : Allow user to set Text

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 *MessageInput `json:"input,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"`

	// 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"`

	// 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. To maintain state, include the context from the previous response.
	Context *Context `json:"context,omitempty"`

	// An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the
	// log.
	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 *MessageInput) *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 *MessageInput `json:"input,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"`

	// 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"`

	// 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. To maintain state, include the context from the previous response.
	Context *Context `json:"context,omitempty"`

	// An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the
	// log.
	Output *OutputData `json:"output,omitempty"`

	// An array of objects describing any actions requested by the dialog node.
	Actions []DialogNodeAction `json:"actions,omitempty"`
}

MessageRequest : A request sent to the workspace, including the user input and context.

type MessageResponse

type MessageResponse struct {

	// An input object that includes the input text.
	Input *MessageInput `json:"input" validate:"required"`

	// 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. To maintain state, include the context from the previous response.
	Context *Context `json:"context" validate:"required"`

	// An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the
	// log.
	Output *OutputData `json:"output" validate:"required"`

	// An array of objects describing any actions requested by the dialog node.
	Actions []DialogNodeAction `json:"actions,omitempty"`
}

MessageResponse : The response sent by the workspace, including the output text, detected intents and entities, and context.

type OutputData

type OutputData map[string]interface{}

OutputData : An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the log.

func (*OutputData) GetGeneric added in v0.3.0

func (this *OutputData) GetGeneric() *[]RuntimeResponseGeneric

GetGeneric : Allow user to get Generic

func (*OutputData) GetLogMessages added in v0.3.0

func (this *OutputData) GetLogMessages() *[]LogMessage

GetLogMessages : Allow user to get LogMessages

func (*OutputData) GetNodesVisited added in v0.3.0

func (this *OutputData) GetNodesVisited() *[]string

GetNodesVisited : Allow user to get NodesVisited

func (*OutputData) GetNodesVisitedDetails added in v0.3.0

func (this *OutputData) GetNodesVisitedDetails() *[]DialogNodeVisitedDetails

GetNodesVisitedDetails : Allow user to get NodesVisitedDetails

func (*OutputData) GetProperty added in v0.9.0

func (this *OutputData) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*OutputData) GetText added in v0.3.0

func (this *OutputData) GetText() *[]string

GetText : Allow user to get Text

func (*OutputData) SetGeneric added in v0.3.0

func (this *OutputData) SetGeneric(Generic *[]RuntimeResponseGeneric)

SetGeneric : Allow user to set Generic

func (*OutputData) SetLogMessages added in v0.3.0

func (this *OutputData) SetLogMessages(LogMessages *[]LogMessage)

SetLogMessages : Allow user to set LogMessages

func (*OutputData) SetNodesVisited added in v0.3.0

func (this *OutputData) SetNodesVisited(NodesVisited *[]string)

SetNodesVisited : Allow user to set NodesVisited

func (*OutputData) SetNodesVisitedDetails added in v0.3.0

func (this *OutputData) SetNodesVisitedDetails(NodesVisitedDetails *[]DialogNodeVisitedDetails)

SetNodesVisitedDetails : Allow user to set NodesVisitedDetails

func (*OutputData) SetProperty added in v0.9.0

func (this *OutputData) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*OutputData) SetText added in v0.3.0

func (this *OutputData) SetText(Text *[]string)

SetText : Allow user to set Text

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 entity value that was recognized in the user input.
	Value *string `json:"value" validate:"required"`

	// A decimal percentage that represents Watson's confidence in the recognized entity.
	Confidence *float64 `json:"confidence,omitempty"`

	// Any metadata for the entity.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// The recognized capture groups for the entity, as defined by the entity pattern.
	Groups []CaptureGroup `json:"groups,omitempty"`

	// An object containing detailed information about the entity recognized in the user input. This property is included
	// only if the new system entities are enabled for the workspace.
	//
	// For more information about how the new system entities are interpreted, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-beta-system-entities).
	Interpretation *RuntimeEntityInterpretation `json:"interpretation,omitempty"`

	// An array of possible alternative values that the user might have intended instead of the value returned in the
	// **value** property. This property is returned only for `@sys-time` and `@sys-date` entities when the user's input is
	// ambiguous.
	//
	// This property is included only if the new system entities are enabled for the workspace.
	Alternatives []RuntimeEntityAlternative `json:"alternatives,omitempty"`

	// An object describing the role played by a system entity that is specifies the beginning or end of a range recognized
	// in the user input. This property is included only if the new system entities are enabled for the workspace.
	Role *RuntimeEntityRole `json:"role,omitempty"`
}

RuntimeEntity : A term from the request that was identified as an entity.

type RuntimeEntityAlternative added in v1.5.0

type RuntimeEntityAlternative struct {

	// The entity value that was recognized in the user input.
	Value *string `json:"value,omitempty"`

	// A decimal percentage that represents Watson's confidence in the recognized entity.
	Confidence *float64 `json:"confidence,omitempty"`
}

RuntimeEntityAlternative : An alternative value for the recognized entity.

type RuntimeEntityInterpretation added in v1.4.0

type RuntimeEntityInterpretation struct {

	// The calendar used to represent a recognized date (for example, `Gregorian`).
	CalendarType *string `json:"calendar_type,omitempty"`

	// A unique identifier used to associate a recognized time and date. If the user input contains a date and time that
	// are mentioned together (for example, `Today at 5`, the same **datetime_link** value is returned for both the
	// `@sys-date` and `@sys-time` entities).
	DatetimeLink *string `json:"datetime_link,omitempty"`

	// A locale-specific holiday name (such as `thanksgiving` or `christmas`). This property is included when a `@sys-date`
	// entity is recognized based on a holiday name in the user input.
	Festival *string `json:"festival,omitempty"`

	// The precision or duration of a time range specified by a recognized `@sys-time` or `@sys-date` entity.
	Granularity *string `json:"granularity,omitempty"`

	// A unique identifier used to associate multiple recognized `@sys-date`, `@sys-time`, or `@sys-number` entities that
	// are recognized as a range of values in the user's input (for example, `from July 4 until July 14` or `from 20 to
	// 25`).
	RangeLink *string `json:"range_link,omitempty"`

	// The word in the user input that indicates that a `sys-date` or `sys-time` entity is part of an implied range where
	// only one date or time is specified (for example, `since` or `until`).
	RangeModifier *string `json:"range_modifier,omitempty"`

	// A recognized mention of a relative day, represented numerically as an offset from the current date (for example,
	// `-1` for `yesterday` or `10` for `in ten days`).
	RelativeDay *float64 `json:"relative_day,omitempty"`

	// A recognized mention of a relative month, represented numerically as an offset from the current month (for example,
	// `1` for `next month` or `-3` for `three months ago`).
	RelativeMonth *float64 `json:"relative_month,omitempty"`

	// A recognized mention of a relative week, represented numerically as an offset from the current week (for example,
	// `2` for `in two weeks` or `-1` for `last week).
	RelativeWeek *float64 `json:"relative_week,omitempty"`

	// A recognized mention of a relative date range for a weekend, represented numerically as an offset from the current
	// weekend (for example, `0` for `this weekend` or `-1` for `last weekend`).
	RelativeWeekend *float64 `json:"relative_weekend,omitempty"`

	// A recognized mention of a relative year, represented numerically as an offset from the current year (for example,
	// `1` for `next year` or `-5` for `five years ago`).
	RelativeYear *float64 `json:"relative_year,omitempty"`

	// A recognized mention of a specific date, represented numerically as the date within the month (for example, `30` for
	// `June 30`.).
	SpecificDay *float64 `json:"specific_day,omitempty"`

	// A recognized mention of a specific day of the week as a lowercase string (for example, `monday`).
	SpecificDayOfWeek *string `json:"specific_day_of_week,omitempty"`

	// A recognized mention of a specific month, represented numerically (for example, `7` for `July`).
	SpecificMonth *float64 `json:"specific_month,omitempty"`

	// A recognized mention of a specific quarter, represented numerically (for example, `3` for `the third quarter`).
	SpecificQuarter *float64 `json:"specific_quarter,omitempty"`

	// A recognized mention of a specific year (for example, `2016`).
	SpecificYear *float64 `json:"specific_year,omitempty"`

	// A recognized numeric value, represented as an integer or double.
	NumericValue *float64 `json:"numeric_value,omitempty"`

	// The type of numeric value recognized in the user input (`integer` or `rational`).
	Subtype *string `json:"subtype,omitempty"`

	// A recognized term for a time that was mentioned as a part of the day in the user's input (for example, `morning` or
	// `afternoon`).
	PartOfDay *string `json:"part_of_day,omitempty"`

	// A recognized mention of a relative hour, represented numerically as an offset from the current hour (for example,
	// `3` for `in three hours` or `-1` for `an hour ago`).
	RelativeHour *float64 `json:"relative_hour,omitempty"`

	// A recognized mention of a relative time, represented numerically as an offset in minutes from the current time (for
	// example, `5` for `in five minutes` or `-15` for `fifteen minutes ago`).
	RelativeMinute *float64 `json:"relative_minute,omitempty"`

	// A recognized mention of a relative time, represented numerically as an offset in seconds from the current time (for
	// example, `10` for `in ten seconds` or `-30` for `thirty seconds ago`).
	RelativeSecond *float64 `json:"relative_second,omitempty"`

	// A recognized specific hour mentioned as part of a time value (for example, `10` for `10:15 AM`.).
	SpecificHour *float64 `json:"specific_hour,omitempty"`

	// A recognized specific minute mentioned as part of a time value (for example, `15` for `10:15 AM`.).
	SpecificMinute *float64 `json:"specific_minute,omitempty"`

	// A recognized specific second mentioned as part of a time value (for example, `30` for `10:15:30 AM`.).
	SpecificSecond *float64 `json:"specific_second,omitempty"`

	// A recognized time zone mentioned as part of a time value (for example, `EST`).
	Timezone *string `json:"timezone,omitempty"`
}

RuntimeEntityInterpretation : RuntimeEntityInterpretation struct

type RuntimeEntityRole added in v1.4.0

type RuntimeEntityRole struct {

	// The relationship of the entity to the range.
	Type *string `json:"type,omitempty"`
}

RuntimeEntityRole : An object describing the role played by a system entity that is specifies the beginning or end of a range recognized in the user input. This property is included only if the new system entities are enabled for the workspace.

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 RuntimeResponseGeneric added in v0.12.0

type RuntimeResponseGeneric 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"`

	// 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 **title** property of the relevant node.
	Topic *string `json:"topic,omitempty"`

	// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated using the
	// value of the dialog node's **title** property.
	DialogNode *string `json:"dialog_node,omitempty"`

	// An array of objects describing the possible matching dialog nodes from which the user can choose.
	Suggestions []DialogSuggestion `json:"suggestions,omitempty"`
}

RuntimeResponseGeneric : RuntimeResponseGeneric struct

type Synonym

type Synonym struct {

	// 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.
	Synonym *string `json:"synonym" validate:"required"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	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 SystemResponse

type SystemResponse map[string]interface{}

SystemResponse : For internal use only.

func (*SystemResponse) GetProperty added in v0.9.0

func (this *SystemResponse) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*SystemResponse) SetProperty added in v0.9.0

func (this *SystemResponse) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

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 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.
	NewText *string `json:"new_text,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
}

UpdateCounterexampleOptions : The UpdateCounterexample options.

func (*UpdateCounterexampleOptions) SetHeaders

func (options *UpdateCounterexampleOptions) SetHeaders(param map[string]string) *UpdateCounterexampleOptions

SetHeaders : Allow user to set Headers

func (*UpdateCounterexampleOptions) SetIncludeAudit added in v1.4.0

func (options *UpdateCounterexampleOptions) SetIncludeAudit(includeAudit bool) *UpdateCounterexampleOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*UpdateCounterexampleOptions) SetNewText

func (options *UpdateCounterexampleOptions) SetNewText(newText string) *UpdateCounterexampleOptions

SetNewText : Allow user to set NewText

func (*UpdateCounterexampleOptions) SetText

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"`

	// The dialog node ID. This string must conform to the following restrictions:
	// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
	NewDialogNode *string `json:"new_dialog_node,omitempty"`

	// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters.
	NewDescription *string `json:"new_description,omitempty"`

	// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
	// characters.
	NewConditions *string `json:"new_conditions,omitempty"`

	// The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
	NewParent *string `json:"new_parent,omitempty"`

	// The ID of the previous sibling dialog node. This property is omitted if the dialog node has no previous sibling.
	NewPreviousSibling *string `json:"new_previous_sibling,omitempty"`

	// The output of the dialog node. For more information about how to specify dialog node output, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
	NewOutput *DialogNodeOutput `json:"new_output,omitempty"`

	// The context for the dialog node.
	NewContext map[string]interface{} `json:"new_context,omitempty"`

	// The metadata for the dialog node.
	NewMetadata map[string]interface{} `json:"new_metadata,omitempty"`

	// The next step to execute following this dialog node.
	NewNextStep *DialogNodeNextStep `json:"new_next_step,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.
	NewTitle *string `json:"new_title,omitempty"`

	// How the dialog node is processed.
	NewType *string `json:"new_type,omitempty"`

	// How an `event_handler` node is processed.
	NewEventName *string `json:"new_event_name,omitempty"`

	// The location in the dialog context where output is stored.
	NewVariable *string `json:"new_variable,omitempty"`

	// An array of objects describing any actions to be invoked by the dialog node.
	NewActions []DialogNodeAction `json:"new_actions,omitempty"`

	// Whether this top-level dialog node can be digressed into.
	NewDigressIn *string `json:"new_digress_in,omitempty"`

	// Whether this dialog node can be returned to after a digression.
	NewDigressOut *string `json:"new_digress_out,omitempty"`

	// Whether the user can digress to top-level nodes while filling out slots.
	NewDigressOutSlots *string `json:"new_digress_out_slots,omitempty"`

	// A label that can be displayed externally to describe the purpose of the node to users.
	NewUserLabel *string `json:"new_user_label,omitempty"`

	// Whether the dialog node should be excluded from disambiguation suggestions. Valid only when **type**=`standard` or
	// `frame`.
	NewDisambiguationOptOut *bool `json:"new_disambiguation_opt_out,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
}

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) SetIncludeAudit added in v1.4.0

func (options *UpdateDialogNodeOptions) SetIncludeAudit(includeAudit bool) *UpdateDialogNodeOptions

SetIncludeAudit : Allow user to set IncludeAudit

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 map[string]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) SetNewDisambiguationOptOut added in v1.2.0

func (options *UpdateDialogNodeOptions) SetNewDisambiguationOptOut(newDisambiguationOptOut bool) *UpdateDialogNodeOptions

SetNewDisambiguationOptOut : Allow user to set NewDisambiguationOptOut

func (*UpdateDialogNodeOptions) SetNewEventName

func (options *UpdateDialogNodeOptions) SetNewEventName(newEventName string) *UpdateDialogNodeOptions

SetNewEventName : Allow user to set NewEventName

func (*UpdateDialogNodeOptions) SetNewMetadata

func (options *UpdateDialogNodeOptions) SetNewMetadata(newMetadata map[string]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) SetNewType added in v0.12.0

func (options *UpdateDialogNodeOptions) SetNewType(newType string) *UpdateDialogNodeOptions

SetNewType : Allow user to set NewType

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) 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"`

	// 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-`.
	NewEntity *string `json:"new_entity,omitempty"`

	// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
	NewDescription *string `json:"new_description,omitempty"`

	// Any metadata related to the entity.
	NewMetadata map[string]interface{} `json:"new_metadata,omitempty"`

	// Whether to use fuzzy matching for the entity.
	NewFuzzyMatch *bool `json:"new_fuzzy_match,omitempty"`

	// An array of objects describing the entity values.
	NewValues []CreateValue `json:"new_values,omitempty"`

	// Whether the new data is to be appended to the existing data in the entity. If **append**=`false`, elements included
	// in the new data completely replace the corresponding existing elements, including all subelements. For example, if
	// the new data for the entity includes **values** and **append**=`false`, all existing values for the entity are
	// discarded and replaced with the new values.
	//
	// 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"`

	// 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
}

UpdateEntityOptions : The UpdateEntity options.

func (*UpdateEntityOptions) SetAppend added in v1.4.0

func (options *UpdateEntityOptions) SetAppend(append bool) *UpdateEntityOptions

SetAppend : Allow user to set Append

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) SetIncludeAudit added in v1.4.0

func (options *UpdateEntityOptions) SetIncludeAudit(includeAudit bool) *UpdateEntityOptions

SetIncludeAudit : Allow user to set IncludeAudit

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 map[string]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.
	NewText *string `json:"new_text,omitempty"`

	// An array of contextual entity mentions.
	NewMentions []Mention `json:"new_mentions,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
}

UpdateExampleOptions : The UpdateExample options.

func (*UpdateExampleOptions) SetHeaders

func (options *UpdateExampleOptions) SetHeaders(param map[string]string) *UpdateExampleOptions

SetHeaders : Allow user to set Headers

func (*UpdateExampleOptions) SetIncludeAudit added in v1.4.0

func (options *UpdateExampleOptions) SetIncludeAudit(includeAudit bool) *UpdateExampleOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*UpdateExampleOptions) SetIntent

func (options *UpdateExampleOptions) SetIntent(intent string) *UpdateExampleOptions

SetIntent : Allow user to set Intent

func (*UpdateExampleOptions) SetNewMentions

func (options *UpdateExampleOptions) SetNewMentions(newMentions []Mention) *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-`.
	NewIntent *string `json:"new_intent,omitempty"`

	// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
	NewDescription *string `json:"new_description,omitempty"`

	// An array of user input examples for the intent.
	NewExamples []Example `json:"new_examples,omitempty"`

	// Whether the new data is to be appended to the existing data in the object. If **append**=`false`, elements included
	// in the new data completely replace the corresponding existing elements, including all subelements. For example, if
	// the new data for the intent includes **examples** and **append**=`false`, all existing examples for the intent are
	// discarded and replaced with the new examples.
	//
	// 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"`

	// 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
}

UpdateIntentOptions : The UpdateIntent options.

func (*UpdateIntentOptions) SetAppend added in v1.4.0

func (options *UpdateIntentOptions) SetAppend(append bool) *UpdateIntentOptions

SetAppend : Allow user to set Append

func (*UpdateIntentOptions) SetHeaders

func (options *UpdateIntentOptions) SetHeaders(param map[string]string) *UpdateIntentOptions

SetHeaders : Allow user to set Headers

func (*UpdateIntentOptions) SetIncludeAudit added in v1.4.0

func (options *UpdateIntentOptions) SetIncludeAudit(includeAudit bool) *UpdateIntentOptions

SetIncludeAudit : Allow user to set IncludeAudit

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 []Example) *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.
	NewSynonym *string `json:"new_synonym,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
}

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) SetIncludeAudit added in v1.4.0

func (options *UpdateSynonymOptions) SetIncludeAudit(includeAudit bool) *UpdateSynonymOptions

SetIncludeAudit : Allow user to set IncludeAudit

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"`

	// 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.
	NewValue *string `json:"new_value,omitempty"`

	// Any metadata related to the entity value.
	NewMetadata map[string]interface{} `json:"new_metadata,omitempty"`

	// Specifies the type of entity value.
	NewType *string `json:"new_type,omitempty"`

	// An array of synonyms for the entity value. A value can specify either synonyms or patterns (depending on the value
	// 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.
	NewSynonyms []string `json:"new_synonyms,omitempty"`

	// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value
	// type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
	NewPatterns []string `json:"new_patterns,omitempty"`

	// Whether the new data is to be appended to the existing data in the entity value. If **append**=`false`, elements
	// included in the new data completely replace the corresponding existing elements, including all subelements. For
	// example, if the new data for the entity value includes **synonyms** and **append**=`false`, all existing synonyms
	// for the entity value are discarded and replaced with the new synonyms.
	//
	// 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"`

	// 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
}

UpdateValueOptions : The UpdateValue options.

func (*UpdateValueOptions) SetAppend added in v1.4.0

func (options *UpdateValueOptions) SetAppend(append bool) *UpdateValueOptions

SetAppend : Allow user to set Append

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) SetIncludeAudit added in v1.4.0

func (options *UpdateValueOptions) SetIncludeAudit(includeAudit bool) *UpdateValueOptions

SetIncludeAudit : Allow user to set IncludeAudit

func (*UpdateValueOptions) SetNewMetadata

func (options *UpdateValueOptions) SetNewMetadata(newMetadata map[string]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) SetNewType added in v0.12.0

func (options *UpdateValueOptions) SetNewType(newType string) *UpdateValueOptions

SetNewType : Allow user to set NewType

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) 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.
	Name *string `json:"name,omitempty"`

	// The description of the workspace. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The language of the workspace.
	Language *string `json:"language,omitempty"`

	// Any metadata related to the workspace.
	Metadata map[string]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"`

	// An array of objects defining the intents for the workspace.
	Intents []CreateIntent `json:"intents,omitempty"`

	// An array of objects describing the entities for the workspace.
	Entities []CreateEntity `json:"entities,omitempty"`

	// An array of objects describing the dialog nodes in the workspace.
	DialogNodes []DialogNode `json:"dialog_nodes,omitempty"`

	// An array of objects defining input examples that have been marked as irrelevant input.
	Counterexamples []Counterexample `json:"counterexamples,omitempty"`

	Webhooks []Webhook `json:"webhooks,omitempty"`

	// Whether the new data is to be appended to the existing data in the object. If **append**=`false`, elements included
	// in the new data completely replace the corresponding existing elements, including all subelements. For example, if
	// the new data for a workspace 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"`

	// 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
}

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 []Counterexample) *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 []DialogNode) *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) SetIncludeAudit added in v1.4.0

func (options *UpdateWorkspaceOptions) SetIncludeAudit(includeAudit bool) *UpdateWorkspaceOptions

SetIncludeAudit : Allow user to set IncludeAudit

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 map[string]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) SetWebhooks added in v1.2.0

func (options *UpdateWorkspaceOptions) SetWebhooks(webhooks []Webhook) *UpdateWorkspaceOptions

SetWebhooks : Allow user to set Webhooks

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. This string must conform to the following restrictions:
	// - It cannot contain carriage return, newline, or tab characters.
	// - It cannot consist of only whitespace characters.
	Value *string `json:"value" validate:"required"`

	// Any metadata related to the entity value.
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// Specifies the type of entity value.
	Type *string `json:"type" validate:"required"`

	// An array of synonyms for the entity value. A value can specify either synonyms or patterns (depending on the value
	// 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.
	Synonyms []string `json:"synonyms,omitempty"`

	// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the value
	// type), but not both. A pattern is a regular expression; for more information about how to specify a pattern, see the
	// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
	Patterns []string `json:"patterns,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`
}

Value : Value struct

type ValueCollection

type ValueCollection struct {

	// An array of entity values.
	Values []Value `json:"values" validate:"required"`

	// The pagination data for the returned objects.
	Pagination *Pagination `json:"pagination" validate:"required"`
}

ValueCollection : ValueCollection struct

type Webhook added in v1.2.0

type Webhook struct {

	// The URL for the external service or application to which you want to send HTTP POST requests.
	URL *string `json:"url" validate:"required"`

	// The name of the webhook. Currently, `main_webhook` is the only supported value.
	Name *string `json:"name" validate:"required"`

	// An optional array of HTTP headers to pass with the HTTP request.
	Headers []WebhookHeader `json:"headers,omitempty"`
}

Webhook : A webhook that can be used by dialog nodes to make programmatic calls to an external function.

**Note:** Currently, only a single webhook named `main_webhook` is supported.

type WebhookHeader added in v1.2.0

type WebhookHeader struct {

	// The name of an HTTP header (for example, `Authorization`).
	Name *string `json:"name" validate:"required"`

	// The value of an HTTP header.
	Value *string `json:"value" validate:"required"`
}

WebhookHeader : A key/value pair defining an HTTP header and a value.

type Workspace

type Workspace struct {

	// The name of the workspace. This string cannot contain carriage return, newline, or tab characters.
	Name *string `json:"name" validate:"required"`

	// The description of the workspace. This string cannot contain carriage return, newline, or tab characters.
	Description *string `json:"description,omitempty"`

	// The language of the workspace.
	Language *string `json:"language" validate:"required"`

	// Any metadata related to the workspace.
	Metadata map[string]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" validate:"required"`

	// Global settings for the workspace.
	SystemSettings *WorkspaceSystemSettings `json:"system_settings,omitempty"`

	// The workspace ID of the workspace.
	WorkspaceID *string `json:"workspace_id" validate:"required"`

	// The current status of the workspace.
	Status *string `json:"status,omitempty"`

	// The timestamp for creation of the object.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp for the most recent update to the object.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// An array of intents.
	Intents []Intent `json:"intents,omitempty"`

	// An array of objects describing the entities for the workspace.
	Entities []Entity `json:"entities,omitempty"`

	// An array of objects describing the dialog nodes in the workspace.
	DialogNodes []DialogNode `json:"dialog_nodes,omitempty"`

	// An array of counterexamples.
	Counterexamples []Counterexample `json:"counterexamples,omitempty"`

	Webhooks []Webhook `json:"webhooks,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"`

	// The pagination data for the returned objects.
	Pagination *Pagination `json:"pagination" validate:"required"`
}

WorkspaceCollection : WorkspaceCollection struct

type WorkspaceSystemSettings

type WorkspaceSystemSettings struct {

	// Workspace settings related to the Watson Assistant user interface.
	Tooling *WorkspaceSystemSettingsTooling `json:"tooling,omitempty"`

	// Workspace settings related to the disambiguation feature.
	Disambiguation *WorkspaceSystemSettingsDisambiguation `json:"disambiguation,omitempty"`

	// For internal use only.
	HumanAgentAssist map[string]interface{} `json:"human_agent_assist,omitempty"`

	// Whether spelling correction is enabled for the workspace.
	SpellingSuggestions *bool `json:"spelling_suggestions,omitempty"`

	// Whether autocorrection is enabled for the workspace. If spelling correction is enabled and this property is `false`,
	// any suggested corrections are returned in the **suggested_text** property of the message response. If this property
	// is `true`, any corrections are automatically applied to the user input, and the original text is returned in the
	// **original_text** property of the message response.
	SpellingAutoCorrect *bool `json:"spelling_auto_correct,omitempty"`

	// Workspace settings related to the behavior of system entities.
	SystemEntities *WorkspaceSystemSettingsSystemEntities `json:"system_entities,omitempty"`

	// Workspace settings related to detection of irrelevant input.
	OffTopic *WorkspaceSystemSettingsOffTopic `json:"off_topic,omitempty"`
}

WorkspaceSystemSettings : Global settings for the workspace.

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"`

	// Whether the order in which disambiguation suggestions are presented should be randomized (but still influenced by
	// relative confidence).
	Randomize *bool `json:"randomize,omitempty"`

	// The maximum number of disambigation suggestions that can be included in a `suggestion` response.
	MaxSuggestions *int64 `json:"max_suggestions,omitempty"`

	// For internal use only.
	SuggestionTextPolicy *string `json:"suggestion_text_policy,omitempty"`
}

WorkspaceSystemSettingsDisambiguation : Workspace settings related to the disambiguation feature.

type WorkspaceSystemSettingsOffTopic added in v1.2.0

type WorkspaceSystemSettingsOffTopic struct {

	// Whether enhanced irrelevance detection is enabled for the workspace.
	Enabled *bool `json:"enabled,omitempty"`
}

WorkspaceSystemSettingsOffTopic : Workspace settings related to detection of irrelevant input.

type WorkspaceSystemSettingsSystemEntities added in v1.4.0

type WorkspaceSystemSettingsSystemEntities struct {

	// Whether the new system entities are enabled for the workspace.
	Enabled *bool `json:"enabled,omitempty"`
}

WorkspaceSystemSettingsSystemEntities : Workspace settings related to the behavior of system entities.

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 : Workspace settings related to the Watson Assistant user interface.

Jump to

Keyboard shortcuts

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