//! Script result envelope: host status and model text never overwrite tool data.
use ToolOutput;
use ;
/// Every call returns `{is_error, content, data}`. `data` is null when the
/// tool returned text only or its structured result was too large to retain.
/// Successful data follows the tool's `returns` schema; failed server
/// payloads need not.
pub
/// Envelope for a batched call that failed before producing output.
pub