npm / @langchain/langgraph-sdk
@langchain/langgraph-sdk
What changed in @langchain/langgraph-sdk 0.1 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
21 breaking2 deprecations105 new APIs and options3 performance15 behavior and defaults142 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/langgraph-sdk 1272 changes
Breaking changes 21
StreamOrchestrator.respond() without an id now answers the first displayed interrupt; StreamController continues to answer the newest.
Thread-loading StreamOrchestrator instances now require activate(), which bindings call from an effect; pre-activation loads hold discovered runs, tools, and queued runs.
ToolCallStatus adds incomplete for calls that have no result and cannot receive one; exhaustive switches need to handle the new value.
Keeps runs going when a tab closes and resumes them on thread load; stop cancels the run unless cancellation is disabled.
Interrupt answers request strict resume unless strictResume is false, so answering an interrupt that is no longer waiting fails its run.
The peer dependency requirement is raised from ^1.1.48 to ^1.2.18, whose lazy tool-call chunk parsing is needed to avoid repeated parsing without the speedup.
Server closes with 4000 plus a 4xx status, except 4408 and 4429, now end the event stream with an error carrying
statusinstead of reconnecting; other 4xxx closes still reconnect.Send task paths and node-error-handler task paths now use Python-compatible shapes, changing task metadata and task ids for functional task() calls under those tasks.
Writes from tasks in one superstep are now applied and replayed in (task_path, task_id, idx) order instead of task-id order, aligning with Python and preventing run-to-run permutations.
Caller-supplied IDs are URL-encoded in request paths; raw IDs should be passed, and
.and..are rejected with anInvalid path segmenterror.The transport reconnects when the server cleanly closes the event stream;
maxReconnectAttempts: 0retains the previous end-on-close behavior.The core SDK no longer declares @langchain/svelte as an optional peer dependency.
The core SDK no longer declares @langchain/vue as an optional peer dependency.
User-initiated submit, respond, and respondAll writes commit synchronously in the triggering tick; high-frequency streaming writes remain macrotask-coalesced.
respond and respondAll apply updates optimistically, painting pushed messages immediately and reconciling them with the resumed run.
submit() input is echoed into values and messages immediately, with client-side IDs reconciled as the server streams back; non-message keys are shallow-merged and rolled back if no values arrive.
Protocol-v2 servers honor the caller's per-run strategy instead of hardcoding it, falling back to enqueue when omitted or unrecognized.
Removes the protocol-v2 StreamController submit({ command }) surface; HITL resume is handled by respond() only.
stream.stop() now cancels the active run by default before disconnecting the client.
Moved from a runtime dependency to a required peer dependency. Consumers using streaming or message coercion must install it explicitly or via @langchain/langgraph.
The low-level helper was removed; streaming responses are now handled natively by the SDK.
Deprecations 2
The index field on MessageTupleManager entries is deprecated because StreamManager no longer reads it; it will be removed in 2.0.
The defaultIndex argument is deprecated because StreamManager no longer reads it; it will be removed in 2.0.
New APIs and options 89
Custom transports keep submits on the first thread, show submitted values and messages optimistically, and can disable early display with optimistic: false.
onRunEnd reports each run's id and completion reason before submit() resolves; lifecycle callback errors are logged without affecting runs.
A custom adapter's getState receives { select }, and HttpAgentServerAdapter forwards the selection.
CustomStreamOrchestrator exposes submits made during a run in queueEntries until their turn; cancellation, clearing the queue, switching threads, and stop() drop queued submits.
Pass { isLoading: false } when no run streams to mark unanswered calls incomplete; the option defaults to true and preserves the previous running status.
StreamEngine is the interface for framework bindings, implemented by both StreamOrchestrator and CustomStreamOrchestrator.
stateKeys limits loaded and streamed values to the UI's selected keys plus messages, and requests those fields from the server using select.
Adds a StrictMode-safe activation method for StreamOrchestrator.
Reads the server version and supported feature flags from GET /info.
Adds per-call reconnect options; setting maxReconnectAttempts to 0 makes a dropped stream throw instead of reconnecting.
Adds a callback for reconnect attempts, with attempt, cause, last event ID, and delay.
Adds durable run behavior; setting durableRuns to false keeps a run tied to its tab as before.
Adds a method to hydrate a thread, optionally identified by threadId.
Exports the MessageMetadataMap type for message metadata.
Stores metadata per message ID, including parentCheckpointId and optimisticStatus.
Delivers every stream event to a listener in the @langchain/react 1.x channel shape; also available on CustomStreamOrchestrator.
Adds a callback reporting run ID and whether the run ended in success, error, interrupt, or stopped.
Exports the OptimisticStatus type for optimistic message status.
Lets a submit show supplied optimistic values; optimistic: false turns this behavior off.
With queue set to local, submits made during a run stay on the client until the run ends instead of being queued on the server.
Finds a subagent's namespace after a reload from its tool message or a page of thread history.
Answers an interrupt, defaulting to the newest one, and supports strict resume and other run options.
Answers several interrupts in one run.
The Run type now includes kwargs.
When enabled, streams each subagent only to its scopes and keeps its messages out of the main conversation; it is off by default.
Acquires a subgraph scope and returns snapshot, subscription, and release functions so a subagent panel can stream while open.
Builds AssembledToolCall values from messages.
Adds a streamIdleReconnect option passed to every run stream and join.
Adds and exports SubgraphDiscovery and its snapshot and map types for discovering subgraphs from events.
Setting watchThread to false disables following the thread and its lifecycle stream.
Accepts a checkpointId option sent as checkpoint_id, allowing supported servers to stream events after that checkpoint.
Cancels the run started by respond() or respondAll(), including when called before that run starts, and shows interrupts left waiting by the cancellation.
Run streams accept the lifecycle stream mode, which emits typed events when each subgraph starts and ends, including the id of the tool call that started it.
Adds strict resume handling to run creation, streaming, waiting, and useStream submission; refusals expose an UnknownInterruptError with reason, interruptIds, and pendingIds.
The Run type and RunSelectField include cancel_reason so callers can read why a run was cancelled without casting.
The end event is typed as EndStreamEvent, with data containing the run_id and final status, or null when the server sends no data.
client.runs.cancel accepts a reason; setting it to "taken" marks run input as absorbed for steering.
ThreadsClient.getState and ThreadsClient.getHistory accept select to return only requested fields; ThreadStateSelectField and ThreadSelectField are exported from the package root.
client.runs.stream and client.runs.joinStream accept namespaces to stream, excluding subagents started by each namespace.
The method accepts an optional serialized task path; custom savers must persist it and return pending writes in the new sort order.
A new export provides comparison for the sort keys used to order pending writes consistently across checkpoint savers.
A new export provides the sort key used to order pending writes consistently across checkpoint savers.
The Agent Server graph factory
ServerRuntimetype is now exported from@langchain/langgraph-sdk.Set queue to "server" to use durable server-side runs for the "enqueue" multitask strategy; queued submissions persist across reloads and are visible to other sessions. The default remains "local".
Message objects expose finish reasons and provider response metadata across message roles, accepting Python metadata and JavaScript responseMetadata event fields.
Add a responseSchema option to declare the expected resume value shape; Zod validates and parses the value, while raw JSON Schema passes through as-is.
Built-in streaming transports expose a callback after the initial connection becomes usable and after successful reconnects; its payload identifies the connection type and reconnect attempt.
The callback now receives the scheduled reconnect delay so applications can display accurate retry state.
Thread-stream run starts now support LangSmith replica routing.
Accepts endTime: null to clear a previously set cron end time; omitting endTime still leaves it unchanged.
respond(decision, { update, goto }) forwards goto alongside the interrupt resume in the same superstep.
respond(decision, { update, goto }) applies the state update in the same superstep as the interrupt resume, avoiding a separate updateState write.
Transport adapter paths entries may now be functions of the currently bound thread id, allowing request paths to vary by thread.
Custom AgentServerAdapters can implement optional setThreadId(threadId), which client.threads.stream calls when binding the active thread, including a lazily minted thread id.
Adds a framework-agnostic helper in the stream package that shares a ref-counted subscription with matching useChannel consumers.
Adds an Angular side-effect counterpart to useChannel that invokes an onEvent callback once per raw protocol event without re-rendering.
Exposes optional reconnect tuning on ThreadStreamOptions.
Adds a side-effect counterpart to useChannel that invokes an onEvent callback once per raw protocol event without re-rendering.
HttpAgentServerAdapter implements GET /threads/:id/state to retrieve thread state.
Hooks can opt out of optimistic submit behavior with optimistic: false.
Message metadata exposes optimistic submission status, transitioning from pending to sent or failed.
Accepts a plain checkpoint ID string and is folded client-side into config.configurable.checkpoint_id before run.start, so forkFrom is no longer sent over the wire.
Takes an options object with interruptId, namespace, config, and metadata; resumed runs can carry run-level configuration and metadata.
Adds a method to resume several interrupts pending at the same checkpoint in one command, including in the framework wrappers.
Adds stream.disconnect() so join/rejoin UIs can disconnect while leaving the agent running server-side.
Adds the cancel option so callers can use stop({ cancel: false }) to leave the agent running server-side.
AssembledToolCall exposes sync status and error for reactive bindings.
Cron search and count now support filtering by metadata.
Extracted the shared WithClassMessages<T> type to @langchain/langgraph-sdk/ui.
Custom transports support the onFinish callback, which is called when the stream completes.
Adds checkpointId support to runs.create.
Adds checkpointId support to runs.wait.
Adds checkpointId support to threads.updateState.
Adds the cancelMany method to the SDK.
Adds threads.prune to the SDK.
Adds the extract parameter to threads.search().
Adds a tools stream mode for tool lifecycle events.
Exports the stream error class so developers can use it from the SDK.
Adds the state_updated_at field to threads.
The useStream hook adds an interrupts array property to support multiple interrupts.
Adds support for pausing and unpausing crons in the SDK.
Client-side filtering of events is now available when joining a stream.
Adds onRunCompleted to control whether stateless cron threads are deleted automatically or kept for later retrieval.
Adds the delete_threads query parameter to the delete assistants API.
Exposes and passes down the interrupt generic type.
Exposes Thread["config"] to developers.
Tool call streaming now supports agent type inference, enabling type-safe streaming.
Pass an encoding format to select the wire format, switching between SSE and normal JSON responses without changing UI logic.
The React hook supports pluggable transports, allowing more control over the network layer without changing UI code.
Performance 3
Streaming tool-call arguments are reparsed at most every 50ms and once at stream end, instead of on every message chunk, reducing quadratic work; subagent messages receive the same treatment.
Concurrent identical history reads are coalesced within the SDK client; coalescing is skipped for caller-provided abort signals, raw response reads, and onRequest hooks.
Concurrent identical state reads are coalesced within the SDK client; coalescing is skipped for caller-provided abort signals, raw response reads, and onRequest hooks.
Behavior and default changes 15
Thread switches through switchThread(), syncThreadId(), or hydrate() now call onThreadId.
CustomStreamOrchestrator.hydrate(threadId) switches threads without reading state, because custom transports have no thread routes.
StreamOrchestrator calls onCreated for each server-queued run when it starts streaming, after the preceding run's onRunEnd.
CustomStreamOrchestrator sends answers as resume commands and hides answered interrupts until the run ends; without an id it answers the first displayed interrupt.
With reconnectOnMount, stop() before the run-creation response now keeps the request open for up to five seconds to learn the run id and cancel the run.
Sends join stream modes as one comma-joined stream_modes value for compatibility with older servers.
Runs request tools events when the server sends them, allowing the callback to fire; older servers that reject the request are retried without it.
Follows thread activity between activate and dispose, joining runs started elsewhere and refreshing when runs end elsewhere.
When reconnectOnMount is enabled, rejoins a running run after thread state loads, from the loaded head's checkpoint, avoiding replay from the run's start.
The input channel now receives input.answered events, and interrupts answered by another client are hidden.
SQLite and Postgres gain a task_path column, while Redis and MongoDB documents gain a task_path field; SQLite and Postgres migrate it automatically on setup().
Unsolicited server error frames and shared streams that exhaust reconnect attempts reach
stream.error;useStreamsetserror, clearsisLoading, and settles the in-flight submission as failed.Interrupts from every namespace, including nested subgraphs and subagents, are now mirrored onto rootStore.interrupts for live HITL UIs.
Built-in transport adapters no longer require threadId at construction; request URLs derive from the currently bound thread.
useStream now supports multi-subagent tracking.
Fixes and other changes 142
A subagent rebuilt from loaded messages takes its namespace from artifact.checkpoint_ns when the task tool message records it.
When a run fails before sending values, submitted non-message keys are restored or removed if newly introduced; the submitted message remains.
A subagent called by the main agent now has depth: 1 before it runs and after a reload.
runId is optional because a submit stopped before its run id arrives calls onRunEnd with reason: "stopped" and no runId.
A stop() in the same tick as submit() now stops the pending submit before it shows input or sends anything; a concurrent switchThread() drops it too.
A subagent namespace lookup that finds no history while a run is streaming waits for the subagent to start or the run to end, then looks again.
When a hidden page's thread watcher has no event id to resume from, it reads thread state once when the page becomes visible, so runs from other clients appear without reload.
Loaded interrupts are displayed only after checking for an in-progress run; the lookup may wait up to 10 seconds, and respond() without an id waits for it.
Joining a run started by a 1.x binding reads only lifecycle events; the page retains its displayed state until the run ends, then shows thread state.
Task errors returned as { message, name } are displayed as Error instances with the server-provided message.
Submits queued during a run create runs one at a time in submit order; failed creates do not block later ones, and clearing or switching threads drops waiting submits.
After stop(), submitted inputs not saved by the server remain visible after saved messages until the next run, reload, or thread switch.
Subgraph panels show all subgraph messages, including messages shared with the main conversation; subagent panels continue excluding shared messages.
Resumable streams reconnect when the server does not send a readable Location header, rebuilding the reconnect path from available run information.
A submit using reject during another streaming run now sends reject to the server so its rejection reaches onError, rather than queueing.
Queued submits now request the same stream modes as direct submits, restoring token-by-token replies and other event consumers.
Run streams and joins now filter events outside requested namespaces client-side when the server does not support that filter.
Does nothing and returns the existing stream promise when asked to join a run already streaming or queued.
Tool calls whose tool message has status error are read as failed, with the message text as the error.
Calls the onError passed to submit when that run fails, after the hook's own onError, for server and custom transport paths.
Hydrating an already shown thread no longer leaves isLoading stuck on true when reopening its stream, when a run ends during state loading, or when a run is found on an idle thread.
When a run is found going, messages loaded during hydration stay on screen while the stream replays the run.
The stream picks up interrupts raised inside subagents after reconnecting.
After submit(input, { forkFrom }), messages shows only the new branch instead of retaining messages from the abandoned branch until reload.
Keeps the parent of the first checkpoint that carried each message, so forking from it edits the right message.
Without a multitaskStrategy, submitting while a thread shows a run in flight sends interrupt so the server cancels the run the client stopped following; otherwise only a caller-provided strategy is sent.
A streamed message updates the matching message by id wherever it appears in the list, rather than appending a duplicate or overwriting another message.
run.start sends the multitask strategy under the protocol field name while retaining multitaskStrategy for older servers.
useStream ignores tool events of unknown kinds instead of throwing Unexpected tool event during a state update and crashing the app's render.
POST and PATCH are retried only when the connection failed before sending, preventing duplicate runs or repeated protocol commands.
Reconnects no longer resend query parameters already carried by the Location URL, preventing the URL from growing on every reconnect.
Switching threadId no longer reruns a pending headless tool or resumes a thread with the previous thread's interrupt id.
If a stream ends without an error or terminal event, it checks the run status and reconnects from the last event if the run is pending or running; transient errors on the status check are treated like dropped connections.
When switching threads, useStream no longer streams a previous thread’s resumed run into the new thread’s view or aborts a run the new thread is streaming; the pending call resumes when its own thread is shown.
With history enabled, joinStream now shows the thread state read after the joined run ends, rather than the joined stream's last values.
Joining a run from its first event in a mount that already streamed it no longer duplicates message text; resuming from lastEventId still continues the message.
A run abandoned by clear() or stop() no longer invokes onSuccess, preventing a thread switch during reconnect backoff from loading the previous thread's history.
Each event resets the reconnect-attempt allowance, so long streams do not give up after repeated successful reconnects; id-only and retry-only frames do not count as events.
SSE parsing now handles multiline JSON, colonless fields, a leading BOM, empty event ID resets, empty payloads, reconnect cursors, and pending unnamed data at EOF consistently with Python.
Stopping reads the thread state retained by the server and applies onStop edits on top; cancellation is not shown as an error or breakpoint.
Without history, successful runs refresh the thread when shown state had an interrupt, pending node, or task error; failed refreshes do not report errors. With history, refresh failures no longer skip onFinish.
Values from a non-agent subgraph no longer replace root state while it runs; its results appear when its node returns.
After reload, a subagent delegated by an older turn is no longer displayed with tool results from a newer turn.
After reload, a running or approval-waiting subagent no longer displays the state of an earlier regular tool call in the same message.
With history enabled, submitting on the latest shown branch no longer pins the run to a cached head, keeping newer turns on that branch; older shown heads still fork.
A numeric throttle now notifies at most once per interval while values continue changing, rather than waiting until they stop.
A pending headless tool call resumes once when a thread opens, including after reload; replayed effects no longer run it twice.
Without history, successful runs refresh the thread when shown state had an interrupt, pending node, or task error; failed refreshes do not report errors. With history, refresh failures no longer fail the run.
Requests cancelled with an AbortSignal or timeoutMs are no longer retried, preventing stop() from keeping isLoading on while retries back off.
The decoder emits lines ending in a bare CR immediately and preserves a stream's final blank line when it ends with CR.
Timed requests no longer leave an abort listener on the caller's signal, avoiding listener buildup when a signal is reused.
When a command reports applied_through_seq: 0, the SDK now finds where the command's run starts on the thread stream and treats everything before it as history, preventing resolved interrupts from returning after reload.
Unrecognized delta variants are ignored, and consume returns undefined for those events, avoiding frozen scoped views, unsettled messages, and unhandled rejections.
Tool-call args streamed as tool-call-delta slices are appended and shown live in useStream, scoped useMessages, thread.messages, subgraph.messages, and subagent.messages; block-delta snapshots still replace the args.
A command whose send fails no longer leaves a response promise behind to be rejected later as an unhandled rejection.
The root-namespace messages projection now fills from the root event stream instead of throwing on every event and remaining empty.
Handles for cut-off messages now settle with an
abortederror instead of remaining unresolved.A replayed completion from an earlier run no longer settles a newly submitted run early, clears
isLoading, or firesonCompletedwhile the new run is still going.A WebSocket thread stream that fails permanently now reaches
ThreadStream.onError, allowinguseStreamto seterrorand clearisLoading, as with SSE.Cut-off replies are removed when their run ends and stay removed across refreshes and other tabs; completed replies remain visible during pauses and are replaced when the run resumes.
The controller skips events produced before the loaded checkpoint, preventing earlier turns from replaying into stream state; scoped views still receive full history.
The first update superstep is sealed so touched DeltaChannels snapshot on the update checkpoint, preventing finished sibling writes and update writes from replaying in the wrong order.
Resumed superstep delta writes replay in live order, interleaving with loaded writes by task path; loaded writes are no longer stored twice.
Detection now accepts both the old and new Send-task path shapes.
Update tasks carry (__interrupt__, i) task paths so multiple updates in one superstep writing the same DeltaChannel replay in the order given.
Client construction now copies defaultHeaders instead of writing x-api-key into the caller's object, preventing clients from sharing headers and sending another client's API key.
The reconnect attempt counter resets after each successful connect, so idle reconnects no longer consume the configured maximum.
Protocol request errors now retain the HTTP status.
The protocol SSE transport now ends with the error instead of retrying on 4xx responses, except for 408 and 429.
Protocol request errors now retain the response body text.
After stop() cancels a run mid-turn, stale uncheckpointed messages are reconciled against persisted thread state or cached history instead of remaining visible.
Frontend message objects retain namespace, graph node, callback run_id, and message-start metadata, including on messages returned by awaiting a StreamingMessage.
Interleaved streams at the same namespace and node remain separate using callback run IDs, with fallback behavior for legacy events without run IDs.
Populate the standard AI usage_metadata field, retain additional_kwargs.usage for compatibility, and preserve earlier usage when a finish event omits it.
runs.stream()now sendscheckpoint_idin its request body, so acheckpointIdpassed toclient.runs.stream()forks from the requested checkpoint.When a root event stream fails or closes during an active run, the controller records the transport error, clears
isLoading, and permits a later submission to start a fresh subscription.Persisted sequence tracking now looks up the appropriate sequence index during page rehydration, preventing stream information from being lost on reload.
After a passive thread rejoin, unknown interrupts are checked against server thread state at terminal lifecycle; pending interrupts are shown and other interrupts are dropped as history.
Interrupt resolution now prioritizes the local cache of responses, then reconciles them with remote state when a run reaches a terminal event.
In-place message metadata updates from values are now applied.
stream.interrupts remains truthful after sequential multi-interrupt resume.
Historical interrupts are filtered after a command is accepted, preventing an already answered HITL form from reappearing after reload.
Calling hydrate(null) with a pending interrupt now resets the snapshot first, clearing the old conversation instead of leaving it on screen.
Deferred terminal resets no longer clear isLoading when a newer running lifecycle has already arrived, such as during HITL resume or SSE replay.
When a values snapshot echoes an optimistic human message with the same content and committed additional_kwargs, stream.messages now adopts the server copy without letting poorer snapshots strip richer metadata.
With replay disabled, input channel events are now matched using inferChannel, so input.requested events are delivered on the root-bus fast path.
HTTPError now always includes the underlying Response, allowing callers to inspect the original HTTP response.
For a missing externally minted thread, the root stream pump starts only after dispatch succeeds, preventing the first run's events from being lost.
When callers pass interruptId without namespace, respond resolves the namespace from the thread's interrupts instead of defaulting to root.
respond() and respondAll() now clear the hydrated interrupt allowlist, allowing follow-on HITL interrupts to appear on stream.interrupt and free-text submits to resume with the correct payload.
A stale hydration now stops after getState() resolves if the thread was cleared, preventing stale state from being applied or a reconnect from opening with a null thread.
Post-connect SSE reconnects omit the carried since value and rely on durable event_id dedup, preventing replay history from being filtered out.
Custom fetch shims no longer disable SSE reconnects; reconnect options are also plumbed through framework useStream bindings.
Final projection disposal is deferred by one microtask so reactive updates that release and immediately reacquire the same scoped projection keep the existing stream subscription.
SSE streams reconnect when server keep-alive heartbeats stop, using Last-Event-ID or since; auto mode arms only after heartbeats are observed to avoid false triggers during long tool calls and HITL pauses.
Prevents replayed messages from an idle thread's finished run from rebuilding and re-streaming already-complete messages.
Protocol thread streams now reconnect automatically after disconnect, resuming SSE with since.
useStream inherits apiUrl from the transport, preventing hydration from defaulting to localhost:8123.
StreamController now prefers the adapter's getState() before client.threads.getState when hydrating state.
Subscriptions now resume across serial runs, so useChannel keeps accumulating events across prompts on the same thread.
Hydration seeds deep-agent subagent cards from checkpoint messages and subgraph hosts from one bounded getHistory read, so fan-out discovery reappears on refresh without waiting for SSE replay.
Resumed run failures and input.respond dispatch failures now populate stream.error, matching submit() behavior so framework consumers can observe them.
With multitaskStrategy set to enqueue, same-tick submissions now enter queueStore instead of bypassing the client queue.
SubgraphDiscovery no longer changes a terminal subgraph back to running when a host-namespace values snapshot arrives late, preventing nodes from remaining perpetually running in useStream subgraph UIs.
Normalizes camelCase and snake_case edit decisions so JS clients can resume human-in-the-loop interrupts against Python LangGraph servers.
Headless-tool resumes now route payloads through respond or respondAll, delivering the tool result and allowing the graph to complete.
Checkpoint IDs created within the same millisecond maintain stable lexicographic ordering because uuid6 now uses a strictly increasing time component.
Prefers a completed task's direct mapping over a pending checkpoint's positional guess when fetching subagent history.
Preserves the apiUrl path prefix in stream transport URLs so SSE and WebSocket subscriptions work when the SDK uses a proxied apiUrl.
Embedded ToolMessage results in LangGraph Command payloads are now parsed on tool-finished.
Wrapper task dispatch events are filtered from subagent-scoped tool-call projections.
Optional accessors are non-enumerable, so object spread or rest destructuring does not eagerly read guarded fields or opt into additional stream modes.
Discovery stores are reset when starting a new thread, preventing stale subgraph cards or subagent entries from the previous run.
InferToolCalls now resolves to generic AssembledToolCall unions, aligning typing with pre-v1 expectations.
Message projection now preserves AI content blocks.
Subagent history restoration now respects fetchStateHistory.
Previously streamed messages are preserved when an interrupt-only values payload is emitted.
Subagent messages are buffered instead of dropped.
Fixed detection of interrupts for Python agents.
Subagents are accessible once they are spun up.
Type inference is improved, helping developers get better inferred types when using the SDK.
Restores deprecated snake_case aliases on interrupt payloads while preserving camelCase fields, allowing older apps to migrate to @langchain/react without breaking interrupt handling.
Parallel interrupts are now accumulated in StreamManager.
Skips the post-stream getHistory call when onFinish has zero arity.
Normalizes interrupts between JavaScript and Python.
Custom transports now forward streamSubgraphs.
Fixes fetching subagent history.
Handles null values in functional graph checkpoint history.
Fixes empty results for OpenAI models by updating aiMessageId when the provider replaces it during streaming.
Reverts the dependency between the old SDK and the new React package.
Custom streams now use the optimistic threadId.
Fixes the type incompatibility between UseStream and the useStream return type.
Aborts the previous stream when using the interrupt/rollback multitask strategy.
Made generic to enable type-safe subagent inference.
The SDK now always passes the URL to fetch as a string.
Agent types are now inferred in stream.values.
Fixes a “cannot convert undefined or null to object” error in useStream.
Reconnects based on Location, including before the first event, and retries on Undici connection errors.
Fixes a bug in the UseStream export.
UseStream instance exports were re-added, making them available to developers importing the SDK.
Failing to connect to a server now provides a proper error message.
The package is updated for compatibility with LangGraph v1.0.
@langchain/langgraph-sdk 0.116 changes
New APIs and options 16
Adds an endpoint to retrieve a model price entry by ID, including workspace, organization, and LangSmith default entries the workspace prices against. Returns 404 for entries the workspace does not price against.
Adds a DELETE endpoint for deleting an organization model price by ID, whether or not it exists.
Adds a GET endpoint to retrieve an organization model price by ID, returning a ModelPriceMapSchema.
Adds an endpoint to create an organization model price that applies to every workspace in the organization.
Adds an endpoint to list organization user groups with cursor pagination, workspace-scoped results, and permission-dependent visibility.
Resumes listing from a cursor returned by the previous page; the response provides next_cursor, which is null on the last page.
Sets the number of user groups per page; accepts values from 1 to 100 and defaults to 20.
Adds a GET endpoint that retrieves one user group in an organization. Access requires organization:user-groups:read or workspaces:user-groups:read in the group’s workspace, depending on scope.
Adds an endpoint to attach an existing organization access policy to a user group. The request requires access_policy_id and optionally accepts workspace_id; it returns 201 when attached or 200 when already attached.
Adds a GET endpoint to list a user group's access policies, with cursor-based pagination and scope-specific read permissions.
Adds a POST endpoint to grant an organization-wide user group a role in a workspace. The caller needs organization:user-groups:manage-grants.
The upsert query parameter updates an existing session with the same name instead of creating a session.
Defines the list endpoint's response as an items array of DeploymentNamespace objects.
Adds the optional cursor query parameter for fetching subsequent pages, using the previous response’s next_cursor as an opaque value.
Adds the optional page_size query parameter to set the maximum number of entries returned; it defaults to 20 and accepts values from 1 to 100.
Adds an API to list workspace rules with pagination and filters for project, dataset, type, name, IDs, evaluator, tags, and backfill progress.