Type Alias InterruptConfig<I, R>

InterruptConfig: ToolConfig<I, 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

  • 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