()
| 68 | } |
| 69 | |
| 70 | func (t *Transcript) lastMsg() *types.Message { |
| 71 | if n := len(t.msgs); n > 0 { |
| 72 | return t.msgs[n-1] |
| 73 | } |
| 74 | return nil |
| 75 | } |
| 76 | |
| 77 | // AppendToLastMessage grows the most recent message with streamed reply |
| 78 | // text when it is an assistant message from the given agent, or appends a |