README
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:
-
SdkAgentRuntimesClient— the default browser / Node implementation that delegates to aDatalayerClientcomposed withAgentsMixin. Makes real HTTP calls against the configured service URLs. -
A bridge implementation hosted inside the VSCode webview sandbox (lives in the
vscode-datalayerextension, not in this package). It implements the same interface but tunnels every call to the extension host viapostMessagecorrelation IDs. The extension host answers the calls using its ownSdkAgentRuntimesClientso 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.