3 ms·
> Because the format can't also be strictly defined via structured output, and you have to write it in plain words. That's not how structured output works. Che
by viraptor 8mo ago
> Because the format can't also be strictly defined via structured output, and you have to write it in plain words.
That's not how structured output works. Check the docs https://platform.claude.com/docs/en/build-with-claude/structured-outputs https://platform.claude.com/docs/en/build-with-claude/struct...
The schema is enforced at the inference time. The non-confirming tokens are removed from the possible responses.
- XCSme 8mo agoI use structured format in many of live AI systems, maybe my point was not clear. For some tasks it's impossible to define a JSON schema. Let's say you want the message to end with "Thank you", in any language. Should I add in my schema 200 possible endings? What about all their variations and declinations in various languages? Sometimes you have to define in natural language how you want the output to look like.