Skip to main content
Use store=False to disable Responses application-state storage while keeping multi-turn context in InMemoryDb.
The source labels this agent ZDR compliant. store=False disables Responses application-state storage; default abuse-monitoring retention can still apply. Zero Data Retention requires prior OpenAI approval and organization or project configuration. See OpenAI data controls.
zdr_reasoning_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as zdr_reasoning_agent.py, then run:
Full source: cookbook/90_models/openai/responses/zdr_reasoning_agent.py