Function loadExternalTool

  • Loads an external tool from a module path.

    Type Parameters

    • T extends Record<string, unknown>

    Parameters

    • ctx: MistiContext

      Misti context

    • modulePath: string

      Path to the module

    • className: string

      Name of the tool class to load

    • options: T

      Options to pass to the tool constructor

    Returns Promise<Tool<T> | undefined>

    A Promise that resolves to a Tool instance or undefined if loading failed