Skip to main content

Module records

Module records 

Source
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 ModelRecord and 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. merged runs saved parameter values through ParamSpec::normalized so 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.