---
type: email
from: ashish-auditorsdesk <notifications@github.com>
subject: [openai/openai-agents-python] Reason model issue while store is True

 (Issue #1611)
received: 2026-03-06 07:16:56
date_header: Thu, 28 Aug 2025 23:21:59 -0700
priority: normal
status: awaiting_approval
uid: 28988
---

## Email Content

**From:** ashish-auditorsdesk <notifications@github.com>
**Subject:** [openai/openai-agents-python] Reason model issue while store is True

 (Issue #1611)
**Date:** Thu, 28 Aug 2025 23:21:59 -0700

### Body (preview)

ashish-auditorsdesk created an issue (openai/openai-agents-python#1611)



A BadRequestError (400) occurs because the request includes a reasoning item (rs_68b14140...) without its required subsequent item. This indicates the input structure is incomplete or incorrectly formatted from the backend in Responses API.





### Debug information

- Python 3.12.3

- OpenAI 1.99.9



### Repro steps

Use this code with any file with any prompt:



`response = client.responses.create(

  model="gpt-5",

  input=[

    {

      "role": "user",

      "content": [

        {

          "type": "input_text",

          "text": "Give me items which are in books but not in 2B"

        }

      ]

    }

  ],

  text={

    "format": {

      "type": "text"

    },

    "verbosity": "medium"

  },

  reasoning={

    "effort": "medium"

  },

  tools=[

    {

      "type": "code_interpreter",

      "container": {

        "type": "auto",

        "file_ids": [

          "file-4vLY8h****",

          "file-3xAy2*****"

        ]

      }

    }

  ],

  store=True,

  include=[

    "code_interpreter_call.outputs",

    "reasoning.encrypted_content",

    "web_search_call.action.sources"

  ]

)`





- Store the send the response_id as previous_response_id in next call, `input_text` it can be anything



`response = client.responses.create(

                model="gpt-5",

                input=[

                    {

                        "role": "user",

                        "content": [{"type": "input_text", "text": "Not ab,e to download the file you have shared"}],

                    }

                ],

                previous_response_id="resp_68b1****"



            )`



- This will trigger this error





### Expected behavior

It should give explanation 





-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1611

You are receiving this because you are subscribed to this thread.



Message ID:

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
