build_code_execution_result_part

Function build_code_execution_result_part 

Source
pub fn build_code_execution_result_part(stdout: &str, stderr: &str) -> Part
Expand description

Build a CodeExecutionResult Part with OK or FAILED outcome.

If stderr is empty the outcome is “OK” and the output is stdout. Otherwise the outcome is “FAILED” and the output combines both streams.