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

Method Messages

pkg/tui/components/transcript/transcript.go:276–278  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

274// embedders observability — host tests asserting on conversation structure,
275// or persistence of the chat — without growing the mutation surface.
276func (t *Transcript) Messages() []*types.Message {
277 return t.msgs
278}

Callers 1

TestMessagesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestMessagesFunction · 0.64