TextFormat

data class TextFormat(val type: String, val name: String? = null, val schema: JsonSchema? = null, val strict: Boolean? = null) : Record(source)

Represents the format configuration for text output.

Author

Konstantin Pavlov

Constructors

Link copied to clipboard
constructor(type: String, name: String? = null, schema: JsonSchema? = null, strict: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "name")
val name: String?

Optional name for the schema when type is "json_schema".

Link copied to clipboard
@SerialName(value = "schema")
val schema: JsonSchema?

Optional JSON schema definition when type is "json_schema".

Link copied to clipboard
@SerialName(value = "strict")
val strict: Boolean?

Optional strict mode flag for schema validation.

Link copied to clipboard
@SerialName(value = "type")
val type: String

The type of format (e.g., "text", "json_schema").