useAgentRuntimesClient
Agent Runtimes / client/AgentRuntimesClientContext / useAgentRuntimesClient
Function: useAgentRuntimesClient()
useAgentRuntimesClient():
IAgentRuntimesClient
Defined in: client/AgentRuntimesClientContext.tsx:73
Reads the active IAgentRuntimesClient from context.
Returns
The active client.
Throws
When called outside an AgentRuntimesClientProvider. Prefer a loud failure to silently falling back to a default client, because a missing provider usually indicates a wiring bug (especially in the VSCode webview where the default client would make forbidden direct HTTP calls).