Genkit JS API reference
    Preparing search index...

    Interface GenkitOptions

    Options for initializing Genkit.

    interface GenkitOptions {
        clientHeader?: string;
        context?: ActionContext;
        model?: ModelArgument<any>;
        name?: string;
        plugins?: (GenkitPluginV2 | GenkitPlugin)[];
        promptDir?: string | null;
    }
    Index

    Properties

    clientHeader?: string

    Additional attribution information to include in the x-goog-api-client header.

    context?: ActionContext

    Additional runtime context data for flows and tools.

    model?: ModelArgument<any>

    Default model to use if no model is specified.

    name?: string

    Display name that will be shown in developer tooling.

    List of plugins to load.

    promptDir?: string | null

    Directory where dotprompts are stored. Set to null to disable automatic prompt loading.