(_ context.Context, sess *session.Session)
| 141 | } |
| 142 | |
| 143 | func (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 | |
| 157 | func (r *skillDispatchRuntime) forkCallCount() int { |
| 158 | r.mu.Lock() |
nothing calls this directly
no test coverage detected