Type Alias InterruptConfig<I, R>

InterruptConfig: Omit<ToolConfig<I, R>, "outputSchema" | "outputJsonSchema"> & {
    replyJsonSchema?: JSONSchema7;
    replySchema?: R;
    requestMetadata?:
        | Record<string, any>
        | (input: TypeOf<I>) => Record<string, any> | Promise<Record<string, any>>;
}

InterruptConfig defines the options for configuring an interrupt.

Type Parameters

Type declaration

  • OptionalreplyJsonSchema?: JSONSchema7

    replyJsonSchema defines the JSON schema that this interrupt needs when resuming

  • OptionalreplySchema?: R

    replySchema defines the Zod schema that this interrupt needs when resuming

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

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