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

Function New

pkg/tui/components/transcript/transcript.go:44–46  ·  view source on GitHub ↗

New creates an empty transcript. The session state is consulted by the tool views for rendering preferences; embedders without one should pass a service.StaticSessionState.

(state service.SessionStateReader)

Source from the content-addressed store, hash-verified

42// tool views for rendering preferences; embedders without one should pass
43// a service.StaticSessionState.
44func New(state service.SessionStateReader) *Transcript {
45 return &Transcript{state: state, width: 80}
46}
47
48// Append adds a message and returns the new view's Init command (spinner
49// and running-tool views use it to start the animation tick stream).

Callers 1

newTestTranscriptFunction · 0.70

Calls

no outgoing calls

Tested by 1

newTestTranscriptFunction · 0.56