/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using System;
using Meta.Conduit;
namespace Meta.WitAi
{
///
/// Triggers a method to be executed if it matches a voice command's intent
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class MatchIntent : ConduitActionAttribute
{
///
/// Triggers a method to be executed if it matches a voice command's intent
///
/// The name of the intent to match
/// The minimum confidence value (0-1) needed to match
/// The maximum confidence value(0-1) needed to match
public MatchIntent(string intent, float minConfidence = DEFAULT_MIN_CONFIDENCE, float maxConfidence = DEFAULT_MAX_CONFIDENCE) : base(intent, minConfidence, maxConfidence, false)
{
}
}
}