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

    Simple Runner implementation for tool execution in webview. Maps operation names to their implementations and executes them directly. Generic to support different operation types (notebook, lexical, etc.)

    Index

    Constructors

    Properties

    documentId: string = null
    executor: any = null
    operations: Record<string, any>

    Methods

    • Executes a tool operation by name. Follows the OperationRunner pattern: execute operation + apply formatting.

      Parameters

      • operationName: string

        Name of the operation to execute

      • args: unknown

        Arguments for the operation

      • format: "json" | "toon" = "toon"

        Response format ("json" or "toon"), defaults to "toon"

      Returns Promise<unknown>

      Promise resolving to the formatted operation result

      Error if operation is not found

    • Checks if an operation is available.

      Parameters

      • operationName: string

        Name of the operation

      Returns boolean

      True if operation exists