Merge pull request #1194 from iceljc/master

refine
This commit is contained in:
iceljc 2025-10-16 21:58:31 -05:00 committed by GitHub
commit d1df7f782a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,6 +236,7 @@ public partial class InstructService
// Before code execution
foreach (var hook in hooks)
{
await hook.BeforeCompletion(agent, message);
await hook.BeforeCodeExecution(agent, message, context);
// Interrupted by hook
@ -271,6 +272,7 @@ public partial class InstructService
// After code execution
foreach (var hook in hooks)
{
await hook.AfterCompletion(agent, response);
await hook.AfterCodeExecution(agent, response);
await hook.OnResponseGenerated(new InstructResponseModel
{