reasoning=True makes the agent reason through the task before returning its response.
1
Add the following code to your Python file
basic_cot.py
2
Set up your virtual environment
3
Install dependencies
4
Export your OpenAI API key
5
Run Agent
Equip agents with chain-of-thought reasoning capabilities.
reasoning=True makes the agent reason through the task before returning its response.
Add the following code to your Python file
Set up your virtual environment
Install dependencies
Export your OpenAI API key
Run Agent