Skip to main content

README

Agent Runtimes


Agent Runtimes / client/IAgentRuntimesClient

client/IAgentRuntimesClient

Domain-level interface abstracting every operation the chat component and hooks need against the Datalayer agent runtime platform.

Two concrete implementations are expected:

  1. SdkAgentRuntimesClient — the default browser / Node implementation that delegates to a DatalayerClient composed with AgentsMixin. Makes real HTTP calls against the configured service URLs.

  2. A bridge implementation hosted inside the VSCode webview sandbox (lives in the vscode-datalayer extension, not in this package). It implements the same interface but tunnels every call to the extension host via postMessage correlation IDs. The extension host answers the calls using its own SdkAgentRuntimesClient so the webview never touches the network or the auth token directly.

The interface is deliberately transport-agnostic: consumers depend on semantic method names (listRunningAgents, approveToolRequest) rather than on URLs, fetch options, or WebSocket frames.

Interfaces