Skip to content

@sqlrooms/ai-core / BeforeSendHandler

Type Alias: BeforeSendHandler

BeforeSendHandler = (text) => boolean | void

A synchronous pre-send veto: called with the text about to be sent, and returning false to abort. Any other return value proceeds.

Parameters

ParameterType
textstring

Returns

boolean | void