Agentic.LLM.ErrorClassifier
(agentic v0.2.2)
Copy Markdown
Unified error classification combining three sources:
- Provider-specific override via
Provider.classify_http_error/3 - HTTP status code baseline lookup
- Pattern-based fallback via
ErrorPatterns.classify_message/1 - Always test for
:context_overflowseparately (can happen on any status)
If none match, falls through to :permanent.
Summary
Functions
Classify an error from HTTP status, body, and headers.
Types
@type classification() :: Agentic.LLM.Error.classification()
Functions
Classify an error from HTTP status, body, and headers.
provider is the provider module (e.g. Agentic.LLM.Provider.Groq).
When the provider implements the optional classify_http_error/3
callback, its result takes precedence over the generic baseline.