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

Method AddSessionSummary

pkg/runtime/remote_runtime.go:751–756  ·  view source on GitHub ↗

AddSessionSummary adds a summary to the current session on the remote server.

(ctx context.Context, summary string, tokens int)

Source from the content-addressed store, hash-verified

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 {
752 if r.sessionID == "" {
753 return errors.New("no active session")
754 }
755 return r.client.AddSummary(ctx, r.sessionID, summary, tokens)
756}
757
758// UpdateSessionTokens updates token counts for the current session on the remote server.
759func (r *RemoteRuntime) UpdateSessionTokens(ctx context.Context, inputTokens, outputTokens int64, cost float64) error {

Callers

nothing calls this directly

Calls 2

AddSummaryMethod · 0.65
NewMethod · 0.45

Tested by

no test coverage detected