Open
Description
Describe the bug
The Agent SDK calls the responses API and receives two messages afterwards. It seems to be connected to tool calls. It happens most of the time when a tool call result has occurred, but not always.
Debug information
- Agents SDK version: (e.g.
v0.1.0
) - Python version (e.g. Python 3.10)
Repro steps
I cannot safely reproduce this issue. Occasionally, when the Agent SDK performs a tool call, I get 2 responses in the output from the next responses API call. These responses are very similar or almost identical. I don't understand why there are 2 messages. Both messages have different IDs but nearly identical content.
Expected behavior
Only one message should be sent from the responses API, not two in one turn