Within one support conversation, an agent keeps forgetting what the user said two turns ago. What should hold that history?
- Exam domain
- Developing custom agents~33% of the exam
- Difficulty
- Easy
- In this mock
- 15 questions on this domainPractise this domain
Why the exam asks this
Designing and building agentic workflows in code.
Objective in the exam guide: Configuring sessions and memory (e.g., Agent Platform Memory Bank and managed sessions).
Within-conversation state is what managed sessions are for.
Why B is the answer
A managed session for the conversation
Sessions maintain the history of interactions between a user and an agent over a single conversation.
Remember: Within a conversation, use sessions.
How it works
A session holds the events and state of one conversation.
Agent Platform Sessions manage that history so each turn sees the earlier ones.
Clues in the question
The words that point to the answer, and what each one tells you.
- Within one support conversation
- A session.
In detail
- Use sessions for turn history and state within a conversation.
- Session state can also hold values such as the current step.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The model's training dataWrong
Training data is fixed and not per user.
B. A managed session for the conversationRight
Within a conversation, use sessions.
C. Memory Bank, which is designed for long-term factsWrongMost tempting
Memory Bank is for facts that outlive a conversation.
Why it tempts: Memory Bank is for facts across sessions, not the running history of one.
D. A Cloud Storage bucket written after the chat endsWrong
Writing after the chat ends does not help during it.
Use case
An illustrative scenario, not a real incident.
Illustrative: a user gives an order number early on. The session keeps it, so later turns do not ask again.
See it in different ways
mindmap
root(("Agent memory"))
n1["Sessions"]
n2["One conversation"]
n3["Turn history and state"]
n4["Memory Bank"]
n5["Across sessions"]
n6["Extracted facts about a user"]How to read this chart
- The centre is "Agent memory".
- "Sessions" covers "One conversation", "Turn history and state".
- "Memory Bank" covers "Across sessions", "Extracted facts about a user".
flowchart TD
Q{"How long must it be remembered?"}
Q -->|"This conversation"| A0["Session"]
Q -->|"Across conversations"| A1["Memory Bank"]How to read this chart
- At "How long must it be remembered?": if "This conversation", go to "Session"; if "Across conversations", go to "Memory Bank".