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

Method AddMessageToSession

pkg/runtime/remote_runtime.go:735–740  ·  view source on GitHub ↗

AddMessageToSession adds a message to the current session on the remote server.

(ctx context.Context, msg *session.Message)

Source from the content-addressed store, hash-verified

733
734// AddMessageToSession adds a message to the current session on the remote server.
735func (r *RemoteRuntime) AddMessageToSession(ctx context.Context, msg *session.Message) error {
736 if r.sessionID == "" {
737 return errors.New("no active session")
738 }
739 return r.client.AddMessage(ctx, r.sessionID, msg)
740}
741
742// UpdateSessionMessage updates a message in the current session on the remote server.
743func (r *RemoteRuntime) UpdateSessionMessage(ctx context.Context, msgID string, msg *session.Message) error {

Callers

nothing calls this directly

Calls 2

AddMessageMethod · 0.65
NewMethod · 0.45

Tested by

no test coverage detected