Skip to main content

README

Agent Runtimes


Agent Runtimes / client/AgentRuntimesClientContext

client/AgentRuntimesClientContext

React context and hook for injecting an IAgentRuntimesClient implementation into the chat component tree.

Consumers wrap the <Chat> component with <AgentRuntimesClientProvider> and pass the implementation of their choice — the default SdkAgentRuntimesClient for browser / Node, or a bridge implementation in the VSCode webview sandbox. Components and hooks inside the tree call useAgentRuntimesClient to retrieve the current client without knowing anything about how it talks to the backend.

Interfaces

Functions