Wait out a usage limit and retry, without counting it as a failed run
This commit is contained in:
@@ -5,3 +5,9 @@ import dataclasses
|
||||
class Failure:
|
||||
"""A step failed, and reason says why; its caller decides what follows."""
|
||||
reason: str
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Limited:
|
||||
"""claude hit a usage limit, which resets at resets_at in seconds since the epoch, or at a time it did not say."""
|
||||
resets_at: int | None
|
||||
|
||||
Reference in New Issue
Block a user