Skip to main content
Example showing how to access and print the reasoning_content when using a Reasoning Agent (with reasoning=True) or setting a specific reasoning_model.
1

Add the following code to your Python file

capture_reasoning_content_default_cot.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Agent