MCPcopy Index your code
hub / github.com/docker/docker-agent / executeSessionEndHooks

Method executeSessionEndHooks

pkg/runtime/hooks.go:226–231  ·  view source on GitHub ↗

executeSessionEndHooks fires session_end when the run loop exits.

(ctx context.Context, sess *session.Session, a *agent.Agent)

Source from the content-addressed store, hash-verified

224
225// executeSessionEndHooks fires session_end when the run loop exits.
226func (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

Callers 1

finalizeEventChannelMethod · 0.95

Calls 1

dispatchHookMethod · 0.95

Tested by

no test coverage detected