forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRuleTriggerHook.cs
More file actions
13 lines (10 loc) · 874 Bytes
/
IRuleTriggerHook.cs
File metadata and controls
13 lines (10 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
using BotSharp.Abstraction.Hooks;
using BotSharp.Abstraction.Rules.Models;
namespace BotSharp.Abstraction.Rules.Hooks;
public interface IRuleTriggerHook : IHookBase
{
Task BeforeRuleConditionExecuting(Agent agent, RuleNode conditionNode, RuleEdge incomingEdge, IRuleTrigger trigger, RuleFlowContext context) => Task.CompletedTask;
Task AfterRuleConditionExecuted(Agent agent, RuleNode conditionNode, RuleEdge incomingEdge, IRuleTrigger trigger, RuleFlowContext context, RuleNodeResult result) => Task.CompletedTask;
Task BeforeRuleActionExecuting(Agent agent, RuleNode actionNode, RuleEdge incomingEdge, IRuleTrigger trigger, RuleFlowContext context) => Task.CompletedTask;
Task AfterRuleActionExecuted(Agent agent, RuleNode actionNode, RuleEdge incomingEdge, IRuleTrigger trigger, RuleFlowContext context, RuleNodeResult result) => Task.CompletedTask;
}