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

Method AddMessage

pkg/session/store.go:102–102  ·  view source on GitHub ↗

=== Granular item operations === AddMessage adds a message to a session at the next position. Returns the ID of the created message item.

(ctx context.Context, sessionID string, msg *Message)

Source from the content-addressed store, hash-verified

100 // AddMessage adds a message to a session at the next position.
101 // Returns the ID of the created message item.
102 AddMessage(ctx context.Context, sessionID string, msg *Message) (int64, error)
103
104 // UpdateMessage updates an existing message by its ID.
105 // This is called on each streaming delta to keep the persisted message

Implementers 3

InMemorySessionStorepkg/session/store.go
SQLiteSessionStorepkg/session/store.go
RemoteSessionStorepkg/runtime/remote_runtime.go

Calls

no outgoing calls