responseFormat property

JsonSchemaResponseFormat? responseFormat
final

What every reply must be. Non-null only after core accepted the format (InferenceModel.refusalFor returned null). The engine must enforce the schema during generation for every reply from this session. Core validates the completed reply as a guard; that validation is not a substitute for constrained generation, and a non-conforming reply is an engine bug.

Implementation

final JsonSchemaResponseFormat? responseFormat;