I am calling a model with a tool defined, and the tool call comes back as a JSON string inside a string, so my parser gets a quoted string rather than an object.
Instead of:
{"query": "how many stars"}
I get:
"{\"query\": \"how many stars\"}"
The model is clearly producing the right object, but wrapped. What is the right way to handle this — parse the string, or is something in my request causing it?