GitHub

StructuredOutputCodec

API reference for StructuredOutputCodec.

What a provider's structured-output transformer gives: the codec decoding the model's output into T and the JSON Schema to send. The codec stays the authority: the JSON Schema may accept more than it.

Attributes

AttributeTypeDescription
codecCodec[T_co, object, RD_co, RE_co]
json_schemaJsonSchema