StructuredOutputRequest

data class StructuredOutputRequest constructor(val name: String, val schema: String, val description: String? = null, val strict: Boolean = true)

Provider-neutral request for native structured output.

The schema is raw JSON Schema. It is intentionally separate from prompt format instructions so provider adapters can translate it into their own payload shape.

Parameters

strict

whether providers that support strict schema enforcement should request it. Providers without such a setting may ignore this.

Constructors

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

Properties

Link copied to clipboard
val description: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val strict: Boolean = true