jsonSchema

fun jsonSchema(name: String, schema: JsonObject): TextConfig

JSON constrained to schema.

Parameters

name

Name of the schema, reported back to the model

schema

JSON Schema the answer must conform to