Creates a Part object from the outcome and output of a CodeExecutionResult object.
Part
outcome
output
CodeExecutionResult
Creates a
Part
object from theoutcome
andoutput
of aCodeExecutionResult
object.