Genkit JS API reference
    Preparing search index...

    Type Alias Action<I, O, S, RunOptions>

    Action: (input?: z.TypeOf<I>, options?: RunOptions) => Promise<z.TypeOf<O>> & {
        __action: ActionMetadata<I, O, S>;
        __registry?: Registry;
        run(
            input?: z.TypeOf<I>,
            options?: RunOptions,
        ): Promise<ActionResult<z.TypeOf<O>>>;
        stream(input?: z.TypeOf<I>, opts?: RunOptions): StreamingResponse<O, S>;
    }

    Self-describing, validating, observable, locally and remotely callable function.

    Type Parameters