Matterway
    Preparing search index...

    Function initSkill

    • Init the skill with hot-reload support, to be used in the background.tsx file.

      Parameters

      • ctx: Context

        Skill context

      • indexStep: Function

        The main function to execute the skill logic (e.g., startStep)

      • Optionaloptions: { hotReload?: boolean }

        Options:

        • hotReload: Whether to force hot reload mode on or off. Overrides the default/saved state

      Returns Promise<void>

      await initSkill(ctx, startStep);
      // or with options
      await initSkill(ctx, startStep, {hotReload: false});