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

    Dispatches bridge requests from the Agent Chat webview to a real IAgentRuntimesClient instance living in the extension host.

    Index

    Constructors

    Methods

    Constructors

    • Wraps an existing DatalayerClient + AgentsMixin instance in a SdkAgentRuntimesClient so the bridge can call the interface methods regardless of how the SDK instance was composed.

      Parameters

      • sdk: {} & DatalayerClient

        The extension's shared DatalayerClient with AgentsMixin methods, constructed in createVSCodeDatalayer.

      • extensionMode: ExtensionMode = vscode.ExtensionMode.Production

        Current extension mode. When Development the bridge forwards stack traces to the webview to aid debugging; in Production and Test it omits them to avoid leaking internals.

      Returns AgentChatBridgeHandler

    Methods

    • Attaches the handler to a webview and returns a disposable that unregisters the listener.

      Parameters

      • webview: Webview

        The webview whose onDidReceiveMessage will be bound.

      Returns Disposable

      A disposable that detaches the listener.