-
-
Notifications
You must be signed in to change notification settings - Fork 628
Expand file tree
/
Copy pathIRuleTrigger.cs
More file actions
30 lines (22 loc) · 874 Bytes
/
IRuleTrigger.cs
File metadata and controls
30 lines (22 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Text.Json;
namespace BotSharp.Abstraction.Rules;
public interface IRuleTrigger
{
string Channel => throw new NotImplementedException("Please set the channel of trigger");
string Name => throw new NotImplementedException("Please set the name of trigger");
string EntityType { get; set; }
string EntityId { get; set; }
/// <summary>
/// The default arguments as input to code trigger (display purpose)
/// </summary>
JsonDocument OutputArgs => JsonDocument.Parse("{}");
/// <summary>
/// Explain the purpose of rule trigger (display purpose)
/// </summary>
string Statement => string.Empty;
/// <summary>
/// Optional list of agent IDs this trigger is associated with.
/// Used for display/filtering in UI only (not used in execution logic).
/// </summary>
string[]? AgentIds => null;
}