Skip to content

cayu.tasks.TaskRetryAttemptReport

Part of cayu.tasks.base. Read the Python API overview and install the required extra.

from cayu.tasks import TaskRetryAttemptReport

Application-owned classification and bounded accounting for one attempt.

Bases: _TaskRetryAttemptOutcome.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
idempotency_key str required
disposition TaskRetryAttemptDisposition required
result dict[str, Any] | None None
error dict[str, Any] | None None
token_count StrictInt Field(default=0, ge=0, le=_TASK_RETRY_MAX_ATTEMPT_TOKEN_REPORT)
estimated_cost Decimal Field(default=Decimal(0), ge=0)
retry_after_seconds StrictFloat | None Field(default=None, ge=0, le=86400)
TaskRetryAttemptReport.validate_idempotency_key(value: str) -> str
TaskRetryAttemptReport.copy_payload(value: dict[str, Any] | None, info) -> dict[str, Any] | None
TaskRetryAttemptReport.validate_estimated_cost(value: Decimal) -> Decimal
TaskRetryAttemptReport.validate_disposition_payload() -> _TaskRetryAttemptOutcome

Release source · Runtime guarantees · Capability guides