Answer the architect: a pure worker_outcome, Limited beside the retry, a limit ends a run of failures
This commit is contained in:
@@ -5,10 +5,3 @@ 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; said is claude's message about it, and resets_at is when the limit resets, in seconds since the epoch, or None when unknown."""
|
||||
resets_at: int | None
|
||||
said: str
|
||||
|
||||
Reference in New Issue
Block a user