Class Generator<O, I>

Class that, when instantiated, provides a handier alternative to the generate function if you want to reuse the same generation configuration (e.g. openaiApiKey, dangerouslyAllowBrowser, etc.) from multiple places.

Type Parameters

Hierarchy

  • Generator

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Generates data using the Generator's configuration.

    Type Parameters

    Parameters

    • outputSpecs: O
    • Optional inputs: I
    • Optional additionalOptions: GenerateOptions<O, I>

    Returns Promise<undefined | MatchingOutput<O>>

    See

    generate for more information.

Generated using TypeDoc