executeSessionEndHooks fires session_end when the run loop exits.
(ctx context.Context, sess *session.Session, a *agent.Agent)
| 224 | |
| 225 | // executeSessionEndHooks fires session_end when the run loop exits. |
| 226 | func (r *LocalRuntime) executeSessionEndHooks(ctx context.Context, sess *session.Session, a *agent.Agent) { |
| 227 | r.dispatchHook(ctx, a, hooks.EventSessionEnd, &hooks.Input{ |
| 228 | SessionID: sess.ID, |
| 229 | Reason: "stream_ended", |
| 230 | }, nil) |
| 231 | } |
| 232 | |
| 233 | // executeStopHooks fires stop hooks when the model finishes responding, |
| 234 | // passing the final response content as stop_response. SystemMessage is |
no test coverage detected