Skip to content

docs: document reason-aware retry and budget-aware router#55

Merged
ahmed-sekka merged 1 commit into
mainfrom
docs/document-retry-and-router
May 26, 2026
Merged

docs: document reason-aware retry and budget-aware router#55
ahmed-sekka merged 1 commit into
mainfrom
docs/document-retry-and-router

Conversation

@ahmed-sekka
Copy link
Copy Markdown
Contributor

  • Fix section 1: retry wires on AgentGraph (graph-wide or per-node), not ExecutorAgent; use RetryPolicy.exponential(int, Duration) (exponentialBackoff never existed).
  • Add 'Reason-aware retries': FailureCategory TRANSIENT/PERMANENT/ OVER_BUDGET, the default FailureClassifier, Retry-After honouring, custom classifier composition via orElse, and the retryOn fallback.
  • Add 'Cost-aware routing': RoutingStrategy.budgetAware(...) reading live BudgetPolicy.remaining(scope, node) to degrade premium->fallback.

- Fix section 1: retry wires on AgentGraph (graph-wide or per-node),
  not ExecutorAgent; use RetryPolicy.exponential(int, Duration)
  (exponentialBackoff never existed).
- Add 'Reason-aware retries': FailureCategory TRANSIENT/PERMANENT/
  OVER_BUDGET, the default FailureClassifier, Retry-After honouring,
  custom classifier composition via orElse, and the retryOn fallback.
- Add 'Cost-aware routing': RoutingStrategy.budgetAware(...) reading
  live BudgetPolicy.remaining(scope, node) to degrade premium->fallback.
@ahmed-sekka ahmed-sekka merged commit 30496c6 into main May 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants