reasoning=True), or to use an appropriate reasoning model with reasoning_model.
1
Create a Python file
2
Add the following code to your Python file
non-reasoning-model-cot.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Export your OpenAI API key
6
Run Agent