API reference for the React SDK package.
Calculates the depth of a subagent based on its namespace.
Extracts the parent tool call ID from a namespace.
Extracts the tool call ID from a namespace path.
Strip headless-tool interrupts from a user-facing interrupt list.
Execute and resume all newly seen headless-tool interrupts from a values
Clear the internal Suspense cache used by useSuspenseStream.
Checks if a namespace indicates a subagent/subgraph message.
Parses a headless-tool interrupt value from the graph. Accepts both
Provides a shared useStream instance to all descendants via React Context.
A React hook that provides seamless integration with LangGraph streaming capabilities.
Accesses the shared stream instance from the nearest StreamProvider.
A Suspense-compatible variant of useStream for LangGraph Platform.
Minimal interface matching the structure of AgentTypeConfig from @langchain/langgraph.
Base stream interface shared by all stream types.
Minimal interface matching the structure of a CompiledSubAgent from deepagents.
Minimal interface matching the structure of DeepAgentTypeConfig from deepagents.
Client-side implementation returned by headlessTool.implement(...).
Represents a headless tool interrupt payload emitted by LangChain's
A single queued submission entry representing a server-side pending run.
Reactive interface exposed to framework consumers for observing
Minimal interface matching the structure of a SubAgent from deepagents.
Base interface for a single subagent stream.
Represents a tool call that initiated a subagent.
Stream interface for ReactAgent instances created with createAgent.
Options for configuring an agent stream.
Stream interface for DeepAgent instances created with createDeepAgent.
Options for configuring a deep agent stream.
Transport used to stream the thread.