pub fn control_response(
request_id: &str,
response: Value,
) -> Result<String, Error>Expand description
Build a control response JSON line to write to stdin (e.g. tool approval). Returns an error if serialization fails (should be extremely rare).