pub struct ProductModelSourceIdentity {
pub schema_version: u32,
pub requested_model: String,
pub resolved_model: String,
pub original_sources: OriginalModelSources,
pub resolved_sources: ResolvedModelSources,
pub semantic_config: ProductModelArtifactBinding,
pub tokenizer: ProductModelArtifactBinding,
pub template: ProductModelArtifactBinding,
pub weight_config: Option<ProductModelArtifactBinding>,
}Expand description
Immutable product-facing identity for the exact model sources selected by resolution and family preparation.
Keeping the raw request separate from the stable resolved model id avoids
exposing machine-local cache paths as public model names. The role-specific
sources and selected artifacts are the same inputs consumed by the typed
model family and ResolvedModelPlan.
Fields§
§schema_version: u32§requested_model: String§resolved_model: String§original_sources: OriginalModelSources§resolved_sources: ResolvedModelSources§semantic_config: ProductModelArtifactBinding§tokenizer: ProductModelArtifactBinding§template: ProductModelArtifactBinding§weight_config: Option<ProductModelArtifactBinding>Implementations§
Source§impl ProductModelSourceIdentity
impl ProductModelSourceIdentity
pub fn new( requested_model: impl Into<String>, resolved_model: impl Into<String>, original_sources: OriginalModelSources, resolved_sources: ResolvedModelSources, semantic_config: ProductModelArtifactBinding, tokenizer: ProductModelArtifactBinding, template: ProductModelArtifactBinding, weight_config: Option<ProductModelArtifactBinding>, ) -> Result<Self, VNextError>
pub fn validate(&self) -> Result<(), VNextError>
Trait Implementations§
Source§impl Clone for ProductModelSourceIdentity
impl Clone for ProductModelSourceIdentity
Source§fn clone(&self) -> ProductModelSourceIdentity
fn clone(&self) -> ProductModelSourceIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductModelSourceIdentity
impl Debug for ProductModelSourceIdentity
Source§impl<'de> Deserialize<'de> for ProductModelSourceIdentity
impl<'de> Deserialize<'de> for ProductModelSourceIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProductModelSourceIdentity
impl StructuralPartialEq for ProductModelSourceIdentity
Auto Trait Implementations§
impl Freeze for ProductModelSourceIdentity
impl RefUnwindSafe for ProductModelSourceIdentity
impl Send for ProductModelSourceIdentity
impl Sync for ProductModelSourceIdentity
impl Unpin for ProductModelSourceIdentity
impl UnsafeUnpin for ProductModelSourceIdentity
impl UnwindSafe for ProductModelSourceIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more