Skip to main content

Module retry

Module retry 

Source
Expand description

Shared retry policy and classification helpers for VT Code.

Structs§

RetryDecision
Result of classifying a failure for retry handling.
RetryPolicy
Typed retry policy shared across runtime layers.

Enums§

RetryEvent
Lifecycle event emitted by run_with_retry so callers can attach logging, metrics, or stats updates without re-implementing the loop.
RetryStep
Typed step produced by RetryPolicy::step_for_vtcode_error.

Functions§

decision_for_anyhow_error
decision_for_vtcode_error
is_command_tool
run_with_retry
Drive a retry loop per policy, invoking on_event for each lifecycle event. Returns the first successful result, or the final error if the policy gives up or all attempts are exhausted.