Skip to main content
In AGENTIC mode, the agent receives tools to explicitly manage learning. It decides when to save profiles and memories based on conversation context.
agentic_learn.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as agentic_learn.py, then run:
Full source: cookbook/08_learning/00_quickstart/02_agentic_learn.py