1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! `openkind-core`: Zero-dependency, Jev-compatible wire protocol types and validation.
//!
//! # Overview
//! `openkind-core` is the foundational crate in the `openkind` workspace. It acts as the
//! canonical, single source of truth for the wire schema spoken by both HTTP/REST
//! (`/v1/systemone` and `/v1/system_one`) and gRPC (`openkind.SystemOne/Evaluate`) transports.
//!
//! Pinned to the TypeSafe Jev API contract documented at <https://docs.typesafe.ai/api> and
//! the Python SDK specification at <https://docs.typesafe.ai/sdk/python/api>.
//!
//! # Architectural Invariants
//! - **Strict Dependency Layering**: `openkind-core` depends on no other workspace crates (`openkind-engine`,
//! `openkind-api`, etc.). All higher layers depend on `openkind-core`.
//! - **64-bit IEEE 754 Precision**: All floating-point fields (`probabilities`, `score`, `noul`, `confidence`)
//! use `f64` to prevent wire representation regressions (such as `0.92f32` round-tripping to `0.9200000166893005`).
//! - **Zero Confidence on Noul**: Per the Jev specification, boolean probability (`Noul`) answers contain only
//! `noul` and never include a `confidence` field.
//! - **Polymorphic State & Instructions**: `state` and question `instructions` allow plain text strings, JSON
//! objects, or JSON arrays.
//!
//! See `docs/ARCHITECTURE.md` and `crates/openkind-core/schemas/` for generated JSON Schema definitions.
/// Wire answer types for Noul, Choice, and Score evaluations.
/// Request and response schema validation errors and checks.
/// Model metadata structures for `/v1/models` discovery.
/// Question descriptors and rubric criteria representations.
/// System evaluation request envelope and versioning constants.
/// System evaluation response payload and usage metrics.
/// Flexible evaluation state input (text, structured object, or array).
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use State;
/// Current API version constant. Bumped when the wire schema breaks compat.
pub const