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

IConduitDispatcher Interface

The dispatcher is responsible for deciding which method to invoke when a request is received as well as parsing the parameters and passing them to the handling method.

Properties

Manifest : Manifest
[Get]
The Conduit manifest which captures the structure of the voice-enabled methods.
Signature
Manifest Meta.Conduit.IConduitDispatcher.Manifest

Methods

Initialize ( manifestFilePath )
Parses the manifest provided and registers its callbacks for dispatching.
Signature
Task Meta.Conduit.IConduitDispatcher.Initialize(string manifestFilePath)
Parameters
manifestFilePath: string  The path to the manifest file.
Returns
Task
InvokeAction ( parameterProvider , actionId , relaxed , confidence , partial )
Invokes the method matching the specified action ID. This should NOT be called before the dispatcher is initialized.
Signature
bool Meta.Conduit.IConduitDispatcher.InvokeAction(IParameterProvider parameterProvider, string actionId, bool relaxed, float confidence=1f, bool partial=false)
Parameters
parameterProvider: IParameterProvider  The parameter provider.
actionId: string  The action ID (which is also the intent name).
relaxed: bool  When set to true, will allow matching parameters by type when the names mismatch.
confidence: float  The confidence level (between 0-1) of the intent that's invoking the action.
partial: bool  Whether partial responses should be accepted or not
Returns
bool  True if all invocations succeeded. False if at least one failed or no callbacks were found.
InvokeError ( actionId , exception )
True if all the error handlers are called and received the action ID and exception.
Signature
bool Meta.Conduit.IConduitDispatcher.InvokeError(string actionId, Exception exception=null)
Parameters
actionId: string  ID of action that failed to execute
exception: Exception  Exception containing the error message
Returns
bool