errors
diapason.agents.errors
¶
Error classification for managed agent execution.
AgentTickError
¶
Bases: Exception
Base class for agent tick errors.
EscalateError
¶
FatalError
¶
RetryableError
¶
classify_error(exc)
¶
Classify an arbitrary exception into a RetryableError or FatalError.
retry_delay(attempt)
¶
Exponential backoff delay in seconds: min(10 * 2^attempt, 300).
suggest_action(error)
¶
Return a human-readable suggested action for the given error.