pub fn supports_structured_output(model_id: &str) -> boolExpand description
Check if a model supports structured output (JSON schema enforcement).
Returns true if the model supports full structured output with JSON schema validation. This allows the caller to transparently use structured output when available, falling back to text parsing when not.
§Example
ⓘ
use llmkit::models::supports_structured_output;
if supports_structured_output("gpt-4o") {
// Use structured output with JSON schema
request = request.with_json_schema("result", schema);
} else {
// Fall back to text-based parsing
}