playground / Exports / IToolHooks
Interface: IToolHooks
Table of contents
Methods
Methods
beforeExecute
▸ beforeExecute(toolName, parameters, context?): Promise<void>
Parameters
| Name | Type |
|---|---|
toolName | string |
parameters | TToolParameters |
context? | IToolExecutionContext |
Returns
Promise<void>
Defined in
playground/src/lib/playground/block-tracking/block-hooks.ts:11
afterExecute
▸ afterExecute(toolName, parameters, result, context?): Promise<void>
Parameters
| Name | Type |
|---|---|
toolName | string |
parameters | TToolParameters |
result | TUniversalValue |
context? | IToolExecutionContext |
Returns
Promise<void>
Defined in
playground/src/lib/playground/block-tracking/block-hooks.ts:12
onError
▸ onError(toolName, parameters, error, context?): Promise<void>
Parameters
| Name | Type |
|---|---|
toolName | string |
parameters | TToolParameters |
error | Error |
context? | IToolExecutionContext |
Returns
Promise<void>
Defined in
playground/src/lib/playground/block-tracking/block-hooks.ts:13