Genkit JS API reference
    Preparing search index...

    Type Alias InterruptConfig<I, R>

    InterruptConfig: ToolConfig<I, R> & {
        requestMetadata?:
            | Record<string, any>
            | (
                (
                    input: z.TypeOf<I>,
                ) => Record<string, any> | Promise<Record<string, any>>
            );
    }

    InterruptConfig defines the options for configuring an interrupt.

    Type Parameters

    Type Declaration

    • OptionalrequestMetadata?:
          | Record<string, any>
          | (
              (
                  input: z.TypeOf<I>,
              ) => Record<string, any> | Promise<Record<string, any>>
          )

      requestMetadata adds additional interrupt metadata to the toolRequest generated by the interrupt