Contents

init(id:segments:options:responseFormat:)

Creates a prompt.

Declaration

init(id: String = UUID().uuidString, segments: [Transcript.Segment], options: GenerationOptions = GenerationOptions(), responseFormat: Transcript.ResponseFormat? = nil)

Parameters

  • id:

    A Generable type to use as the response format.

  • 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.