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

ConduitActionAttribute Class

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.
Meta::Conduit::ConduitActionAttribute extends Attribute.

Overview

Properties

string
Intent[Get]
The intent name matching this method. If left blank, the method name will be used to infer the intent name.
float
The minimum confidence value for intent matching
float
The maximum confidence value for intent matching
List< string >
Aliases[Get]
Additional aliases to refer to the intent this method represent.
bool
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.

Object Data

const float
const float

Object Data

ConduitActionAttribute
( string intent,
params string [] aliases )
Triggers a method to be executed if it matches a voice command's intent.
ConduitActionAttribute
( string intent,
float minConfidence,
float maxConfidence,
bool validatePartial,
params string [] aliases )
Triggers a method to be executed if it matches a voice command's intent.

Details

Properties

string Meta.Conduit.ConduitActionAttribute.Intent
The intent name matching this method. If left blank, the method name will be used to infer the intent name.
float Meta.Conduit.ConduitActionAttribute.MinConfidence
The minimum confidence value for intent matching
float Meta.Conduit.ConduitActionAttribute.MaxConfidence
The maximum confidence value for intent matching
List<string> Meta.Conduit.ConduitActionAttribute.Aliases
Additional aliases to refer to the intent this method represent.
bool Meta.Conduit.ConduitActionAttribute.ValidatePartial
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.

Object Data

const float Meta.Conduit.ConduitActionAttribute.DEFAULT_MIN_CONFIDENCE
No description available.
const float Meta.Conduit.ConduitActionAttribute.DEFAULT_MAX_CONFIDENCE
No description available.

Object Data

Meta.Conduit.ConduitActionAttribute.ConduitActionAttribute
( string intent,
params string [] aliases )
Triggers a method to be executed if it matches a voice command's intent.
Parameters
intent
The name of the intent to match.
Meta.Conduit.ConduitActionAttribute.ConduitActionAttribute
( string intent,
float minConfidence,
float maxConfidence,
bool validatePartial,
params string [] aliases )
Triggers a method to be executed if it matches a voice command's intent.
Parameters
intent
The name of the intent to match.
minConfidence
The minimum confidence value (0-1) needed to match.
maxConfidence
The maximum confidence value(0-1) needed to match.
validatePartial
When true will validate partial matches.
aliases
Other names to refer to this intent.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon