---
type: email
from: weiguang li <notifications@github.com>
subject: [openai/openai-agents-python] feat: add remove_all_reasoning handoff

 filter (PR #2602)
date: Thu, 05 Mar 2026 06:04:58 -0800
received: 2026-03-05 22:17:46
status: awaiting_approval
---

## Email Content
### Summary



Add a `remove_all_reasoning` handoff input filter in `agents.extensions.handoff_filters` that strips reasoning items from input history, pre-handoff items, and new items during handoffs.



When handing off from a reasoning model (e.g. o4-mini) to a non-reasoning model (e.g. gpt-4.1), reasoning items in the input cause a 400 error:



&gt; Reasoning input items can only be provided to a reasoning or computer use model.



This filter can be used as an `input_filter` on `handoff()` to prevent this error:



```python

from agents import handoff

from agents.extensions.handoff_filters import remove_all_reasoning



handoff(target_agent, input_filter=remove_all_reasoning)

```



The implementation follows the same pattern as the existing `remove_all_tools` filter, filtering re
