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

NLPRequest Class

Abstract class for NLP text & audio requests
Others
TUnityEvent
The type of event callback performed by TEvents for all event callbacks
TOptions
The type containing all specific options to be passed to the end service.
TEvents
The type containing all events of TSession to be called throughout the lifecycle of the request.
TResults
The type containing all data that can be returned from the end service.

Properties

override IVLogger Logger[Get]

Fields

Getter for request input type
Getter for decoded response data
Whether currently decoding a raw response

Protected Fields

The response decoder used to decode response json & provide vars for response data
Whether or not raw responses should be decoded within this script. Defaults to false

Protected Functions

Constructor for NLP requests
Parameters
newInputType
The input type for nlp request transmission
newOptions
The request parameters sent to the backend service
newEvents
The request events to be called throughout it's lifecycle
Sets the NLPRequest object to the given state, but only after being initialized
Append NLP request specific data to log
Throw error on text request
Throw error on text request
Performs callbacks for raw response &
Parameters
rawResponse
final
Called when raw response data has been received
Sets response data to the current results object
Parameters
responseData
Parsed json data returned from request
final
Whether or not this response should be considered final
Called when response data has been updated
Called when full response has completed
virtual void MakeLastResponseFinal ( )

Member Functions

Cancels the current request but handles success immediately if possible
Did you find this page helpful?
Thumbs up icon
Thumbs down icon