API reference
API reference
Select your platform
No SDKs available
No versions available

WitResultUtilities Class

Fields

const string WIT_KEY_TRANSCRIPTION[Get]
const string WIT_KEY_INTENTS[Get]
const string WIT_KEY_ENTITIES[Get]
const string WIT_KEY_TRAITS[Get]
const string WIT_KEY_FINAL[Get]
const string WIT_PARTIAL_RESPONSE[Get]
const string WIT_RESPONSE[Get]
const string WIT_STATUS_CODE[Get]
const string WIT_ERROR[Get]

Static Member Functions

Returns if any status code is returned
Returns if any errors are contained in the response
Get the transcription from a wit response node
Get whether this response is for transcriptions only
Gets the unique request id if included in the response
Parameters
witResponse
The response node class or null if none was found.
Gets the unique client user id if included in the response
Parameters
witResponse
The response node class or null if none was found.
Gets the content of a witResponse's partial or final response whichever is present.
Parameters
witResponse
The response node class or null if none was found.
Returns
Gets the content of a witResponse's partial or final response whichever is present.
Parameters
witResponse
The response node class or null if none was found.
Returns
Gets the content of a witResponse["response"] node.
Parameters
witResponse
The response node class or null if none was found.
Gets the content of a witResponse["partial_response"] node.
Parameters
witResponse
The response node class or null if none was found.
Get whether this response is the final response returned from the service
Get whether this response is a 'final' nlp response
Get whether this response is a 'final' nlp response
Get whether this response is a 'final' transcription
Get whether this response is a 'final' transcription
Get whether this response contains a transcription that should be analyzed
Converts wit response node into a wit entity
Converts wit response node into a float entity
Converts wit response node into an int entity
Gets the string value of the first entity
Parameters
witResponse
name
Returns
Gets a collection of string value containing the selected value from each entity in the response.
Parameters
witResponse
name
Returns
Gets the first entity as a WitResponseNode
Parameters
witResponse
name
Returns
Gets the first entity with the given name as string data
Parameters
witResponse
name
The entity name typically something like name:name
Returns
Gets The first entity with the given name as int data
Parameters
witResponse
name
The entity name typically something like name:name
Returns
Gets The first entity with the given name as int data
Parameters
witResponse
name
The entity name typically something like name:name
Returns
Gets the first entity with the given name as float data
Parameters
witResponse
name
The entity name typically something like name:name
Returns
Gets The first entity with the given name as int data
Parameters
witResponse
name
The entity name typically something like name:name
Returns
Gets all entities in the given response
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
Returns
Returns the total number of entities
Parameters
response
Returns
Gets all float entity values in the given response with the specified entity name
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
name
The entity name typically something like name:name
Returns
Gets all int entity values in the given response with the specified entity name
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
name
The entity name typically something like name:name
Returns
Converts wit response node into wit intent data
Gets the first intent's name
Parameters
witResponse
Returns
Gets the first intent node
Parameters
witResponse
Returns
Gets the first set of intent data
Parameters
witResponse
Returns
WitIntentData or null if no intents are found
Gets all intents in the given response
Parameters
witResponse
The root response node of an VoiceService.events.OnResponse event
Returns
static string GetPathValue
( this WitResponseNode response,
string path )
static void SetString
( this WitResponseNode response,
string path,
string value )
static void RemovePath
( this WitResponseNode response,
string path )
static WitResponseReference GetWitResponseReference
( string path )
static string GetCodeFromPath
( string path )
Gets the string value of the first trait
Parameters
witResponse
name
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon