reason property
String
get
reason
Implementation
String get reason {
switch (dimension) {
case BudgetDimension.calls:
return 'max-calls ($max) exceeded (current=$current)';
case BudgetDimension.wallClock:
return 'max-wall-clock (${max}ms) exceeded (current=${current}ms)';
case BudgetDimension.tokens:
return 'max-tokens ($max) exceeded (current=$current)';
case BudgetDimension.perToolClass:
return 'per-tool-class $toolClass (${max}ms) exceeded (current=${current}ms)';
}
}