The ID of the assistant to use.
The current branch of the thread.
LangGraph SDK client used to send request and receive responses.
Last seen error from the stream.
Experimentalexperimental_Tree of all branches for the thread.
Get the metadata for a message, such as first thread state the message was seen in and branch information.
The message to get the metadata for.
Optionalindex: numberThe index of the message in the thread.
The metadata for the message.
Get subagent stream by tool call ID.
The tool call ID that initiated the subagent.
The subagent stream, or undefined if not found.
Get all subagents triggered by a specific AI message.
Useful for rendering subagent activities grouped by the AI message (and therefore conversation turn) that spawned them.
The ID of the AI message that triggered the subagents.
Array of subagent streams triggered by that message.
Get all subagents of a specific type. When called with a literal type name that matches a key in SubagentStates, returns streams with properly inferred state types.
Get tool calls for a specific AI message.
The AI message to get tool calls for.
Array of tool calls initiated by the message.
Flattened history of thread states of a thread.
Get the interrupt value for the stream if interrupted.
Convenience alias for interrupts[0].
All current interrupts from the stream. When using Send() fan-out with per-task interrupt() calls, multiple interrupts may be pending simultaneously.
Whether the stream is currently running.
Whether the thread is currently being loaded.
Join an active stream.
Messages accumulated during the stream.
Set the branch of the thread.
Stops the stream.
All currently active and completed subagent streams. Keyed by tool call ID for easy lookup.
Create and stream a run to the thread.
Tool calls paired with their results. Useful for rendering tool invocations and their outputs together.
The current state values of the stream.
Currently active subagents (where status === "running").