2025-05-15 07:25:08 +00:00
|
|
|
using BotSharp.Abstraction.Hooks;
|
2025-10-15 18:24:27 +00:00
|
|
|
using BotSharp.Abstraction.Instructs.Contexts;
|
2023-09-08 17:03:49 +00:00
|
|
|
using BotSharp.Abstraction.Instructs.Models;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Instructs;
|
|
|
|
|
|
2025-05-15 07:25:08 +00:00
|
|
|
public interface IInstructHook : IHookBase
|
2023-09-08 17:03:49 +00:00
|
|
|
{
|
2025-10-06 06:27:18 +00:00
|
|
|
Task BeforeCompletion(Agent agent, RoleDialogModel message) => Task.CompletedTask;
|
|
|
|
|
Task AfterCompletion(Agent agent, InstructResult result) => Task.CompletedTask;
|
|
|
|
|
Task OnResponseGenerated(InstructResponseModel response) => Task.CompletedTask;
|
|
|
|
|
|
|
|
|
|
Task BeforeCodeExecution(Agent agent, RoleDialogModel message, CodeInstructContext context) => Task.CompletedTask;
|
|
|
|
|
Task AfterCodeExecution(Agent agent, InstructResult result) => Task.CompletedTask;
|
2023-09-08 17:03:49 +00:00
|
|
|
}
|