Skip to main content

Crate agent_evaluate_v2_contract

Crate agent_evaluate_v2_contract 

Source
Expand description

HTTP contract for the Agent Evaluate domain application.

Evaluate owns exactly one immutable registration unit — the Snapshot — which carries its cases, each case’s evaluators and the execution spec. Everything else it stores is a reference (trace, sandbox, model) or a judgement (metric, verdict, report).

§Layering

agent-evaluate-contract   paths + DTOs        (this crate)
agent-evaluate-domain     pure domain logic
agent-evaluate-adapter-*  SQL / Infra SDK
agent-evaluate-server     router + auth + bin

Re-exports§

pub use admin::*;
pub use analysis::*;
pub use binding::*;
pub use catalog::*;
pub use driver::*;
pub use evaluator::*;
pub use execution::*;
pub use report::*;
pub use run::*;

Modules§

admin
Administration surface.
analysis
Asynchronous analysis: model-graded judges, plugins and re-analysis.
binding
Bindings: which snapshots an agent or runtime is expected to pass.
catalog
The snapshot catalogue: the one immutable registration unit.
driver
Driver protocol shared by every executor: the in-sandbox runner, a cloud runtime and the CLI’s local driver all speak exactly this.
evaluator
Evaluators: the domain rules attached to a case.
execution
How a case is executed: which sandbox it gets and where the agent runs.
report
Verdicts, reports and the release gate.
run
Runs and case runs: the durable side of an evaluation.

Structs§

ApiError
Error body shared by every non-2xx response.
EvalScope
Tenant/project scope derived from a verified identity. Callers never get to assert their own scope in a request body.

Constants§

ADMIN_BINDINGS_PATH
ADMIN_JUDGE_ALLOWLIST_PATH
ADMIN_OVERVIEW_PATH
ADMIN_RUNS_PATH
ADMIN_SNAPSHOTS_DEPRECATE_PATH
ADMIN_SNAPSHOTS_EXPORT_PATH
ADMIN_SNAPSHOTS_GET_PATH
ADMIN_SNAPSHOTS_IMPORT_PATH
ADMIN_SNAPSHOTS_LIST_PATH
ADMIN_SNAPSHOTS_PATH
ADMIN_SNAPSHOTS_PUBLISH_PATH
ANALYSIS_CLAIM_PATH
ANALYSIS_RERUN_PATH
ANALYSIS_SUBMIT_PATH
AUDIENCE
BINDINGS_DELETE_PATH
BINDINGS_GET_PATH
BINDINGS_LIST_PATH
BINDINGS_PATH
CANCEL_RUN_PATH
DEFAULT_EPHEMERAL_TTL_MS
Ephemeral snapshot policy (design §15.1). Temporary assets must never enter a long-lived dependency graph, so they are also barred from bindings and includes.
DEFAULT_PAGE_SIZE
DEFAULT_PORT
DRIVER_CLAIM_PATH
DRIVER_RENEW_PATH
DRIVER_SUBMIT_PATH
HEALTH_PATH
MAX_CASES_PER_SNAPSHOT
MAX_EPHEMERAL_CASES_PER_PROJECT
MAX_EPHEMERAL_SNAPSHOTS_PER_PROJECT
MAX_EPHEMERAL_TTL_MS
MAX_EVALUATORS_PER_CASE
MAX_FIXTURES_PER_CASE
MAX_FIXTURE_BYTES
MAX_INCLUDES_PER_SNAPSHOT
MAX_JUDGES_PER_EVALUATOR
MAX_PAGE_SIZE
MAX_RESOURCE_ID_CHARS
Identifier length cap shared by every product identifier. Matches the indexable prefix of a VARCHAR(191) column under utf8mb4.
MAX_SNAPSHOTS_PER_BINDING
MAX_TURNS_PER_CASE
METRIC_CANDIDATES_PATH
METRIC_HEALTH_PATH
OPERATIONS_PATH
READY_PATH
REPORT_COMPARE_PATH
REPORT_GET_PATH
REVIEWS_CLAIM_PATH
REVIEWS_COMPLETE_PATH
REVIEWS_PATH
RUNS_PATH
RUN_CASES_PATH
SERVICE_NAME
SNAPSHOTS_GET_PATH
SNAPSHOTS_LIST_PATH
SNAPSHOTS_PATH