Contents

init(id:transcript:enabledTools:schema:generationOptions:contextOptions:metadata:)

Creates a new generation request.

Declaration

init(id: UUID, transcript: Transcript, enabledTools: [Transcript.ToolDefinition], schema: GenerationSchema? = nil, generationOptions: GenerationOptions, contextOptions: ContextOptions, metadata: [String : any Sendable & Codable & Equatable])

Parameters

  • id:

    The request identifier..

  • transcript:

    The transcript to generate the next entry for.

  • enabledTools:

    The subset tool definitions that the model can call.

  • schema:

    The schema dictating the required output format.

  • generationOptions:

    The generation options to use.

  • contextOptions:

    The settings that configure how the model is prompted.

  • metadata:

    The metadata to attach to the request.