class Intent::IntentTrigger

Represents an intent trigger.

Members

~IntentTrigger

Syntax: public inline virtual ~IntentTrigger ( );

Virtual destructor.

IntentTrigger

Syntax: public inline explicit IntentTrigger ( SPXTRIGGERHANDLE htrigger );

Internal constructor. Creates a new instance using the provided handle.

Parameters

  • htrigger Trigger handle.

operator SPXTRIGGERHANDLE

Syntax: public inline explicit operator SPXTRIGGERHANDLE ( );

Internal. Explicit conversion operator.

Returns

A handle.

From

Syntax: public inline static std::shared_ptr< IntentTrigger > From ( const std::string & simplePhrase );

Creates an intent trigger using the specified phrase.

Parameters

  • simplePhrase The simple phrase to create an intent trigger for.

Returns

A shared pointer to an intent trigger.

From

Syntax: public inline static std::shared_ptr< IntentTrigger > From ( std::shared_ptr< LanguageUnderstandingModel > model );

Creates an intent trigger using the specified LanguageUnderstandingModel.

Parameters

  • model The LanguageUnderstandingModel to create an intent trigger for.

Returns

A shared pointer to an intent trigger.

From

Syntax: public inline static std::shared_ptr< IntentTrigger > From ( std::shared_ptr< LanguageUnderstandingModel > model , const std::string & intentName );

Creates an intent trigger using the specified LanguageUnderstandingModel and an intent name.

Parameters

  • model The LanguageUnderstandingModel to create an intent trigger for.

  • intentName The intent name to create an intent trigger for.

Returns

A shared pointer to an intent trigger.