new ArchSettingsNluSlot(coreSlotSettingsViewModel)
Parameters:
| Name | Type | Description |
|---|---|---|
coreSlotSettingsViewModel |
object | ( Internal ) a core slot settings view model |
Extends
Members
-
static, readonly displayTypeName :string
-
Returns the display type name string 'ArchSettingsNluSlot'.
-
readonly isArchSettingsNluSlot :boolean
-
Returns true indicating that this is an ArchSettingsNluSlot instance.
-
readonly logStr :string
-
A string suitable for logging that contains information about this ArchSettingsNluSlot.
- Overrides:
-
readonly logStrTypeOnly :string
-
This is a string suitable for logging information about this object where it's just the object's type. This is normally used when logging errors that occur in constructor parameter checking because the scripting object isn't set up and the normal logging str contents wouldn't be set up.
- Overrides:
-
parentFlow :ArchFlowBot|ArchFlowDigitalBot
-
The parent
ArchFlowBotorArchFlowDigitalBotthat thisArchSettingsNluSlotbelongs to.
Methods
-
associateWithGrammarByIdAsync(grammarId) → {void}
-
This function looks up the supplied grammar by ID. If a grammar with that ID is found, that grammar becomes associated with the NLU slot. At flow runtime, this grammar is used by an Ask For Slot action if this slot is selected and no other grammar is supplied.
Parameters:
Name Type Description grammarIdstring the id of the Grammar to associate with the slot.
Returns:
void -
associateWithGrammarByNameAsync(grammarName) → {void}
-
This function looks up the supplied grammar by name case insensitively. If a grammar with that name is found, that grammar becomes associated with the NLU slot. At flow runtime, this grammar is used by an Ask For Slot action if this slot is selected and no other grammar is supplied.
Parameters:
Name Type Description grammarNamestring the name of the Grammar to associate with the slot.
Returns:
void -
associateWithSpeechToTextEngineByIdAsync(sttEngineId) → {void}
-
This function looks up the supplied speech to text engine by ID. If a speech to text engine with that ID is found, that speech to text engine becomes associated with the NLU slot. At flow runtime, this speech to text engine is used by an Ask For Slot action if this slot is selected and no other grammar is supplied.
Parameters:
Name Type Description sttEngineIdstring the id of the speech to text engine to associate with the slot.
Returns:
void -
associateWithSpeechToTextEngineByNameAsync(sttEngineName) → {void}
-
This function looks up the supplied speech to text engine by name case insensitively. If a speech to text engine with that name is found, that speech to text engine becomes associated with the NLU slot. At flow runtime, this speech to text engine is used by an Ask For Slot action if this slot is selected and no other grammar is supplied.
Parameters:
Name Type Description sttEngineNamestring the name of the speech to text engine to associate with the slot
Returns:
void -
captureValue(captureValue)
-
This method sets the capture type on a slot.
Parameters:
Name Type Description captureValuestring the capture type value to associate with the slot. The string values in
ArchEnums#CAPTURE_TYPESlist valid values. -
getAssociatedGrammarId() → {string}
-
Returns the id that is associated with this Grammar. If one is not associated with this grammar or a slot is not found, undefined is returned.
Returns:
string -
getAssociatedGrammarName() → {string}
-
Returns the name that is associated with this Grammar. If one is not associated with this grammar or a slot is not found, undefined is returned.
Returns:
string -
getAssociatedGrammarSpeechToTextEngineId() → {string}
-
Returns the id that is associated with this Slot's speech to text engine. If one is not associated with this grammar or a slot is not found, undefined is returned.
Returns:
string -
getAssociatedGrammarSpeechToTextEngineName() → {string}
-
Returns the name that is associated with this Grammar Speech to Text engine. If one is not associated with this slot or a slot is not found, undefined is returned.
Returns:
string -
isFilterMatch(archFilterObject) → {boolean}
-
Returns whether or not this Architect Scripting object is a match for the supplied ArchFilterObject instance.
Parameters:
Name Type Description archFilterObjectArchFilterObject the object filter to use to determine if it's a match.
Returns:
boolean- Overrides:
-
logError(errorStr)
-
Logs an error to the logging service with a log header from this object's
logStrproperty value whenArchLogging#logErrorsis true.Parameters:
Name Type Description errorStrstring the error string to log.
- Overrides:
-
logErrorAndThrow(errorStr)
-
Logs an error to the logging service with a log header from this object's
logStrproperty value whenArchLogging#logErrorsis true and then throws the string in the errorStr parameter.Parameters:
Name Type Description errorStrstring the error string to log. This should be a non-blank string.
Throws:
- Throws the submitted error string.
- Overrides:
-
logNote(noteStr)
-
Logs a note to the logging service with a log header from this object's
logStrproperty value whenArchLogging#logNotesis true.Parameters:
Name Type Description noteStrstring the note string to log. This should be a non-blank string.
- Overrides:
-
logNoteVerbose(noteStr)
-
Logs a note to the logging service with a log header from this object's
logStrproperty value whenArchLogging#logNotesVerboseis true.Parameters:
Name Type Description noteStrstring the note string to log. This should be a non-blank string.
- Overrides:
-
logWarning(warningStr)
-
Logs a warning to the logging service with a log header from this object's
logStrproperty value whenArchLogging#logWarningsis true.Parameters:
Name Type Description warningStrstring the warning string to log. This should be a non-blank string.
- Overrides: