Skip to main content

model_response_expr

Function model_response_expr 

Source
pub fn model_response_expr(
    runner: Symbol,
    model: impl Into<String>,
    content: Vec<Expr>,
    stop_reason: Symbol,
) -> Expr
Expand description

Builds a model-response transcript map from a runner, model name, content parts, and stop_reason.

The result carries a true model-response marker and validates under validate_chat_transcript.