Skip to main content
This example shows how to create an agent that uses the ReasoningTools to solve complex problems through step-by-step reasoning. The agent breaks down questions, analyzes intermediate results, and builds structured reasoning paths to arrive at well-justified conclusions.

Code

cookbook/reasoning/tools/reasoning_tools.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