One Logo Pool Ball
FoundationModels · IOS API REFERENCE

Transcript.ResponseFormat

struct · iOS 26.0+ · SDK 27.1

struct ResponseFormat

A response format that the model must conform its output to.

Members (4)

get · iOS 26.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 27.0+

kind

TypeScript
get kind(): Transcript_ResponseFormat_Kind
Swift declaration
let kind: Transcript.ResponseFormat.Kind
get · iOS 26.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }

A name associated with the response format.

init · iOS 26.0+

init

TypeScript
static init(schema: GenerationSchema): Transcript_ResponseFormat
Swift declaration
init(schema: GenerationSchema)

Creates a response format with a schema. - Parameters: - schema: A schema to use as the response format.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Transcript.ResponseFormat.init(type:)

Passing a Swift type itself is not supported.

All FoundationModels types →