trigger agent instruction logging in realtime
This commit is contained in:
parent
1cd8ab9b03
commit
6def003141
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue