We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 630d1a0 + 1118b4f commit d1df7f7Copy full SHA for d1df7f7
src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
@@ -236,6 +236,7 @@ await hook.OnResponseGenerated(new InstructResponseModel
236
// Before code execution
237
foreach (var hook in hooks)
238
{
239
+ await hook.BeforeCompletion(agent, message);
240
await hook.BeforeCodeExecution(agent, message, context);
241
242
// Interrupted by hook
@@ -271,6 +272,7 @@ await hook.OnResponseGenerated(new InstructResponseModel
271
272
// After code execution
273
274
275
+ await hook.AfterCompletion(agent, response);
276
await hook.AfterCodeExecution(agent, response);
277
await hook.OnResponseGenerated(new InstructResponseModel
278
0 commit comments