Skip to content
Français

WorkflowBudget

import type { WorkflowBudget } from "@elie-laloum/outpost";
  • attemptsOptional
    number | undefined
    Maximum task attempts admitted over the run and its checkpoint resumes. Reaching it cancels the tasks not yet started.
  • usageOptional
    Partial<Omit<Usage, "complete">> | undefined
    Token limits per counter (input, cached, cacheCreated, output). Reaching one cancels running tasks too; usage reported late can exceed it.
export interface WorkflowBudget {
  readonly attempts?: number;
  readonly usage?: Partial<Omit<Usage, "complete">>;
}