Skip to main content

model_card_expr

Function model_card_expr 

Source
pub fn model_card_expr(
    runner: Symbol,
    model: impl Into<String>,
    provider: Symbol,
    locality: Symbol,
) -> Expr
Expand description

Builds a model-card transcript map describing a model’s identity and capabilities (provider, locality, modalities, and stream/tool/JSON/shape support), with conservative defaults the caller can override.

§Examples

use sim_codec_chat::{model_card_expr, validate_chat_transcript};
use sim_kernel::Symbol;

let card = model_card_expr(
    Symbol::new("local-reasoner"),
    "qwen2.5-coder:14b",
    Symbol::new("ollama"),
    Symbol::new("local"),
);
assert!(validate_chat_transcript(&card).is_ok());