minor change

This commit is contained in:
Jicheng Lu 2025-03-18 23:32:06 -05:00
parent 369ca68f5b
commit cbd5185f51

View file

@ -63,6 +63,11 @@ public class ExecuteTemplateFn : IFunctionCallback
var hooks = _services.GetServices<IInstructHook>();
foreach (var hook in hooks)
{
if (!string.IsNullOrEmpty(hook.SelfId) && hook.SelfId != agent.Id)
{
continue;
}
await hook.OnResponseGenerated(new InstructResponseModel
{
AgentId = agent.Id,