refine
This commit is contained in:
parent
20da9632cc
commit
1118b4f0c8
|
|
@ -234,6 +234,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
|
||||
|
|
@ -269,6 +270,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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue