›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.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register