A support agent forgets what the user said two turns ago. Which Agents SDK feature addresses this?
- Exam domain
- OpenAI Responses API and Agents SDK
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Sessions
Sessions are the SDK's memory layer: they keep working context across turns of an agent loop.
Remember: Memory across turns: sessions.
In detail
- Sessions keep context across turns.
- Tracing only records what happened.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. TracingWrong
Tracing helps you see the problem, not fix it.
B. HandoffsWrong
Handoffs move work between agents.
C. SessionsRight
Memory across turns: sessions.
D. GuardrailsWrong
Guardrails check input and output.
Use case
An illustrative scenario, not a real incident.
Illustrative: a booking agent remembers the dates from the first message when the user later asks for a cheaper room.
See it in different ways
stateDiagram-v2 state "Turn 1" as s0 state "Turn 2" as s1 state "Turn 3" as s2 [*] --> s0 s0 --> s1: history saved s1 --> s2: history loaded s2 --> [*]
How to read this chart
- It starts at "Turn 1".
- From "Turn 1", "history saved" moves it to "Turn 2".
- From "Turn 2", "history loaded" moves it to "Turn 3".
- It ends at "Turn 3".
mindmap
root(("Agents SDK"))
n1["Agents"]
n2["Instructions and tools"]
n3["Handoffs"]
n4["Delegate to another agent"]
n5["Guardrails"]
n6["Input and safety checks"]
n7["Sessions"]
n8["Memory across turns"]How to read this chart
- The centre is "Agents SDK".
- "Agents" covers "Instructions and tools".
- "Handoffs" covers "Delegate to another agent".
- "Guardrails" covers "Input and safety checks".
- "Sessions" covers "Memory across turns".