Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/langchain-ai/langgraphjs
/ functions
Functions
4,051 in github.com/langchain-ai/langgraphjs
⨍
Functions
4,051
◇
Types & classes
1,207
↓ 2 callers
Method
#createInitialSnapshot
* Build the initial root snapshot from configured initial values.
libs/sdk/src/stream/controller.ts:1515
↓ 2 callers
Method
#drainQueue
()
libs/sdk/src/ui/orchestrator.ts:1085
↓ 2 callers
Method
#drainQueue
* Drain the head of the queue if no run is active. * * Called from the `finally` block of `submit()` on the next * macrotask (so the just-fin
libs/sdk/src/stream/submit-coordinator.ts:728
↓ 2 callers
Method
#ensureLifecycleTracking
* Lazily start a dedicated lifecycle+input subscription so that * `thread.interrupted` / `thread.interrupts` work even when the * caller never a
libs/sdk/src/client/stream/index.ts:807
↓ 2 callers
Method
#ensureOpen
* Ensure the underlying transport is connected. * * For HTTP/SSE this is a no-op. For WebSocket this performs the * handshake. Called lazily
libs/sdk/src/client/stream/index.ts:780
↓ 2 callers
Method
#fireOnEvent
(event: Event)
libs/sdk/src/client/stream/index.ts:1612
↓ 2 callers
Method
#flushPendingHeadlessToolInterrupts
( values: Record<string, unknown> | null | undefined )
libs/sdk/src/ui/orchestrator.ts:1254
↓ 2 callers
Method
#handleIncoming
(message: Message)
libs/sdk/src/client/stream/index.ts:2288
↓ 2 callers
Method
#handleUnexpectedDisconnect
(cause: unknown)
libs/sdk/src/client/stream/transport/websocket.ts:369
↓ 2 callers
Method
#markInterruptResolvedInRootStore
* Mark an interrupt resolved for replay filtering and mirror the * removal into the root snapshot the framework hooks read.
libs/sdk/src/stream/controller.ts:2277
↓ 2 callers
Method
#needsToolCall
(messages?: BaseMessage[])
libs/sdk-react/src/tests/fixtures/headless-tool-graph.ts:48
↓ 2 callers
Method
#notifyCompleted
( reason: RunExecutionReason, runId = this.#activeRunId )
libs/sdk/src/stream/controller.ts:1140
↓ 2 callers
Method
#notifyThreadListeners
* Notify listeners that the underlying thread stream changed.
libs/sdk/src/stream/controller.ts:2415
↓ 2 callers
Method
#recordRootInterrupt
* Mirror root protocol interrupts into the root snapshot. * * This can be called from both the wildcard lifecycle/input watcher and the * roo
libs/sdk/src/stream/controller.ts:2235
↓ 2 callers
Method
#resolveDispatchUpdate
* Pick the `update` payload to dispatch on a resume (`respond` / * `respondAll`). * * When the optimistic path ran ({@link #beginOptimistic}
libs/sdk/src/stream/controller.ts:2127
↓ 2 callers
Method
#resolvePending
* Resolve any pending `subscribe()` promises whose filter is now * covered by the active shared stream. Called after every successful * rotation
libs/sdk/src/client/stream/index.ts:2040
↓ 2 callers
Method
#scheduleTerminalPause
* Pause non-lifecycle subscriptions after a root terminal lifecycle. * * The pause is deferred one macrotask so same-run trailing events * em
libs/sdk/src/client/stream/index.ts:2266
↓ 2 callers
Method
#session
* Get or create the process-local session for a thread. * * This example stores sessions in memory. Production servers should back * this wit
examples/ui-react-transport/src/app/server.ts:47
↓ 2 callers
Method
#setMessages
(current: StateType, messages: Message[])
libs/sdk/src/ui/orchestrator.ts:417
↓ 2 callers
Method
#skipDefaultSubagentProjection
* Suppress subscriptions for placeholder subagent namespaces once hydrate has * resolved the real execution namespace. * * Deep-agent discove
libs/sdk/src/stream/controller.ts:959
↓ 2 callers
Method
#startDeferredRootPump
* Start the previously-deferred root SSE pump after the first * `submitRun` / `respondInput` has committed the thread server-side. * * No-op
libs/sdk/src/stream/controller.ts:1598
↓ 2 callers
Method
#startRootPump
* Start the always-on root subscription pump for the provided thread. * * @param thread - Thread stream to subscribe to and fan out from.
libs/sdk/src/stream/controller.ts:1706
↓ 2 callers
Method
#startUrlFetch
Memoised fetch for URL-sourced blocks — returns one `Response`.
libs/sdk/src/client/stream/media.ts:558
↓ 2 callers
Method
#usageIterator
()
libs/sdk/src/client/stream/messages.ts:404
↓ 2 callers
Method
#withRunStartGate
* Run `operation` (a `run.start` send) while holding the run-start * gate. Sets `#runStartReady` before invoking `operation` so any * subscripti
libs/sdk/src/client/stream/index.ts:827
↓ 2 callers
Function
XXH3_accumulate
( acc: BigUint64Array, dataView: DataView, keyView: DataView, nbStripes: number )
libs/langgraph-core/src/hash.ts:116
↓ 2 callers
Function
XXH3_mergeAccs
(acc: BigUint64Array, key: DataView, start: bigint)
libs/langgraph-core/src/hash.ts:151
↓ 2 callers
Function
XXH3_mix16B
(dataView: DataView, keyView: DataView, seed: bigint)
libs/langgraph-core/src/hash.ts:249
↓ 2 callers
Function
XXH3_mul128_fold64
(a: bigint, b: bigint)
libs/langgraph-core/src/hash.ts:244
↓ 2 callers
Function
_coerceTimeoutMs
( value: number | undefined, field: string )
libs/langgraph-core/src/pregel/utils/timeout.ts:45
↓ 2 callers
Method
_createStateSnapshot
( state: ThreadState, fallbackConfig?: RunnableConfig )
libs/langgraph-core/src/pregel/remote.ts:432
↓ 2 callers
Function
_getControlBranch
()
libs/langgraph-core/src/graph/state.ts:2176
↓ 2 callers
Function
_getPageSection
(node)
docs/plugins/typedoc/google_analytics/client_script.js:85
↓ 2 callers
Function
_getPrompt
( prompt?: Prompt, stateModifier?: CreateReactAgentParams["stateModifier"], messageModifier?: CreateReac
libs/langgraph-core/src/prebuilt/react_agent_executor.ts:145
↓ 2 callers
Function
_isChatModelWithBindTools
( llm: LanguageModelLike )
libs/langgraph-core/src/prebuilt/react_agent_executor.ts:193
↓ 2 callers
Method
_loadCheckpoint
( checkpoint: Omit<Checkpoint, "pending_sends" | "channel_values">, channelValues: [Uint8Array, Uint8A
libs/checkpoint-postgres/src/index.ts:178
↓ 2 callers
Method
_loadMetadata
(metadata: Record<string, unknown>)
libs/checkpoint-postgres/src/index.ts:208
↓ 2 callers
Method
_loadWrites
( writes: [Uint8Array, Uint8Array, Uint8Array, Uint8Array][] )
libs/checkpoint-postgres/src/index.ts:213
↓ 2 callers
Method
_matchCachedWrites
()
libs/langgraph-core/src/pregel/loop.ts:900
↓ 2 callers
Method
_migratePendingSends
@internal
libs/checkpoint-postgres/src/index.ts:513
↓ 2 callers
Method
_needsToolCall
(messages?: BaseMessage[])
libs/sdk-angular/src/tests/fixtures/mock-server.ts:565
↓ 2 callers
Method
_needsToolCall
(messages?: BaseMessage[])
libs/sdk-svelte/src/tests/fixtures/mock-server.ts:565
↓ 2 callers
Method
_needsToolCall
(messages?: BaseMessage[])
libs/sdk-vue/src/tests/fixtures/mock-server.ts:551
↓ 2 callers
Function
_normalizeAgentName
(agentName: string)
libs/langgraph-supervisor/src/handoff.ts:13
↓ 2 callers
Function
_on_page_markdown_with_config
( markdown: str, page: Page, *, remove_base64_images: bool = False, **kwargs: Any, )
docs/_scripts/notebook_hooks.py:356
↓ 2 callers
Method
_prepareStateSnapshot
* Prepares a state snapshot from saved checkpoint data. * This is an internal method used by getState and getStateHistory. * * @param config
libs/langgraph-core/src/pregel/index.ts:867
↓ 2 callers
Method
_resolveContent
( baseMsg: BaseMessage, messages?: BaseMessage[], )
libs/sdk-angular/src/tests/fixtures/mock-server.ts:264
↓ 2 callers
Method
_resolveContent
( baseMsg: BaseMessage, messages?: BaseMessage[], )
libs/sdk-svelte/src/tests/fixtures/mock-server.ts:249
↓ 2 callers
Method
_resolveContent
( baseMsg: BaseMessage, messages?: BaseMessage[], )
libs/sdk-vue/src/tests/fixtures/mock-server.ts:250
↓ 2 callers
Method
_sanitizeConfig
(config: RunnableConfig)
libs/langgraph-core/src/pregel/remote.ts:254
↓ 2 callers
Function
_serializeCheckpoint
(payload: StreamCheckpointsOutput<unknown>)
libs/langgraph-core/src/pregel/stream.ts:370
↓ 2 callers
Function
_serializeConfig
(config: unknown)
libs/langgraph-core/src/pregel/stream.ts:354
↓ 2 callers
Function
_serializeInputs
(obj: any)
libs/langgraph-core/src/pregel/remote.ts:66
↓ 2 callers
Method
_validateContext
* Validates the context options for the graph. * @param context - The context options to validate * @returns The validated context options *
libs/langgraph-core/src/pregel/index.ts:2235
↓ 2 callers
Function
_write_html
Write an HTML file in the site_dir with a meta redirect to the new page
docs/_scripts/notebook_hooks.py:407
↓ 2 callers
Function
addImplicitTerminalEndEdges
* Add implicit edges to END for terminal nodes (targets with no outgoing edges). * * Only nodes reached by a non-conditional edge are considered, so
libs/langgraph-core/src/graph/graph.ts:1306
↓ 2 callers
Function
applyCoreEventDelta
( current: CoreContentBlock | undefined, event: Extract<ChatModelStreamEvent, { event: "content-block-delt
libs/sdk/src/client/stream/messages.ts:94
↓ 2 callers
Function
applyEvent
(event: MessagesEvent)
libs/sdk/src/stream/projections/messages.ts:226
↓ 2 callers
Function
applyPluginPrototype
(prototype: object)
libs/langgraph-core/src/graph/zod/plugin.ts:53
↓ 2 callers
Function
applyToolsEvent
(event: ToolsEvent)
libs/sdk/src/stream/projections/tool-calls.ts:35
↓ 2 callers
Function
applyValuesEvent
(event: ValuesEvent)
libs/sdk/src/stream/projections/values.ts:36
↓ 2 callers
Function
arm
()
libs/sdk/src/utils/stream.ts:149
↓ 2 callers
Function
assistantPayload
()
libs/sdk/src/client/assistants/index.test.ts:9
↓ 2 callers
Function
attach
( nextRegistry: ChannelRegistry | null | undefined, nextKey: string )
libs/sdk-angular/src/inject-projection.ts:76
↓ 2 callers
Function
attach
(nextKey: string)
libs/sdk-angular/src/selectors.ts:431
↓ 2 callers
Method
attachEdge
(starts: N | N[] | "__start__", end: N | "__end__")
libs/langgraph-core/src/graph/state.ts:1968
↓ 2 callers
Method
attachNode
(key: N | typeof START, node?: StateGraphNodeSpec<S, U>)
libs/langgraph-core/src/graph/state.ts:1749
↓ 2 callers
Method
batch
* Execute multiple operations in a single batch.
libs/checkpoint-postgres/src/store/index.ts:280
↓ 2 callers
Function
buildCardMessage
()
libs/sdk-react/src/tests/components/InterruptCardStream.tsx:58
↓ 2 callers
Function
buildCardMessage
()
libs/sdk-vue/src/tests/components/InterruptCardStream.tsx:61
↓ 2 callers
Method
buildCardMessage
()
libs/sdk-angular/src/tests/components/InterruptCardStream.ts:82
↓ 2 callers
Function
buildChild
(captured: { ns?: string })
libs/langgraph-core/src/tests/nested-invoke-nesting.test.ts:28
↓ 2 callers
Function
buildCommandResponse
(command: { id?: number; method?: string; })
libs/sdk/src/client/stream/test/mock-protocol-server.ts:141
↓ 2 callers
Method
buildRedisSearchQuery
* Builds a Redis Search query string from filter criteria. * Note: This is limited by RediSearch capabilities and may not support all operators.
libs/checkpoint-redis/src/store.ts:86
↓ 2 callers
Function
buildWorkflow
(addHandoffMessages?: boolean)
libs/langgraph-supervisor/src/tests/supervisor.test.ts:340
↓ 2 callers
Method
calculateExpiresAt
(ttl?: number)
libs/checkpoint-postgres/src/store/modules/database-core.ts:44
↓ 2 callers
Method
callWithOptions
( options: AsyncCallerCallOptions, callable: T, ...args: Parameters<T> )
libs/sdk/src/utils/async_caller.ts:221
↓ 2 callers
Method
cancel
(id: string)
libs/sdk-angular/src/selectors-queue.ts:37
↓ 2 callers
Method
cancelQueueItem
* Cancel and remove a specific pending run from the queue. * If the run exists and a thread is active, the run is also cancelled * on the server
libs/sdk/src/ui/orchestrator.ts:677
↓ 2 callers
Function
channelsOf
()
libs/sdk-angular/src/selectors.ts:409
↓ 2 callers
Function
checkpointNamespaceFromNs
* Split a serialized checkpoint namespace into its path segments. * * Checkpoint namespaces are stored as a single string whose nested levels are *
libs/langgraph-core/src/pregel/loop.ts:200
↓ 2 callers
Method
clearBlockIndexAliases
(activeKey: string)
libs/sdk/src/client/stream/messages.ts:872
↓ 2 callers
Method
clearCache
()
libs/langgraph-core/src/pregel/index.ts:2667
↓ 2 callers
Function
close
()
libs/sdk/src/stream/controller.test.ts:46
↓ 2 callers
Method
close
()
libs/sdk/src/client/stream/index.ts:454
↓ 2 callers
Function
collect
(iterable: AsyncIterable<T>)
libs/sdk/src/client/stream/multi-cursor-buffer.test.ts:7
↓ 2 callers
Function
collectSeqsFromThread
( thread: ReturnType<Client["threads"]["stream"]> )
libs/sdk/src/client/stream/test/reconnect.int.test.ts:45
↓ 2 callers
Function
collectToolEvents
(handleToolErrors: boolean)
libs/langgraph-core/src/tests/pregel.stream.test.ts:744
↓ 2 callers
Function
contentsOf
(msgs: BaseMessage[])
libs/langgraph-core/src/state/schema.test.ts:946
↓ 2 callers
Function
coreBlockDeltaEvent
( index: number, delta: { type: "text-delta"; text: string }, namespace: string[] = [] )
libs/sdk/src/stream/root-message-projection.test.ts:105
↓ 2 callers
Function
createAnyStringSame
()
libs/langgraph-core/src/tests/utils.ts:172
↓ 2 callers
Function
createCapturingMockClient
()
libs/checkpoint-mongodb/src/tests/checkpoints.test.ts:307
↓ 2 callers
Function
createErroringSSEResponseBody
( chunks: Array<{ id?: string; event: string; data: unknown }>, error: Error )
libs/langgraph-core/src/tests/remote-graph-resumable.test.ts:44
↓ 2 callers
Function
createErroringSSEResponseBody
( chunks: Array<{ id?: string; event: string; data: unknown }>, error: Error )
libs/sdk/src/client/runs/stream.test.ts:44
↓ 2 callers
Function
createHandoffTool
({ agentName, description, agentDescription, addHandoffMessages = true, }: { agentName: string; de
libs/langgraph-supervisor/src/handoff.ts:20
↓ 2 callers
Function
createReactAgentAnnotation
()
libs/langgraph-core/src/prebuilt/react_agent_executor.ts:437
↓ 2 callers
Function
createSSEResponseBody
( chunks: Array<{ id?: string; event: string; data: unknown }> )
libs/langgraph-core/src/tests/remote-graph-resumable.test.ts:13
↓ 2 callers
Function
createSubagentStateValues
()
libs/sdk/src/ui/orchestrator.test.ts:73
↓ 2 callers
Function
createSwarm
({ agents, defaultActiveAgent, stateSchema, }: CreateSwarmParams<AnnotationRootT>)
libs/langgraph-swarm/src/swarm.ts:101
↓ 2 callers
Function
createThreadState
(values: TestState)
libs/sdk/src/ui/orchestrator.test.ts:104
← previous
next →
1,001–1,100 of 4,051, ranked by callers