Genkit JS API reference
    Preparing search index...

    Interface ActionContext

    Action side channel data, like auth and other invocation context infromation provided by the invoker.

    interface ActionContext {
        auth?: Record<string, any>;
        secrets?: Record<string, unknown>;
        [additionalContext: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [additionalContext: string]: any
    Index

    Properties

    Properties

    auth?: Record<string, any>

    Information about the currently authenticated user if provided.

    secrets?: Record<string, unknown>

    Safe place to pass non-auth operational secrets (e.g., custom database passwords or encryption keys). This namespace is actively scrubbed from telemetry traces.