pub struct DiscoveredModel {Show 13 fields
pub name: String,
pub source: ModelSource,
pub modality_hint: Option<Modality>,
pub capabilities_hint: Vec<Capability>,
pub execution_hint: ExecutionMode,
pub footprint_bytes: i64,
pub primary_weight_path: Option<String>,
pub diagnostics: Vec<String>,
pub context_length_hint: Option<i64>,
pub has_chat_template_hint: Option<bool>,
pub tool_capable_hint: Option<bool>,
pub stop_tokens_hint: Option<Vec<String>>,
pub downloading: bool,
}Expand description
A model a scanner found on disk, as hints (not yet a resolved record). The
*_hint fields are best-effort; identification refines or overrides them.
Fields§
§name: StringThe display name (e.g. llama3.2:latest).
source: ModelSourceWhere the weights live and what kind of store they came from.
modality_hint: Option<Modality>The guessed modality, if the store hinted one.
capabilities_hint: Vec<Capability>The guessed capabilities.
execution_hint: ExecutionModeHow the model executes (streaming vs one-shot job).
footprint_bytes: i64The on-disk footprint in bytes.
primary_weight_path: Option<String>The primary weight file, if identified.
diagnostics: Vec<String>Free-text notes about this specific model.
context_length_hint: Option<i64>A context-window hint, if the store recorded one.
has_chat_template_hint: Option<bool>Whether the store recorded a chat template.
tool_capable_hint: Option<bool>Whether the model’s chat template supports tool calling, when the store
let it be read. None means undetermined.
stop_tokens_hint: Option<Vec<String>>Stop tokens the store recorded.
downloading: boolWhether the model is still downloading (weights incomplete).
Implementations§
Source§impl DiscoveredModel
impl DiscoveredModel
Sourcepub fn new(name: impl Into<String>, source: ModelSource) -> Self
pub fn new(name: impl Into<String>, source: ModelSource) -> Self
A discovered model with just a name and source; hints default to empty.
Trait Implementations§
Source§impl Clone for DiscoveredModel
impl Clone for DiscoveredModel
Source§fn clone(&self) -> DiscoveredModel
fn clone(&self) -> DiscoveredModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more