openai.internal.structured_output
(internal) The structured output for `output_type`. A type strict mode cannot hold is rejected here, before a request is sent, as `ai.errors.InvalidRequest`: one with no JSON form (`baml.json.schema` says why), one that can hold media, and one with a map in it.
Reference version
Signature
function openai.internal.structured_output(
output_type: reflect.Type,
provider: string
) -> openai.internal.StructuredOutput throws ai.errors.InvalidRequest
(internal) The structured output for output_type. A type strict mode cannot hold
is rejected here, before a request is sent, as ai.errors.InvalidRequest:
one with no JSON form (baml.json.schema says why), one that can hold
media, and one with a map in it.
Source:<builtin>/openai/ns_internal/structured.bamlbytes 3209–5164