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

ConduitActionAttribute Class

Extends Attribute
Marks the method as a callback for voice commands. The method will be mapped to an intent and invoked whenever that intent is resolved by the backend.

Constructors

ConduitActionAttribute ( intent , aliases )
Triggers a method to be executed if it matches a voice command's intent.
Signature
Meta.Conduit.ConduitActionAttribute.ConduitActionAttribute(string intent="", params string[] aliases)
Parameters
intent: string  The name of the intent to match.
aliases: params string []
ConduitActionAttribute ( intent , minConfidence , maxConfidence , validatePartial , aliases )
Triggers a method to be executed if it matches a voice command's intent.
Signature
Meta.Conduit.ConduitActionAttribute.ConduitActionAttribute(string intent="", float minConfidence=DEFAULT_MIN_CONFIDENCE, float maxConfidence=DEFAULT_MAX_CONFIDENCE, bool validatePartial=false, params string[] aliases)
Parameters
intent: string  The name of the intent to match.
minConfidence: float  The minimum confidence value (0-1) needed to match.
maxConfidence: float  The maximum confidence value(0-1) needed to match.
validatePartial: bool  When true will validate partial matches.
aliases: params string []  Other names to refer to this intent.

Protected Fields

DEFAULT_MAX_CONFIDENCE : const float
Signature
const float Meta.Conduit.ConduitActionAttribute.DEFAULT_MAX_CONFIDENCE
DEFAULT_MIN_CONFIDENCE : const float
Signature
const float Meta.Conduit.ConduitActionAttribute.DEFAULT_MIN_CONFIDENCE

Properties

Aliases : List< string >
[Get]
Additional aliases to refer to the intent this method represent.
Signature
List<string> Meta.Conduit.ConduitActionAttribute.Aliases
Intent : string
[Get]
The intent name matching this method. If left blank, the method name will be used to infer the intent name.
Signature
string Meta.Conduit.ConduitActionAttribute.Intent
MaxConfidence : float
[Get]
The maximum confidence value for intent matching
Signature
float Meta.Conduit.ConduitActionAttribute.MaxConfidence
MinConfidence : float
[Get]
The minimum confidence value for intent matching
Signature
float Meta.Conduit.ConduitActionAttribute.MinConfidence
ValidatePartial : bool
[Get]
If true, this will be called for partial responses instead of full responses. It will also contain a VoiceSession parameter which can be used to 'validate' a partial response so the VoiceSession treats the response as final & deactivates.
Signature
bool Meta.Conduit.ConduitActionAttribute.ValidatePartial