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
| 105 | // it set automatically by classification, or build the struct directly to |
| 106 | // force a Kind. |
| 107 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected