Comment by carpo
19 hours ago
Cheers, I'll give it a try. How are those models at returning structured results? When I was writing the prompts for the analysis step and testing with older Claude models, it would have trouble structuring the XML consistently. Sonnet 4.6 handles it really well.
Use function calling/tool use, not XML output. The models are all trained for that now.
Ie, instead of telling it to generate
give it a function
That is actually a JSON schema, and the models do great at it. Here's the claude docs, but they are all similar: https://platform.claude.com/docs/en/agents-and-tools/tool-us...
Very interesting. Thank you!
[flagged]