Maintaining state across agent runs
This exercise is part of the course
Building Agentic Workflows with LlamaIndex
Exercise instructions
Teach your agent to remember information between messages by storing values in the workflow context.
- Configure a
Contextto maintain state within your workflow. - Check the memory for the name by retrieving the
state.
Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise