pub fn parse_envelope_bytes(
bytes: &[u8],
limits: CompositionLimits,
) -> Result<ModelCompositionEnvelope, CompositionError>Expand description
Parse raw provider output with a hard byte limit and a non-allocating JSON scanner before typed deserialization. Deep/large hostile input is rejected before serde can recursively construct a tree.