JSON_SCHEMA
fun JSON_SCHEMA(name: String, description: String? = null, schema: JsonObject, strict: Boolean? = null): AssistantResponseFormat
Creates an instance of AssistantResponseFormat
with type json_schema
.
Return
An instance of AssistantResponseFormat
with the specified JSON schema.
Parameters
name
The name of the schema.
description
The description of the schema.
schema
The actual JSON schema.
strict
Indicates if the schema is strict.