Creates a Part object from the outcome and output of a CodeExecutionResult object.
Part
outcome
output
CodeExecutionResult
Creates a
Partobject from theoutcomeandoutputof aCodeExecutionResultobject.