cayu.evals.evidence
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.
ArtifactScopeEvidenceV1
Section titled “ArtifactScopeEvidenceV1”from cayu.evals import ArtifactScopeEvidenceV1Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
scope |
Literal['session', 'environment'] |
required |
state |
EvidenceState |
required |
Release source · Runtime guarantees · Capability guides
ArtifactStructuralEvidenceV1
Section titled “ArtifactStructuralEvidenceV1”from cayu.evals import ArtifactStructuralEvidenceV1One content-minimized artifact observation with no private store identity.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
observation_index |
StrictInt |
Field(ge=1, le=EVAL_ARTIFACT_EVIDENCE_MAX_ARTIFACTS) |
scope |
Literal['session', 'environment'] |
required |
filename |
StrictStr |
required |
content_type |
StrictStr |
required |
size_bytes |
StrictInt |
Field(ge=0, le=EVIDENCE_MAX_TOTAL_TOKENS) |
digest_state |
Literal['complete', 'limit_exceeded', 'unavailable'] |
required |
sha256 |
StrictStr | None |
None |
text_state |
ArtifactTextEvidenceState |
required |
text |
StrictStr | None |
None |
validate_filename (method)
Section titled “validate_filename (method)”ArtifactStructuralEvidenceV1.validate_filename(value: str, info) -> strvalidate_content_type (method)
Section titled “validate_content_type (method)”ArtifactStructuralEvidenceV1.validate_content_type(value: str, info) -> strvalidate_text (method)
Section titled “validate_text (method)”ArtifactStructuralEvidenceV1.validate_text(value: str | None, info) -> str | Nonevalidate_contract (method)
Section titled “validate_contract (method)”ArtifactStructuralEvidenceV1.validate_contract() -> ArtifactStructuralEvidenceV1Release source · Runtime guarantees · Capability guides
ASSERTION_EVIDENCE_MAX_BYTES
Section titled “ASSERTION_EVIDENCE_MAX_BYTES”from cayu.evals import ASSERTION_EVIDENCE_MAX_BYTESASSERTION_EVIDENCE_MAX_BYTES = 10 << 20Release source · Runtime guarantees · Capability guides
ASSERTION_EVIDENCE_SCHEMA_VERSION
Section titled “ASSERTION_EVIDENCE_SCHEMA_VERSION”from cayu.evals import ASSERTION_EVIDENCE_SCHEMA_VERSIONASSERTION_EVIDENCE_SCHEMA_VERSION = 5Release source · Runtime guarantees · Capability guides
AssertionCostEvidenceV1
Section titled “AssertionCostEvidenceV1”from cayu.evals import AssertionCostEvidenceV1One currency-local aggregate with no provider, model, or line-item identity.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
StrictStr |
required |
total_cost |
StrictStr |
required |
model_steps |
StrictInt |
Field(ge=0, le=EVIDENCE_MAX_MODEL_STEPS) |
priced_model_steps |
StrictInt |
Field(ge=0, le=EVIDENCE_MAX_MODEL_STEPS) |
unpriced_model_steps |
StrictInt |
Field(ge=0, le=EVIDENCE_MAX_MODEL_STEPS) |
validate_currency (method)
Section titled “validate_currency (method)”AssertionCostEvidenceV1.validate_currency(value: str, info) -> strvalidate_total_cost (method)
Section titled “validate_total_cost (method)”AssertionCostEvidenceV1.validate_total_cost(value: str, info) -> strvalidate_step_partition (method)
Section titled “validate_step_partition (method)”AssertionCostEvidenceV1.validate_step_partition() -> AssertionCostEvidenceV1Release source · Runtime guarantees · Capability guides
AssertionEvidenceView
Section titled “AssertionEvidenceView”from cayu.evals import AssertionEvidenceViewThe bounded, content-minimized data consumed by every portable assertion.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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[5] |
ASSERTION_EVIDENCE_SCHEMA_VERSION |
revision |
StrictStr |
required |
policy_revision |
StrictStr |
required |
pricing_profile_fingerprint |
StrictStr | None |
None |
root_evidence_available |
StrictBool |
required |
root_status |
TerminalEvidenceStatus | None |
None |
child_statuses |
tuple[TerminalEvidenceStatus, ...] |
Field(max_length=EVIDENCE_MAX_CHILD_SESSIONS) |
child_evidence_state |
EvidenceState |
required |
final_output |
StrictStr |
required |
final_output_state |
EvidenceState |
required |
requested_tool_names |
tuple[StrictStr, ...] |
Field(max_length=EVIDENCE_MAX_TOOL_CALLS) |
started_tool_names |
tuple[StrictStr, ...] |
Field(max_length=EVIDENCE_MAX_TOOL_CALLS) |
tool_calls_started |
StrictInt | None |
Field(default=None, ge=0, le=EVIDENCE_MAX_TOTAL_TOKENS) |
tool_evidence_state |
EvidenceState |
required |
tool_calls |
tuple[ToolCallEvidenceV1, ...] |
Field(max_length=EVAL_TOOL_CALL_EVIDENCE_MAX_CALLS) |
tool_call_evidence_state |
ToolCallEvidenceState |
required |
process_events |
tuple[EvalProcessEventKind, ...] |
Field(max_length=EVAL_PROCESS_EVENT_EVIDENCE_MAX_EVENTS) |
process_event_evidence_state |
EvidenceState |
required |
workspace_files |
tuple[WorkspaceStructuralEvidenceV1, ...] |
Field(default_factory=tuple, max_length=EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE) |
workspace_evidence_state |
EvidenceState |
'unavailable' |
artifacts |
tuple[ArtifactStructuralEvidenceV1, ...] |
Field(default_factory=tuple, max_length=EVAL_ARTIFACT_EVIDENCE_MAX_ARTIFACTS) |
artifact_scopes |
tuple[ArtifactScopeEvidenceV1, ...] |
Field(default_factory=tuple, max_length=2) |
model_steps |
StrictInt | None |
Field(default=None, ge=0, le=EVIDENCE_MAX_TOTAL_TOKENS) |
model_step_evidence_state |
EvidenceState |
required |
total_tokens |
AggregateCount | None |
Field(default=None, ge=0) |
usage_evidence_state |
EvidenceState |
required |
costs |
tuple[AssertionCostEvidenceV1, ...] |
Field(max_length=ASSERTION_EVIDENCE_MAX_COST_CURRENCIES) |
memory_attribution |
EvalMemoryAttributionEvidenceV1 |
required |
validate_collections_are_ordered (method)
Section titled “validate_collections_are_ordered (method)”AssertionEvidenceView.validate_collections_are_ordered(value: object, info) -> objectvalidate_revision_shape (method)
Section titled “validate_revision_shape (method)”AssertionEvidenceView.validate_revision_shape(value: str, info) -> strvalidate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”AssertionEvidenceView.validate_schema_version_type(value: object) -> objectvalidate_pricing_fingerprint (method)
Section titled “validate_pricing_fingerprint (method)”AssertionEvidenceView.validate_pricing_fingerprint(value: str | None, info) -> str | Nonevalidate_final_output (method)
Section titled “validate_final_output (method)”AssertionEvidenceView.validate_final_output(value: str, info) -> strvalidate_tool_names (method)
Section titled “validate_tool_names (method)”AssertionEvidenceView.validate_tool_names(value: tuple[str, ...], info) -> tuple[str, ...]validate_contract (method)
Section titled “validate_contract (method)”AssertionEvidenceView.validate_contract() -> AssertionEvidenceViewRelease source · Runtime guarantees · Capability guides
project_assertion_evidence_view
Section titled “project_assertion_evidence_view”from cayu.evals import project_assertion_evidence_viewBuild a detached, redacted assertion view from one validated trajectory.
project_assertion_evidence_view(app: CayuApp, trajectory: Trajectory, *, evidence_policy: EvaluationEvidencePolicySpec, pricing: PriceBook | None=None, cost_currencies: Sequence[str]=(), memory_attribution_evidence: EvalMemoryAttributionEvidenceV1 | None=None) -> AssertionEvidenceViewRelease source · Runtime guarantees · Capability guides
ToolCallEvidenceV1
Section titled “ToolCallEvidenceV1”from cayu.evals import ToolCallEvidenceV1Stable ordered identity plus bounded argument and result observations.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
invocation_index |
StrictInt |
Field(ge=1, le=EVAL_TOOL_CALL_EVIDENCE_MAX_CALLS) |
invocation_revision |
StrictStr |
required |
tool_name |
StrictStr |
required |
occurrence |
StrictInt |
Field(ge=1, le=EVAL_TOOL_CALL_EVIDENCE_MAX_CALLS) |
arguments |
ToolCallValueEvidenceV1 |
required |
result |
ToolCallValueEvidenceV1 |
required |
validate_invocation_revision (method)
Section titled “validate_invocation_revision (method)”ToolCallEvidenceV1.validate_invocation_revision(value: str, info) -> strvalidate_tool_name (method)
Section titled “validate_tool_name (method)”ToolCallEvidenceV1.validate_tool_name(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
ToolCallValueEvidenceV1
Section titled “ToolCallValueEvidenceV1”from cayu.evals import ToolCallValueEvidenceV1One bounded public value or an exact reason no comparison is possible.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
state |
ToolValueEvidenceState |
required |
value |
dict[str, Any] | None |
None |
validate_value (method)
Section titled “validate_value (method)”ToolCallValueEvidenceV1.validate_value(value: object, info) -> dict[str, Any] | Nonevalidate_contract (method)
Section titled “validate_contract (method)”ToolCallValueEvidenceV1.validate_contract() -> ToolCallValueEvidenceV1Release source · Runtime guarantees · Capability guides
WorkspaceStructuralEvidenceV1
Section titled “WorkspaceStructuralEvidenceV1”from cayu.evals import WorkspaceStructuralEvidenceV1One declared workspace path without retained content bytes.
Bases: _PortableModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
path |
StrictStr |
required |
state |
Literal['present', 'missing', 'unavailable'] |
required |
total_bytes |
StrictInt | None |
Field(default=None, ge=0, le=EVIDENCE_MAX_TOTAL_TOKENS) |
digest_state |
Literal['complete', 'limit_exceeded', 'unavailable'] |
required |
sha256 |
StrictStr | None |
None |
validate_path (method)
Section titled “validate_path (method)”WorkspaceStructuralEvidenceV1.validate_path(value: str, info) -> strvalidate_contract (method)
Section titled “validate_contract (method)”WorkspaceStructuralEvidenceV1.validate_contract() -> WorkspaceStructuralEvidenceV1