Genkit JS API reference
    Preparing search index...

    Function runFlow

    • Invoke a deployed flow over HTTP(s).

      For example:

      import { runFlow } from 'genkit/beta/client';

      const response = await runFlow({
      url: 'https://my-flow-deployed-url',
      input: 'foo',
      });
      console.log(await response);

      Type Parameters

      • O = any

      Parameters

      • __namedParameters: {
            abortSignal?: AbortSignal;
            headers?: Record<string, string>;
            input?: any;
            url: string;
        }
        • OptionalabortSignal?: AbortSignal

          Abort signal to abort the request.

        • Optionalheaders?: Record<string, string>

          A map of HTTP headers to be added to the HTTP call.

        • Optionalinput?: any

          Flow input.

        • url: string

          URL of the deployed flow.

      Returns Promise<O>