MCPcopy
hub / github.com/docker/docker-agent / lastMsg

Method lastMsg

pkg/tui/components/transcript/transcript.go:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (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

Callers 1

AppendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected