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

Method UpdateSessionMessage

pkg/runtime/remote_runtime.go:743–748  ·  view source on GitHub ↗

UpdateSessionMessage updates a message in the current session on the remote server.

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

Source from the content-addressed store, hash-verified

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 {
744 if r.sessionID == "" {
745 return errors.New("no active session")
746 }
747 return r.client.UpdateMessage(ctx, r.sessionID, msgID, msg)
748}
749
750// AddSessionSummary adds a summary to the current session on the remote server.
751func (r *RemoteRuntime) AddSessionSummary(ctx context.Context, summary string, tokens int) error {

Callers

nothing calls this directly

Calls 2

UpdateMessageMethod · 0.65
NewMethod · 0.45

Tested by

no test coverage detected