Skip to main content

control_response

Function control_response 

Source
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).