Native

data class Native<T>(val structure: StructuredData<T, *>) : StructuredOutput<T> (source)

Leverages a model's built-in structured output capabilities.

Uses StructuredData.schema to define the expected response format through the model's native structured output functionality.

Note: StructuredData.examples are not used with this mode, only the schema is sent via parameters.

Constructors

Link copied to clipboard
constructor(structure: StructuredData<T, *>)

Properties

Link copied to clipboard
open override val structure: StructuredData<T, *>

The structure definition to be used in output generation.