Skip to content

Type Alias: SkillStopReason

ts
type SkillStopReason = "finished" | "error" | "stopped" | "aborted";

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

Why the skill run ended:

  • 'finished' — the skill function returned normally.
  • 'error' — the skill threw, an uncaught exception surfaced, or startup failed. SkillStopInfo.errorMessage carries the error's message.
  • 'stopped' — the skill ended itself via Context.stopSkill.
  • 'aborted' — an external stop: the launcher/hub stop button, the skill tab being closed, the 4-hour max-run timeout, or a dev-mode skill update.

Matterway Assistant SDK Documentation