I’m using tool calls as well as the JSON output format, and sometimes I get the tools calls response as a JSON inside the content.
Here is an example for what I mean:
[
{
"message": {
"role": "assistant",
"content": {
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "call_83MaAXFEu1LWTWeTqCLfV7PQ",
"type": "function",
"function": {
"name": "google-search",
"arguments": { "query": "site:volteo.com OpenShift" }
}
}
]
}
},
"finish_reason": "stop",
"index": 0
}
]
It should be message > tool_calls; not message > content > tool_calls.