The Short-term Memory API
2.3 · Lesson (Optional)

The Short-term Memory API

In the last lesson, you gave your agent memory with two calls: add_message to store each turn, and get_context to read back what it remembers, inside the dynamic prompt.

Both use the short-term layer — add_message writes the conversation into it, and get_context reads it back out.