Contents

init(id:metadata:segments:options:responseFormat:contextOptions:)

Creates a prompt.

Declaration

init(id: String = UUID().uuidString, metadata: [String : any Codable & Sendable & Equatable] = [:], segments: [Transcript.Segment], options: GenerationOptions = GenerationOptions(), responseFormat: Transcript.ResponseFormat? = nil, contextOptions: ContextOptions = ContextOptions())

Parameters

  • id:

    A Generable type to use as the response format.

  • metadata:

    Metadata provided as part of this prompt.

  • segments:

    An array of segments that make up the prompt.

  • options:

    Options that control how tokens are sampled from the distribution the model produces.

  • responseFormat:

    A response format that describes the output structure.

  • contextOptions:

    Settings that configure how the model is prompted

See Also

Creating a prompt