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

Method RunStream

pkg/tui/page/chat/queue_test.go:143–155  ·  view source on GitHub ↗
(_ context.Context, sess *session.Session)

Source from the content-addressed store, hash-verified

141}
142
143func (r *skillDispatchRuntime) RunStream(_ context.Context, sess *session.Session) <-chan runtime.Event {
144 r.mu.Lock()
145 r.runStreamRuns++
146 if items := sess.GetAllMessages(); len(items) > 0 {
147 r.lastRun = items[len(items)-1].Message.Content
148 }
149 r.mu.Unlock()
150
151 ch := make(chan runtime.Event, 1)
152 ch <- runtime.StreamStopped(sess.ID, "", "")
153 close(ch)
154 return ch
155}
156
157func (r *skillDispatchRuntime) forkCallCount() int {
158 r.mu.Lock()

Callers

nothing calls this directly

Calls 4

StreamStoppedFunction · 0.92
GetAllMessagesMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected