- “Increment the counter 3 times and tell me the final count”
- “What’s our current count? Add 2 more to it”
- “Let’s increment the counter 5 times, but tell me each step”
- “Add 4 to our count and remind me where we started”
- “Increase the counter twice and summarize our journey”
1
Create a Python file
Create a file
agent_state.py2
Add code to file
agent_state.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Set OpenAI Key
6
Run the agent