Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Simple Runner implementation for tool execution. Maps operation names to their implementations and executes them.

    Index

    Constructors

    Methods

    Constructors

    • Creates a new Runner instance.

      Parameters

      • operations: Record<string, ToolOperation<unknown, unknown>>

        Map of operation names to their implementations.

      • executor: unknown

        Executor instance for performing operations, or null for direct execution.

      Returns Runner

    Methods

    • Executes a tool operation by name.

      Parameters

      • operationName: string

        Name of the operation to execute.

      • args: unknown

        Arguments for the operation.

      Returns Promise<unknown>

      Promise resolving to the operation result.

      Error if the operation name is not found in the registry.