picoclaw/pkg/agent/errors.go
anthrodjear 6d194ae713 chore: remove sensitive files and rotate API keys
- Remove CLAUDE.md, AGENTS.md
- Fix config.example.json with placeholder API key
- Remove exposed NVIDIA and OpenRouter keys from .env (already rotated)
2026-05-08 09:08:32 +03:00

16 lines
429 B
Go

package agent
import "fmt"
// ContextOverflowError is a structured error for context window exceeded.
type ContextOverflowError struct {
Model string
ContextWindow int
RequestedTokens int
Reason string
}
func (e *ContextOverflowError) Error() string {
return fmt.Sprintf("context window exceeded: model=%s window=%d requested=%d reason=%s",
e.Model, e.ContextWindow, e.RequestedTokens, e.Reason)
}