List messages API does not return code interpreter's output

I am currently utilizing the Python library to interface with the List Messages API, and I have encountered an issue where the output from the code interpreter is not included in the API responses. The responses only seem to contain the assistant’s and user’s messages.

Could you please provide guidance on how to include the code interpreter’s output in the API response? Is there an additional parameter or scope that needs to be specified when making the request?