-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca86f34
commit cef9e2d
Showing
4 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Agentic Reasoning | ||
|
||
> WARNING: Reasoning is an experimental feature and may not work as expected. | ||
### Create and activate a virtual environment | ||
|
||
```shell | ||
python3 -m venv ~/.venvs/aienv | ||
source ~/.venvs/aienv/bin/activate | ||
``` | ||
|
||
### Install libraries | ||
|
||
```shell | ||
pip install -U openai phidata | ||
``` | ||
|
||
### Export your `OPENAI_API_KEY` | ||
|
||
```shell | ||
export OPENAI_API_KEY=*** | ||
``` | ||
|
||
### Run a reasoning agent that DOES NOT WORK | ||
|
||
```shell | ||
python cookbook/reasoning/strawberry.py | ||
``` | ||
|
||
### Run other examples of reasoning agents | ||
|
||
```shell | ||
python cookbook/reasoning/logical_puzzle.py | ||
``` | ||
|
||
```shell | ||
python cookbook/reasoning/ethical_dilemma.py | ||
``` | ||
|
||
### Run reasoning agent with tools | ||
|
||
```shell | ||
python cookbook/reasoning/finance_agent.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters