6 ms·
Could be json or non json. Instead of using tools in API, you ask model to share structured output in text. You parse the string to get the JSON. Gives much mor
by pcwelder 3mo ago
Could be json or non json. Instead of using tools in API, you ask model to share structured output in text. You parse the string to get the JSON. Gives much more control over things you can do.
For example model shares
<tool_call name="getWeather">
<param name="city">London</param>
</tool_call>