Genkit JS API reference
    Preparing search index...

    Type Alias ActionWithOptions<I, O, S>

    A wrapper object containing an action with its associated options.

    type ActionWithOptions<
        I extends z.ZodTypeAny = z.ZodTypeAny,
        O extends z.ZodTypeAny = z.ZodTypeAny,
        S extends z.ZodTypeAny = z.ZodTypeAny,
    > = {
        action: Action<I, O, S>;
        options: {
            contextProvider?: ContextProvider<any, I>;
            path?: string;
            streamManager?: StreamManager;
        };
    }

    Type Parameters

    Index

    Properties

    Properties

    action: Action<I, O, S>
    options: {
        contextProvider?: ContextProvider<any, I>;
        path?: string;
        streamManager?: StreamManager;
    }