Skip to content

Type Alias: SkillStopCallback()

ts
type SkillStopCallback = (info: SkillStopInfo) => Promise<void> | void;

Defined in: packages/sdk/src/context/index.ts:71

Cleanup callback registered via Context.onStop. May be async — the runtime awaits it, subject to the shared cleanup budget (see Context.onStop). A throwing or rejecting callback is caught and logged and does not block the remaining callbacks.

Parameters

ParameterType
infoSkillStopInfo

Returns

Promise<void> | void

Matterway Assistant SDK Documentation