Omitting tool call id entirely

By accident I discovered that if you leave the tool_call_id field empty for both the assistant’s tool call messages and the tool call response the API produces no error. In cases where there is a single tool call and response in a pair of messages a tool_call_id isn’t needed to distinguish tool calls. But I was wondering if there were any issues with omitting tool_call_id that I might not have picked up on?

1 Like