Type alias: Validator<T>
Validator<
T>: (input) =>Promise<T> |T
Type parameters
| Parameter |
|---|
T |
Validate the output of an LLM call
Parameters
| Parameter | Type |
|---|---|
input | Msg |
Returns
Promise<T> | T
<T>Validator<
T>: (input) =>Promise<T> |T
| Parameter |
|---|
T |
Validate the output of an LLM call
| Parameter | Type |
|---|---|
input | Msg |
Promise<T> | T