@vowel.to/client / index / ToolHandler
Type Alias: ToolHandler()<T>
ts
type ToolHandler<T> = (params, context) => Promise<any> | any;Defined in: lib/vowel/managers/ToolManager.ts:38
Tool handler function
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Parameters
| Parameter | Type |
|---|---|
params | T |
context | ToolContext |
Returns
Promise<any> | any