cayu.evals.result_presentation
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.
EVAL_RESULT_PRESENTATION_MAX_BYTES
Section titled “EVAL_RESULT_PRESENTATION_MAX_BYTES”from cayu.evals import EVAL_RESULT_PRESENTATION_MAX_BYTESEVAL_RESULT_PRESENTATION_MAX_BYTES = 32 << 20Release source · Runtime guarantees · Capability guides
EVAL_RESULT_PRESENTATION_SCHEMA_VERSION
Section titled “EVAL_RESULT_PRESENTATION_SCHEMA_VERSION”from cayu.evals import EVAL_RESULT_PRESENTATION_SCHEMA_VERSIONEVAL_RESULT_PRESENTATION_SCHEMA_VERSION = 2Release source · Runtime guarantees · Capability guides
eval_result_report_from_json
Section titled “eval_result_report_from_json”from cayu.evals import eval_result_report_from_jsonParse one bounded explainable-result report without format guessing.
eval_result_report_from_json(source: str | bytes | bytearray) -> EvalResultReportV2Release source · Runtime guarantees · Capability guides
EVAL_RESULT_REPORT_MAX_BYTES
Section titled “EVAL_RESULT_REPORT_MAX_BYTES”from cayu.evals import EVAL_RESULT_REPORT_MAX_BYTESEVAL_RESULT_REPORT_MAX_BYTES = 96 << 20Release source · Runtime guarantees · Capability guides
EVAL_RESULT_REPORT_SCHEMA_VERSION
Section titled “EVAL_RESULT_REPORT_SCHEMA_VERSION”from cayu.evals import EVAL_RESULT_REPORT_SCHEMA_VERSIONEVAL_RESULT_REPORT_SCHEMA_VERSION = 2Release source · Runtime guarantees · Capability guides
EvalAssertionPresentationV1
Section titled “EvalAssertionPresentationV1”from cayu.evals import EvalAssertionPresentationV1Bases: _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 |
|---|---|---|
assertion_id |
StrictStr |
required |
assertion_revision |
StrictStr |
required |
kind |
StrictStr |
required |
category |
EvalAssertionCategory |
required |
outcome |
PublishedOutcome |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
model_judge |
PublishedModelJudgeDetail | None |
None |
structured_judge |
EvalStructuredJudgePresentationV1 | None |
None |
tool_json |
PublishedToolArgumentsContainDetail | PublishedToolResultContainsDetail | None |
None |
process |
PublishedChildStatusDetail | PublishedProcessEventDetail | PublishedProcessEventsInOrderDetail | None |
None |
structure |
PublishedWorkspaceFileDetail | PublishedArtifactDetail | None |
None |
memory |
PublishedMemoryAttributionDetail | None |
None |
copy_model_judge (method)
Section titled “copy_model_judge (method)”EvalAssertionPresentationV1.copy_model_judge(value: object) -> objectcopy_tool_json (method)
Section titled “copy_tool_json (method)”EvalAssertionPresentationV1.copy_tool_json(value: object) -> objectcopy_process (method)
Section titled “copy_process (method)”EvalAssertionPresentationV1.copy_process(value: object) -> objectcopy_structure (method)
Section titled “copy_structure (method)”EvalAssertionPresentationV1.copy_structure(value: object) -> objectcopy_memory (method)
Section titled “copy_memory (method)”EvalAssertionPresentationV1.copy_memory(value: object) -> objectvalidate_assertion_id (method)
Section titled “validate_assertion_id (method)”EvalAssertionPresentationV1.validate_assertion_id(value: str, info) -> strvalidate_assertion_revision (method)
Section titled “validate_assertion_revision (method)”EvalAssertionPresentationV1.validate_assertion_revision(value: str, info) -> strvalidate_kind (method)
Section titled “validate_kind (method)”EvalAssertionPresentationV1.validate_kind(value: str, info) -> strvalidate_assertion (method)
Section titled “validate_assertion (method)”EvalAssertionPresentationV1.validate_assertion() -> EvalAssertionPresentationV1Release source · Runtime guarantees · Capability guides
EvalCasePresentationV1
Section titled “EvalCasePresentationV1”from cayu.evals import EvalCasePresentationV1Bases: _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 |
|---|---|---|
case_id |
StrictStr |
required |
case_revision |
StrictStr |
required |
status |
PublishedStatus |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
dimensions |
EvalResultOutcomeDimensionsV1 |
required |
trials |
tuple[EvalTrialPresentationV1, ...] |
Field(min_length=1, max_length=EVAL_CORPUS_MAX_TRIALS) |
validate_case_id (method)
Section titled “validate_case_id (method)”EvalCasePresentationV1.validate_case_id(value: str, info) -> strvalidate_case_revision (method)
Section titled “validate_case_revision (method)”EvalCasePresentationV1.validate_case_revision(value: str, info) -> strvalidate_trials_order (method)
Section titled “validate_trials_order (method)”EvalCasePresentationV1.validate_trials_order(value: object, info) -> objectvalidate_case (method)
Section titled “validate_case (method)”EvalCasePresentationV1.validate_case() -> EvalCasePresentationV1Release source · Runtime guarantees · Capability guides
EvalCasePresentationV2
Section titled “EvalCasePresentationV2”from cayu.evals import EvalCasePresentationV2Case presentation with an explicit retained-trial reliability decision.
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 |
|---|---|---|
case_id |
StrictStr |
required |
case_revision |
StrictStr |
required |
status |
PublishedStatus |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
dimensions |
EvalResultOutcomeDimensionsV1 |
required |
reliability |
EvalCaseReliabilityV1 |
required |
trials |
tuple[EvalTrialPresentationV1, ...] |
Field(min_length=1, max_length=EVAL_CORPUS_MAX_TRIALS) |
validate_case_id (method)
Section titled “validate_case_id (method)”EvalCasePresentationV2.validate_case_id(value: str, info) -> strvalidate_case_revision (method)
Section titled “validate_case_revision (method)”EvalCasePresentationV2.validate_case_revision(value: str, info) -> strvalidate_trials_order (method)
Section titled “validate_trials_order (method)”EvalCasePresentationV2.validate_trials_order(value: object, info) -> objectvalidate_case (method)
Section titled “validate_case (method)”EvalCasePresentationV2.validate_case() -> EvalCasePresentationV2Release source · Runtime guarantees · Capability guides
EvalResultOutcomeDimensionsV1
Section titled “EvalResultOutcomeDimensionsV1”from cayu.evals import EvalResultOutcomeDimensionsV1Orthogonal result states that must not be collapsed into one opaque status.
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 |
|---|---|---|
candidate |
EvalCandidateOutcome |
required |
deterministic_assertions |
EvalAssertionDimension |
required |
semantic_quality |
EvalAssertionDimension |
required |
evaluator_health |
EvalEvaluatorHealth |
required |
runtime |
EvalRuntimeOutcome |
required |
evidence |
EvalEvidenceState |
required |
Release source · Runtime guarantees · Capability guides
EvalResultPresentationV1
Section titled “EvalResultPresentationV1”from cayu.evals import EvalResultPresentationV1Canonical explainable projection for one immutable public eval result.
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[1] |
1 |
result_revision |
StrictStr |
required |
evaluation_revision |
StrictStr |
required |
origin |
EvalResultOrigin |
required |
target_key |
StrictStr |
required |
application_release_id |
StrictStr |
required |
app_manifest_fingerprint |
StrictStr |
required |
corpus_revision |
StrictStr |
required |
suite_id |
StrictStr |
required |
suite_revision |
StrictStr |
required |
evidence_policy_revision |
StrictStr |
required |
pricing_profile_fingerprint |
StrictStr | None |
required |
status |
PublishedStatus |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
dimensions |
EvalResultOutcomeDimensionsV1 |
required |
cases |
tuple[EvalCasePresentationV1, ...] |
Field(min_length=1, max_length=EVAL_CORPUS_MAX_CASES) |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalResultPresentationV1.validate_schema_version_type(value: object) -> objectvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalResultPresentationV1.validate_revisions(value: str | None, info) -> str | Nonevalidate_ids (method)
Section titled “validate_ids (method)”EvalResultPresentationV1.validate_ids(value: str, info) -> strvalidate_application_release_id (method)
Section titled “validate_application_release_id (method)”EvalResultPresentationV1.validate_application_release_id(value: str, info) -> strvalidate_app_manifest_fingerprint (method)
Section titled “validate_app_manifest_fingerprint (method)”EvalResultPresentationV1.validate_app_manifest_fingerprint(value: str) -> strvalidate_cases_order (method)
Section titled “validate_cases_order (method)”EvalResultPresentationV1.validate_cases_order(value: object, info) -> objectvalidate_result_size (method)
Section titled “validate_result_size (method)”EvalResultPresentationV1.validate_result_size() -> EvalResultPresentationV1Release source · Runtime guarantees · Capability guides
EvalResultPresentationV2
Section titled “EvalResultPresentationV2”from cayu.evals import EvalResultPresentationV2Canonical V2 presentation with reliability policy and accepted exposure.
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[2] |
EVAL_RESULT_PRESENTATION_SCHEMA_VERSION |
result_revision |
StrictStr |
required |
evaluation_revision |
StrictStr |
required |
origin |
EvalResultOrigin |
required |
target_key |
StrictStr |
required |
application_release_id |
StrictStr |
required |
app_manifest_fingerprint |
StrictStr |
required |
corpus_revision |
StrictStr |
required |
suite_id |
StrictStr |
required |
suite_revision |
StrictStr |
required |
evidence_policy_revision |
StrictStr |
required |
pricing_profile_fingerprint |
StrictStr | None |
required |
trial_policy |
EvalSuiteTrialPolicyV1 |
required |
accepted_exposure |
EvalSuiteRunExposureV1 | None |
None |
status |
PublishedStatus |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
dimensions |
EvalResultOutcomeDimensionsV1 |
required |
cases |
tuple[EvalCasePresentationV2, ...] |
Field(min_length=1, max_length=EVAL_CORPUS_MAX_CASES) |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalResultPresentationV2.validate_schema_version_type(value: object) -> objectvalidate_revisions (method)
Section titled “validate_revisions (method)”EvalResultPresentationV2.validate_revisions(value: str | None, info) -> str | Nonevalidate_ids (method)
Section titled “validate_ids (method)”EvalResultPresentationV2.validate_ids(value: str, info) -> strvalidate_application_release_id (method)
Section titled “validate_application_release_id (method)”EvalResultPresentationV2.validate_application_release_id(value: str, info) -> strvalidate_app_manifest_fingerprint (method)
Section titled “validate_app_manifest_fingerprint (method)”EvalResultPresentationV2.validate_app_manifest_fingerprint(value: str) -> strvalidate_cases_order (method)
Section titled “validate_cases_order (method)”EvalResultPresentationV2.validate_cases_order(value: object, info) -> objectvalidate_result (method)
Section titled “validate_result (method)”EvalResultPresentationV2.validate_result() -> EvalResultPresentationV2Release source · Runtime guarantees · Capability guides
EvalResultReportV1
Section titled “EvalResultReportV1”from cayu.evals import EvalResultReportV1Portable report that binds immutable source evidence to its canonical view.
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[1] |
1 |
record_type |
Literal['cayu.eval-result-report'] |
'cayu.eval-result-report' |
result |
CorpusExecutionResult | CapturedEvaluationResultV1 |
required |
presentation |
EvalResultPresentationV1 |
required |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalResultReportV1.validate_schema_version_type(value: object) -> objectcopy_result (method)
Section titled “copy_result (method)”EvalResultReportV1.copy_result(value: object) -> objectvalidate_report (method)
Section titled “validate_report (method)”EvalResultReportV1.validate_report() -> EvalResultReportV1Release source · Runtime guarantees · Capability guides
EvalResultReportV2
Section titled “EvalResultReportV2”from cayu.evals import EvalResultReportV2Current report binding immutable evidence to reliability presentation V2.
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[2] |
EVAL_RESULT_REPORT_SCHEMA_VERSION |
record_type |
Literal['cayu.eval-result-report'] |
'cayu.eval-result-report' |
result |
CorpusExecutionResult | CapturedEvaluationResultV1 |
required |
presentation |
EvalResultPresentationV2 |
required |
validate_schema_version_type (method)
Section titled “validate_schema_version_type (method)”EvalResultReportV2.validate_schema_version_type(value: object) -> objectcopy_result (method)
Section titled “copy_result (method)”EvalResultReportV2.copy_result(value: object) -> objectvalidate_report (method)
Section titled “validate_report (method)”EvalResultReportV2.validate_report() -> EvalResultReportV2Release source · Runtime guarantees · Capability guides
EvalStructuredJudgeCriterionPresentationV1
Section titled “EvalStructuredJudgeCriterionPresentationV1”from cayu.evals import EvalStructuredJudgeCriterionPresentationV1Bases: _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 |
|---|---|---|
criterion_id |
StrictStr |
required |
weight |
StrictStr |
required |
score |
StrictStr |
required |
weighted_contribution |
StrictStr |
required |
explanation |
StrictStr | None |
required |
explanation_state |
Literal['available', 'redacted', 'unavailable'] |
required |
validate_criterion_id (method)
Section titled “validate_criterion_id (method)”EvalStructuredJudgeCriterionPresentationV1.validate_criterion_id(value: str, info) -> strvalidate_decimal (method)
Section titled “validate_decimal (method)”EvalStructuredJudgeCriterionPresentationV1.validate_decimal(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
EvalStructuredJudgePresentationV1
Section titled “EvalStructuredJudgePresentationV1”from cayu.evals import EvalStructuredJudgePresentationV1Decision-useful safe view of one admitted structured judgment.
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 |
|---|---|---|
detail |
PublishedStructuredModelJudgeDetail |
required |
threshold_passed |
StrictBool | None |
required |
criteria |
tuple[EvalStructuredJudgeCriterionPresentationV1, ...] |
Field(default=(), max_length=EVAL_CORPUS_MAX_JUDGE_CRITERIA) |
copy_detail (method)
Section titled “copy_detail (method)”EvalStructuredJudgePresentationV1.copy_detail(value: object) -> objectvalidate_criteria_order (method)
Section titled “validate_criteria_order (method)”EvalStructuredJudgePresentationV1.validate_criteria_order(value: object, info) -> objectvalidate_criteria_match_detail (method)
Section titled “validate_criteria_match_detail (method)”EvalStructuredJudgePresentationV1.validate_criteria_match_detail(value: tuple[EvalStructuredJudgeCriterionPresentationV1, ...], info) -> tuple[EvalStructuredJudgeCriterionPresentationV1, ...]validate_threshold_passed (method)
Section titled “validate_threshold_passed (method)”EvalStructuredJudgePresentationV1.validate_threshold_passed(value: bool | None, info) -> bool | NoneRelease source · Runtime guarantees · Capability guides
EvalTrialPresentationV1
Section titled “EvalTrialPresentationV1”from cayu.evals import EvalTrialPresentationV1Bases: _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 |
|---|---|---|
execution_failure_category |
Literal['provider_failure', 'environment_failure', 'execution_failure'] | None |
Field(default=None, exclude_if=lambda value: value is None) |
execution_status |
Literal['completed', 'failed'] | None |
Field(default=None, exclude_if=lambda value: value is None) |
trial_number |
StrictInt | None |
Field(default=None, ge=1, le=EVAL_CORPUS_MAX_TRIALS) |
status |
PublishedStatus |
required |
score |
StrictFloat | None |
Field(default=None, ge=0.0, le=1.0) |
diagnostic_code |
EvalTrialDiagnosticCode | None |
None |
dimensions |
EvalResultOutcomeDimensionsV1 |
required |
assertions |
tuple[EvalAssertionPresentationV1, ...] |
Field(min_length=1, max_length=EVAL_CORPUS_MAX_ASSERTIONS_PER_CASE) |
validate_assertions_order (method)
Section titled “validate_assertions_order (method)”EvalTrialPresentationV1.validate_assertions_order(value: object, info) -> objectvalidate_trial (method)
Section titled “validate_trial (method)”EvalTrialPresentationV1.validate_trial() -> EvalTrialPresentationV1Release source · Runtime guarantees · Capability guides
present_eval_result
Section titled “present_eval_result”from cayu.evals import present_eval_resultCompile one immutable public result into its canonical explainable view.
present_eval_result(result: CorpusExecutionResult | CapturedEvaluationResultV1) -> EvalResultPresentationV2