Skip to main content

Type alias: Validator

Ƭ Validator: (runtime: BgentRuntime, message: Message, state?: State) => Promise<boolean>

Represents the type of a validator function, which takes a runtime instance, a message, and an optional state, and returns a promise resolving to a boolean indicating whether the validation passed.

Type declaration

▸ (runtime, message, state?): Promise<boolean>

Parameters
NameType
runtimeBgentRuntime
messageMessage
state?State
Returns

Promise<boolean>