Type alias: Validator
Ƭ Validator: (runtime
: AgentRuntime
, 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
Name | Type |
---|---|
runtime | AgentRuntime |
message | Message |
state? | State |
Returns
Promise
<boolean
>