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

Struct ContextOverflowError

pkg/modelerrors/modelerrors.go:107–110  ·  view source on GitHub ↗

ContextOverflowError wraps an underlying error to indicate that the failure was caused by the conversation context exceeding some provider-side limit. This is used to trigger auto-compaction in the runtime loop instead of surfacing raw HTTP errors to the user. Kind classifies the specific shape of

Source from the content-addressed store, hash-verified

105// it set automatically by classification, or build the struct directly to
106// force a Kind.
107type ContextOverflowError struct {
108 Underlying error
109 Kind OverflowKind
110}
111
112// NewContextOverflowError creates a ContextOverflowError wrapping the given
113// underlying error. The Kind is inferred from the underlying error via

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected