Contents

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

Creates a generation request.

Declaration

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

Parameters

  • id:

    The request identifier.

  • transcript:

    The transcript to generate the next entry for.

  • enabledTools:

    The subset of 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.