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

Function WithReadOnly

pkg/app/app.go:104–108  ·  view source on GitHub ↗

WithReadOnly marks the session as read-only: the conversation history is displayed but no new messages can be sent to the LLM.

()

Source from the content-addressed store, hash-verified

102// WithReadOnly marks the session as read-only: the conversation history
103// is displayed but no new messages can be sent to the LLM.
104func WithReadOnly() Opt {
105 return func(a *App) {
106 a.readOnly = true
107 }
108}
109
110// WithSnapshotController plumbs in the [builtins.SnapshotController]
111// the App uses to drive /undo, /snapshots, /reset. Pass the same

Calls

no outgoing calls