Skip to main content
This example demonstrates how to access and print the reasoning_content when using either reasoning=True or setting a specific reasoning_model.

Code

cookbook/reasoning/agents/capture_reasoning_content_default_COT.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Set your API key

3

Install libraries

4

Run Example