Skip to main content
This is a basic agent state management example which shows how to manage and update agent state by maintaining a dynamic shopping list.

Code

cookbook/agent_concepts/state/session_state.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