BotSharp/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructHook.cs

13 lines
417 B
C#
Raw Normal View History

2023-09-08 17:03:49 +00:00
using BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs;
public interface IInstructHook
{
2023-10-25 15:48:25 +00:00
string SelfId { get; }
2025-05-15 02:48:08 +00:00
bool IsMatch(string id) => string.IsNullOrEmpty(SelfId) || SelfId == id;
Task BeforeCompletion(Agent agent, RoleDialogModel message);
Task AfterCompletion(Agent agent, InstructResult result);
2025-03-04 23:25:35 +00:00
Task OnResponseGenerated(InstructResponseModel response);
2023-09-08 17:03:49 +00:00
}