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

ConduitDispatcher Class

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.
Meta::Conduit::ConduitDispatcher extends Meta.Conduit.IConduitDispatcher.

Overview

Properties

Manifest
The Conduit manifest which captures the structure of the voice-enabled methods.

Public Member Functions

ConduitDispatcher
( IManifestLoader manifestLoader,
IInstanceResolver instanceResolver )
async Task
Initialize
( string manifestFilePath )
Parses the manifest provided and registers its callbacks for dispatching.
bool
InvokeAction
( IParameterProvider parameterProvider,
string actionId,
bool relaxed,
float confidence,
bool partial )
Invokes the method matching the specified action ID. This should NOT be called before the dispatcher is initialized. The parameters must be populated in the parameter provider before calling this method.
bool
InvokeError
( string actionId,
Exception exception )

Details

Properties

Manifest Meta.Conduit.ConduitDispatcher.Manifest
The Conduit manifest which captures the structure of the voice-enabled methods.

Member Functions

Meta.Conduit.ConduitDispatcher.ConduitDispatcher
( IManifestLoader manifestLoader,
IInstanceResolver instanceResolver )
No description available.
async Task Meta.Conduit.ConduitDispatcher.Initialize
( string manifestFilePath )
Parses the manifest provided and registers its callbacks for dispatching.
Parameters
manifestFilePath
The path to the manifest file.
bool Meta.Conduit.ConduitDispatcher.InvokeAction
( IParameterProvider parameterProvider,
string actionId,
bool relaxed,
float confidence,
bool partial )
Invokes the method matching the specified action ID. This should NOT be called before the dispatcher is initialized. The parameters must be populated in the parameter provider before calling this method.
Parameters
parameterProvider
The parameter provider.
actionId
The action ID (which is also the intent name).
relaxed
When set to true, will allow matching parameters by type when the names mismatch.
confidence
The confidence level (between 0-1) of the intent that's invoking the action.
partial
Whether partial responses should be accepted or not
Returns
True if all invocations succeeded. False if at least one failed or no callbacks were found.
bool Meta.Conduit.ConduitDispatcher.InvokeError
( string actionId,
Exception exception )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon