O1 tool calling sometimes fails to populate the data in "tool_calls" response attribute

I’ve noticed that sometimes the o1 model misses out on populating the “tool_call” attribute in the response, instead it just dumps the function name and arguments in the message content itself. Has anyone else faced a similar issue? Curious to know how you mitigate this.