Skip to content

cayu.budgets.quality

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu.budgets import ComparableGenerationSettings

Opaque identity of the output-affecting settings declared for one side.

Bases: BaseModel.

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
revision str Field(max_length=71)
ComparableGenerationSettings.validate_revision(value: str) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import ComparableOutputBudget

The final-output envelope that must match across a verified pair.

Bases: BaseModel.

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
output_mode Literal['text', 'structured'] 'text'
max_output_tokens StrictInt Field(gt=0, le=MAX_DURABLE_JSON_INTEGER)

Release source · Runtime guarantees · Capability guides

from cayu.budgets import compare_paired_cost_quality

Return one deterministic report from bounded caller-owned evidence.

compare_paired_cost_quality(request: PairedCostQualityComparisonRequest) -> PairedCostQualityComparisonReport

Release source · Runtime guarantees · Capability guides

from cayu.budgets import ComparisonCostLineItem

Bounded, safe accounting projection of one runtime cost line item.

Bases: BaseModel.

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
model_step StrictInt Field(ge=1, le=MAX_DURABLE_JSON_INTEGER)
execution_profile_fingerprint str | None Field(default=None, max_length=64, exclude_if=lambda value: value is None)
provider_name str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
requested_model str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
model str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
pricing_provider_name str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
pricing_model str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
pricing_match Literal['exact', 'prefix', 'resource_mapping'] | None None
pricing_provenance ComparisonPricingProvenance | None None
pricing_effective_from date | None None
pricing_effective_through date | None None
pricing_tier_max_input_tokens StrictInt | None Field(default=None, gt=0, le=MAX_DURABLE_JSON_INTEGER)
priced StrictBool required
unpriced_reason UnpricedReason | None None
currency str Field(max_length=_MAX_IDENTITY_CHARS)
input_tokens StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
output_tokens StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
cache_read_input_tokens StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
cache_write_input_tokens StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
cache_write_5m_input_tokens StrictInt Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER)
cache_write_1h_input_tokens StrictInt Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER)
cache_write_unknown_ttl_input_tokens StrictInt Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER)
web_search_calls StrictInt Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER)
web_search_outcome_unknown StrictInt Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER)
uncached_input_tokens StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
input_cost Decimal Field(ge=0, le=_MAX_COST_VALUE)
output_cost Decimal Field(ge=0, le=_MAX_COST_VALUE)
cache_read_input_cost Decimal Field(ge=0, le=_MAX_COST_VALUE)
cache_write_input_cost Decimal Field(ge=0, le=_MAX_COST_VALUE)
web_search_cost Decimal Field(default=Decimal('0'), ge=0, le=_MAX_COST_VALUE)
total_cost Decimal Field(ge=0, le=_MAX_COST_VALUE)
missing_pricing_reason str | None Field(default=None, max_length=_MAX_REFERENCE_CHARS)
ComparisonCostLineItem.from_cost_line_item(item: CostLineItem) -> ComparisonCostLineItem
ComparisonCostLineItem.copy_provenance(value: object) -> object
ComparisonCostLineItem.validate_optional_text(value: str | None, info) -> str | None
ComparisonCostLineItem.validate_currency(value: str) -> str
ComparisonCostLineItem.validate_cost(value: Decimal, info) -> Decimal

Release source · Runtime guarantees · Capability guides

from cayu.budgets import ComparisonPricingCatalog

Identity of the application-selected price book used for one side.

