Skip to main content

model_error_expr

Function model_error_expr 

Source
pub fn model_error_expr(
    runner: Symbol,
    model: impl Into<String>,
    message: impl Into<String>,
) -> Expr
Expand description

Builds a model-response transcript carrying an error: a single text content part holding message, a stop-reason of error, and text/shape-ok fields recording the failure.