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

24 lines
634 B
C#
Raw Normal View History

2023-09-08 17:03:49 +00:00
using BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs;
public class InstructHookBase : IInstructHook
{
2023-10-25 15:48:25 +00:00
public virtual string SelfId => throw new NotImplementedException("Please set SelfId as agent id!");
public virtual async Task BeforeCompletion(Agent agent, RoleDialogModel message)
2023-09-08 17:03:49 +00:00
{
2025-03-21 20:00:53 +00:00
await Task.CompletedTask;
2023-09-08 17:03:49 +00:00
}
public virtual async Task AfterCompletion(Agent agent, InstructResult result)
2023-09-08 17:03:49 +00:00
{
2025-03-21 20:00:53 +00:00
await Task.CompletedTask;
2023-09-08 17:03:49 +00:00
}
2025-03-04 23:25:35 +00:00
public virtual async Task OnResponseGenerated(InstructResponseModel response)
{
2025-03-21 20:00:53 +00:00
await Task.CompletedTask;
2025-03-04 23:25:35 +00:00
}
2023-09-08 17:03:49 +00:00
}