That indicates that you did not pass the required pairing of prior assistant output and the tool response properly. They both must be appended consecutively after the most recent user input with the matching tool IDs.
Here’s a linear code write-up, where code block 3 and 4 show the construction of the assistant tool_call and the tool response to be placed.