Messages returns the transcript's messages, oldest first. The slice is the transcript's own backing store: callers must treat it as read-only (mutating entries would desync them from their rendered views). It gives embedders observability — host tests asserting on conversation structure, or persiste
()
| 274 | // embedders observability — host tests asserting on conversation structure, |
| 275 | // or persistence of the chat — without growing the mutation surface. |
| 276 | func (t *Transcript) Messages() []*types.Message { |
| 277 | return t.msgs |
| 278 | } |