Skip to content

Zero Data Retention Organizations are incompatible with the Responses API/OAI State Management/Tool Calls #605

Description

@lattwood

Describe the bug

When the agents SDK is asked to call a tool via MCP by the model, it expects conversation state to be handled by OpenAI, not locally, and you get Item with id 'rs_REDACTED' not found. Items are not persisted for Zero Data Retention organizations. Remove this item from your input and try again..

Gotta use the Responses API for reasoning summaries, otherwise I'd just switch back to chat completions.

Alternatively- "docs are unclear how to achieve this and I couldn't find any examples".

Debug information

  • Agents SDK version: 0.0.13
  • Python 3.12.6

Repro steps

  • ZDR
  • reasoning model
  • Responses API
  • model decides to call a tool
  • agents sdk fails to call openai api with tool call results.

Expected behavior

OpenAI Agents SDK supports using the Responses API with ZDR organizations and tool calling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions