Type for callback functions that handle hook events. Callbacks can be synchronous or asynchronous.
const callback: HookCallback<BeforeInvocationEvent> = (event) => { console.log('Agent invocation started')} Copy
const callback: HookCallback<BeforeInvocationEvent> = (event) => { console.log('Agent invocation started')}
Type for callback functions that handle hook events. Callbacks can be synchronous or asynchronous.