Constructor
new Record(utterance, expectedFieldsopt, metaopt)
Creates a record
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
utterance |
string
|
The utterance to be sent to the voice experience being tested |
||
expectedFields |
Object.<string, string>
|
<optional> |
{} |
The expected values for the record |
meta |
Object
|
<optional> |
Additional info about the record to be used in processing |
Members
conversationId :Object
Property to get the latest conversation id while processing the record
Type:
-
Object
deviceTags :Array.<string>
Gets the device tags associated with this record
Type:
-
Array.<string>
expectedFields :Object.<string, string>
The expected values for the record
Type:
-
Object.<string, string>
locale :string|undefined
Getter and setter for the locale
Type:
-
string
|undefined
meta :Object
Property for additional info to be set on the record
Type:
-
Object
outputFields :Object.<string, string>
The output field values for the record - gets combinted with the outputfields on the result
Type:
-
Object.<string, string>
voiceID :string|undefined
Getter and setter for the utterance
Type:
-
string
|undefined
Methods
addDeviceTag(tag) → {void}
Device tags indicate that a record can ONLY be run on a device with this tag
Parameters:
Name | Type | Description |
---|---|---|
tag |
string
|
Returns:
- Type:
-
void
addExpectedField(name, value) → {void}
Adds an expected field to the record
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
|
value |
string
|
Returns:
- Type:
-
void
addOutputField(name, value) → {void}
Adds an output field to the record
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
|
value |
string
|
Returns:
- Type:
-
void
addSetting(name, setting) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
|
setting |
string
|
Returns:
- Type:
-
void
outputField(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Returns:
- Type:
-
void