trigger agent instruction logging in realtime

This commit is contained in:
Jicheng Lu 2025-05-22 14:59:35 -05:00
parent 1cd8ab9b03
commit 6def003141
2 changed files with 2 additions and 2 deletions

View file

@ -343,7 +343,7 @@ public class GoogleRealTimeProvider : IRealTimeCompletion
}).ToArray();
await HookEmitter.Emit<IContentGeneratingHook>(_services,
async hook => { await hook.OnSessionUpdated(agent, prompt, functions, isInit); }, agent.Id);
async hook => { await hook.OnSessionUpdated(agent, prompt, functions, isInit: false); }, agent.Id);
if (_settings.Gemini.UseGoogleSearch)
{

View file

@ -381,7 +381,7 @@ public class RealTimeCompletionProvider : IRealTimeCompletion
await HookEmitter.Emit<IContentGeneratingHook>(_services, async hook =>
{
await hook.OnSessionUpdated(agent, instruction, functions, isInit);
await hook.OnSessionUpdated(agent, instruction, functions, isInit: false);
}, agent.Id);
await SendEventToModel(sessionUpdate);