Skip to content

errors

diapason.agents.errors

Error classification for managed agent execution.

AgentTickError

Bases: Exception

Base class for agent tick errors.

EscalateError

Bases: AgentTickError

Agent is uncertain and needs human input.

FatalError

Bases: AgentTickError

Permanent error that requires user intervention.

RetryableError

Bases: AgentTickError

Transient error that should be retried with backoff.

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.