Bases: BaseModel.

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
price_book_version str Field(max_length=_MAX_IDENTITY_CHARS)
generated_at str Field(max_length=_MAX_IDENTITY_CHARS)
ComparisonPricingCatalog.validate_identity(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import ComparisonPricingProvenance

Bounded, allowlisted pricing source retained in comparison reports.

Bases: BaseModel.

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
source str Field(max_length=_MAX_REFERENCE_CHARS)
url str Field(max_length=_MAX_REFERENCE_CHARS)
as_of str Field(max_length=_MAX_IDENTITY_CHARS)
ComparisonPricingProvenance.from_provenance(provenance: Provenance) -> ComparisonPricingProvenance
ComparisonPricingProvenance.validate_text(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import COST_QUALITY_COMPARISON_SCHEMA_VERSION
COST_QUALITY_COMPARISON_SCHEMA_VERSION = 3

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostAccountingTotals

Recomputed usage and priced subtotals for one evidence scope.

Bases: BaseModel.

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
attempt_count StrictInt Field(ge=0)
first_attempt_count StrictInt Field(ge=0)
retry_attempt_count StrictInt Field(ge=0)
priced_attempt_count StrictInt Field(ge=0)
unpriced_attempt_count StrictInt Field(ge=0)
missing_usage_attempt_count StrictInt Field(ge=0)
input_tokens StrictInt Field(ge=0)
output_tokens StrictInt Field(ge=0)
cache_read_input_tokens StrictInt Field(ge=0)
cache_write_input_tokens StrictInt Field(ge=0)
web_search_calls StrictInt Field(default=0, ge=0)
web_search_outcome_unknown StrictInt Field(default=0, ge=0)
uncached_input_tokens StrictInt Field(ge=0)
currencies tuple[CostCurrencyTotal, ...] ()
CostAccountingTotals.copy_currencies(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostBranchTotals

Bases: BaseModel.

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
branch_id str required
totals CostAccountingTotals required
CostBranchTotals.copy_totals(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostCurrencyTotal

Priced subtotal in one currency; currencies are never combined.

Bases: BaseModel.

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
currency str Field(max_length=_MAX_IDENTITY_CHARS)
priced_cost Decimal Field(ge=0)
CostCurrencyTotal.validate_currency(value: str) -> str
CostCurrencyTotal.validate_cost(value: Decimal) -> Decimal

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostDirection

Observed direction of candidate cost relative to baseline cost.

Bases: StrEnum.

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
SAVINGS class attribute 'savings'
BREAK_EVEN class attribute 'break_even'
INCREASED_COST class attribute 'increased_cost'
UNAVAILABLE class attribute 'unavailable'

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostOperationTotals

Bases: BaseModel.

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
operation CostQualityAttemptOperation required
totals CostAccountingTotals required
CostOperationTotals.copy_totals(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityAggregateReport

Verified-pair arithmetic plus every typed exclusion.

Bases: BaseModel.

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
status CostQualityComparisonStatus required
pair_count StrictInt Field(ge=1)
eligible_pair_ids tuple[str, ...] required
exclusions tuple[CostQualityPairExclusion, ...] required
findings tuple[CostQualityFinding, ...] required
currency str | None required
baseline_cost Decimal | None required
candidate_cost Decimal | None required
savings Decimal | None required
savings_percentage Decimal | None required
savings_percentage_state SavingsPercentageState required
cost_direction CostDirection required
CostQualityAggregateReport.copy_exclusions(value: object) -> object
CostQualityAggregateReport.copy_findings(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityAttemptOperation

Why one provider attempt was made.

Bases: StrEnum.

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
AGENT_STEP class attribute 'agent_step'
COMPACTION class attribute 'compaction'
STRUCTURED_OUTPUT_REPAIR class attribute 'structured_output_repair'
EVALUATION class attribute 'evaluation'
REPAIR class attribute 'repair'
COMPARISON_CONTROL class attribute 'comparison_control'

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityComparisonStatus

Strength of the cost-and-quality claim supported by retained evidence.

Bases: StrEnum.

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
VERIFIED class attribute 'verified'
MEASURED_UNMATCHED class attribute 'measured_unmatched'
UNPRICED class attribute 'unpriced'
UNAVAILABLE class attribute 'unavailable'

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityFinding

One typed, bounded explanation of proof loss.

Bases: BaseModel.

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
code CostQualityFindingCode required
field str Field(max_length=_MAX_IDENTITY_CHARS)
detail str Field(max_length=_MAX_REFERENCE_CHARS)
CostQualityFinding.validate_text(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityFindingCode

Stable reason a pair or aggregate cannot make a stronger claim.

Bases: StrEnum.

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
MISSING_SIDE class attribute 'missing_side'
WORKLOAD_MISMATCH class attribute 'workload_mismatch'
TASK_MISMATCH class attribute 'task_mismatch'
SOURCE_MISMATCH class attribute 'source_mismatch'
SOURCE_CHECKPOINT_MISMATCH class attribute 'source_checkpoint_mismatch'
ROLE_MISMATCH class attribute 'role_mismatch'
OUTPUT_BUDGET_MISMATCH class attribute 'output_budget_mismatch'
GENERATION_SETTINGS_MISMATCH class attribute 'generation_settings_mismatch'
MISSING_ATTEMPTS class attribute 'missing_attempts'
DUPLICATE_ATTEMPT class attribute 'duplicate_attempt'
ATTEMPT_SEQUENCE_INVALID class attribute 'attempt_sequence_invalid'
MISSING_ATTEMPT_IDENTITY class attribute 'missing_attempt_identity'
MISSING_USAGE class attribute 'missing_usage'
CONTRADICTORY_USAGE class attribute 'contradictory_usage'
MISSING_PRICING_PROVENANCE class attribute 'missing_pricing_provenance'
PRICING_CATALOG_MISMATCH class attribute 'pricing_catalog_mismatch'
PRICING_PROVENANCE_MISMATCH class attribute 'pricing_provenance_mismatch'
MIXED_CURRENCY class attribute 'mixed_currency'
UNPRICED_ATTEMPT class attribute 'unpriced_attempt'
QUALITY_EVIDENCE_MISSING class attribute 'quality_evidence_missing'
QUALITY_CONTRACT_MISMATCH class attribute 'quality_contract_mismatch'
QUALITY_EVIDENCE_INVALID class attribute 'quality_evidence_invalid'
QUALITY_GATE_FAILED class attribute 'quality_gate_failed'
QUALITY_GATE_UNAVAILABLE class attribute 'quality_gate_unavailable'
AGGREGATE_COHORT_MISMATCH class attribute 'aggregate_cohort_mismatch'

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostQualityPairExclusion

Why one pair does not contribute to the verified aggregate percentage.

Bases: BaseModel.

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
pair_id str required
status CostQualityComparisonStatus required
findings tuple[CostQualityFinding, ...] required
CostQualityPairExclusion.copy_findings(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import CostSessionTotals

Bases: BaseModel.

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
session_id str required
totals CostAccountingTotals required
CostSessionTotals.copy_totals(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostAttempt

One attributable provider attempt and its provider-reported cost evidence.

Bases: BaseModel.

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
attempt_id str Field(max_length=_MAX_IDENTITY_CHARS)
operation_id str Field(max_length=_MAX_IDENTITY_CHARS)
session_id str Field(max_length=_MAX_IDENTITY_CHARS)
branch_id str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
role str Field(max_length=_MAX_IDENTITY_CHARS)
operation CostQualityAttemptOperation required
attempt_ordinal StrictInt Field(ge=1, le=MAX_DURABLE_JSON_INTEGER)
provider_name str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
model str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
source_checkpoint_id str | None Field(default=None, max_length=_MAX_IDENTITY_CHARS)
cost ComparisonCostLineItem | None None
usage_unavailable_reason str | None Field(default=None, max_length=_MAX_REFERENCE_CHARS)
PairedCostAttempt.copy_cost(value: object) -> object
PairedCostAttempt.validate_identity(value: str, info) -> str
PairedCostAttempt.validate_optional_text(value: str | None, info) -> str | None

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualityComparisonReport

Versioned, serialization-safe result of one pure comparison.

Bases: BaseModel.

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
schema_version Literal[3] COST_QUALITY_COMPARISON_SCHEMA_VERSION
status CostQualityComparisonStatus required
pairs tuple[PairedCostQualityPairReport, ...] required
aggregate CostQualityAggregateReport required
PairedCostQualityComparisonReport.copy_pairs(value: object) -> object
PairedCostQualityComparisonReport.copy_aggregate(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualityComparisonRequest

Bounded input to the canonical paired cost-and-quality comparison.

Bases: BaseModel.

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
pairs tuple[PairedCostQualityPair, ...] Field(min_length=1, max_length=_MAX_PAIRS)
PairedCostQualityComparisonRequest.order_pairs(value: tuple[PairedCostQualityPair, ...]) -> tuple[PairedCostQualityPair, ...]
PairedCostQualityComparisonRequest.validate_request_work() -> PairedCostQualityComparisonRequest

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualityPair

A stable pair identity with optional sides so absence stays explicit.

Bases: BaseModel.

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
pair_id str Field(max_length=_MAX_IDENTITY_CHARS)
baseline PairedCostQualitySide | None None
candidate PairedCostQualitySide | None None
PairedCostQualityPair.copy_sides(value: object) -> object
PairedCostQualityPair.validate_pair_id(value: str) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualityPairReport

One pair’s raw accounting and strongest supportable claim.

Bases: BaseModel.

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
pair_id str required
status CostQualityComparisonStatus required
findings tuple[CostQualityFinding, ...] required
baseline PairedCostQualitySideReport | None required
candidate PairedCostQualitySideReport | None required
eligible_for_verified_aggregate bool required
currency str | None required
baseline_cost Decimal | None required
candidate_cost Decimal | None required
savings Decimal | None required
savings_percentage Decimal | None required
savings_percentage_state SavingsPercentageState required
cost_direction CostDirection required
PairedCostQualityPairReport.copy_findings(value: object) -> object
PairedCostQualityPairReport.copy_sides(value: object) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualitySide

One baseline or candidate strategy under a matched comparison contract.

Bases: BaseModel.

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
strategy_id str Field(max_length=_MAX_IDENTITY_CHARS)
workload_id str Field(max_length=_MAX_IDENTITY_CHARS)
task_id str Field(max_length=_MAX_IDENTITY_CHARS)
source_id str Field(max_length=_MAX_IDENTITY_CHARS)
role str Field(max_length=_MAX_IDENTITY_CHARS)
output_budget ComparableOutputBudget required
generation_settings ComparableGenerationSettings required
pricing_catalog ComparisonPricingCatalog | None None
quality PairedQualityEvidence | None None
attempts tuple[PairedCostAttempt, ...] Field(default_factory=tuple, max_length=_MAX_ATTEMPTS_PER_SIDE)
PairedCostQualitySide.copy_nested_contracts(value: object) -> object
PairedCostQualitySide.copy_attempts(value: object) -> object
PairedCostQualitySide.validate_identity(value: str, info) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedCostQualitySideReport

Safe, deterministic accounting projection for one supplied side.

Bases: BaseModel.

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
strategy_id str required
workload_id str required
task_id str required
source_id str required
role str required
output_budget ComparableOutputBudget required
generation_settings ComparableGenerationSettings required
pricing_catalog ComparisonPricingCatalog | None required
pricing_provenance tuple[ComparisonPricingProvenance, ...] required
quality PairedQualityEvidence | None required
attempts tuple[PairedCostAttempt, ...] required
whole_harness CostAccountingTotals required
operations tuple[CostOperationTotals, ...] required
sessions tuple[CostSessionTotals, ...] required
branches tuple[CostBranchTotals, ...] required
PairedCostQualitySideReport.copy_nested_contracts(value: object) -> object
PairedCostQualitySideReport.copy_provenance(value: object) -> object
PairedCostQualitySideReport.copy_attempts(value: object) -> object
PairedCostQualitySideReport.copy_breakdowns(value: object, info) -> object

Release source · Runtime guarantees · Capability guides

from cayu.budgets import PairedQualityEvidence

Application-owned result from one declared quality contract.

Bases: BaseModel.

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
contract_name str Field(max_length=_MAX_IDENTITY_CHARS)
contract_version str Field(max_length=_MAX_IDENTITY_CHARS)
threshold Decimal Field(ge=0, le=1)
role str Field(max_length=_MAX_IDENTITY_CHARS)
status QualityEvidenceStatus required
score Decimal | None Field(default=None, ge=0, le=1)
references tuple[QualityEvidenceReference, ...] Field(default_factory=tuple, max_length=_MAX_QUALITY_REFERENCES)
PairedQualityEvidence.order_references(value: tuple[QualityEvidenceReference, ...]) -> tuple[QualityEvidenceReference, ...]
PairedQualityEvidence.validate_identity(value: str, info) -> str
PairedQualityEvidence.validate_decimal(value: Decimal | None, info) -> Decimal | None

Release source · Runtime guarantees · Capability guides

from cayu.budgets import QualityEvidenceReference

Opaque, non-secret identifier for application-owned quality evidence.

Bases: BaseModel.

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
kind str Field(max_length=128)
reference str Field(max_length=71)
QualityEvidenceReference.validate_kind(value: str, info) -> str
QualityEvidenceReference.validate_reference(value: str) -> str

Release source · Runtime guarantees · Capability guides

from cayu.budgets import QualityEvidenceStatus

Outcome of one application-owned quality gate.

Bases: StrEnum.

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
PASSED class attribute 'passed'
FAILED class attribute 'failed'
UNAVAILABLE class attribute 'unavailable'

Release source · Runtime guarantees · Capability guides

from cayu.budgets import SavingsPercentageState

Why a savings percentage is present or absent.

Bases: StrEnum.

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
COMPUTED class attribute 'computed'
ZERO_BASELINE class attribute 'zero_baseline'
UNAVAILABLE class attribute 'unavailable'

Release source · Runtime guarantees · Capability guides