Documentation
¶
Overview ¶
Package aigoerr provides structured, classifiable errors for aigo engines. Agents can use IsRetryable and GetCode to make informed retry decisions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryable ¶
IsRetryable checks the error chain for a retryable *Error.
Types ¶
type Error ¶
type Error struct {
Code Code
StatusCode int
Message string
Retryable bool
RetryAfter time.Duration
Err error // wrapped original
}
Error is a structured error carrying classification metadata.
func FromHTTPResponse ¶
FromHTTPResponse creates a classified Error from an HTTP response. prefix is prepended to the message (e.g., "newapi", "openai").
Click to show internal directories.
Click to hide internal directories.