()
| 124 | } |
| 125 | |
| 126 | func (e *ContextOverflowError) Error() string { |
| 127 | if e.Underlying == nil { |
| 128 | return "context window overflow" |
| 129 | } |
| 130 | return "context window overflow: " + e.Underlying.Error() |
| 131 | } |
| 132 | |
| 133 | func (e *ContextOverflowError) Unwrap() error { |
| 134 | return e.Underlying |