Expand description
The kernel’s data model: model records and the value types they compose.
Re-exports§
pub use byte_format::format_bytes;pub use identifiers::BidPreference;pub use identifiers::Capability;pub use identifiers::ExecutionMode;pub use identifiers::Modality;pub use identifiers::ModelState;pub use identifiers::RunTier;pub use identifiers::RuntimeId;pub use identifiers::SourceKind;pub use json_value::JsonValue;pub use model_record::ModelRecord;pub use model_record::ModelSource;pub use model_record::ParamSpec;pub use model_record::ParamType;pub use model_record::Resolution;pub use model_record::RuntimeRef;pub use model_record::stable_id;pub use text_budget::Clip;pub use text_budget::clip;
Modules§
- byte_
format - Human-readable byte-size formatting.
- identifiers
- The vocabulary types that identify a model and its runtime.
- json_
value - A dynamic JSON value used for model parameters, tool arguments, and payloads.
- model_
record - The central data model: a
ModelRecordand the value types it composes. - param_
form - Parameter normalization: coercing a wire value to a
ParamSpec’s type and clamping numbers to its declared range.mergedruns saved parameter values throughParamSpec::normalizedso an out-of-range or wrong-typed value can never reach a runtime. - text_
budget - Clipping text to a byte budget without splitting a UTF-8 character.