Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/langchain-ai/langgraphjs
/ functions
Functions
4,051 in github.com/langchain-ai/langgraphjs
⨍
Functions
4,051
◇
Types & classes
1,207
↓ 18 callers
Function
createLifecycleTransformer
( options: LifecycleTransformerOptions = {} )
libs/langgraph-core/src/stream/transformers/lifecycle.ts:180
↓ 18 callers
Method
emit
(meta: Meta, data: ChatModelStreamEvent, runId?: string)
libs/langgraph-core/src/pregel/messages-v2.ts:167
↓ 18 callers
Function
fetch
(input, init)
libs/sdk/src/client/stream/transport/http.test.ts:79
↓ 18 callers
Function
isRootNamespace
(namespace: readonly string[])
libs/sdk/src/stream/namespace.ts:13
↓ 18 callers
Method
local
* Create an in-process-only channel. Values remain available through * `run.extensions.<key>` but are not forwarded to remote clients.
libs/langgraph-core/src/stream/stream-channel.ts:83
↓ 17 callers
Function
_runWithRetry
( // eslint-disable-next-line @typescript-eslint/no-explicit-any pregelTask: PregelExecutableTask<N, C>,
libs/langgraph-core/src/pregel/retry.ts:67
↓ 17 callers
Function
assertSafeStorageKey
* Asserts that a value sourced from {@link RunnableConfig.configurable} (or * any other caller-influenced position) is safe to use as a property key
libs/checkpoint/src/memory.ts:60
↓ 17 callers
Function
flushPendingHeadlessToolInterrupts
( values: Record<string, unknown> | null | undefined, tools: HeadlessToolImplementation[] | undefined, h
libs/sdk/src/headless-tools.ts:469
↓ 17 callers
Method
getSubagentsByMessage
* Get all subagents triggered by a specific AI message.
libs/sdk/src/ui/manager.ts:271
↓ 17 callers
Function
installTransformer
( mux: StreamMux, transformer: NativeStreamTransformer<unknown> )
libs/langgraph-core/src/stream/transformers/lifecycle.test.ts:34
↓ 17 callers
Function
isLifecycle
(event: ProtocolEvent)
libs/langgraph-core/src/stream/transformers/lifecycle.test.ts:30
↓ 17 callers
Method
onError
()
libs/sdk/src/client/stream/transport/websocket.ts:185
↓ 17 callers
Method
send
* Sends a command and optionally returns an immediate response. * * @param command - Protocol command to send over the transport.
libs/sdk/src/client/stream/transport.ts:62
↓ 17 callers
Method
setup
()
libs/checkpoint-redis/src/store.ts:380
↓ 17 callers
Function
sleep
(ms: number, signal?: AbortSignal)
libs/langgraph-core/src/tests/timeout.test.ts:32
↓ 16 callers
Function
BytesLineDecoder
()
libs/sdk/src/utils/sse.ts:9
↓ 16 callers
Method
_emit
( values: Array<[StreamMode, unknown]>, namespace: string[] = this.checkpointNamespace )
libs/langgraph-core/src/pregel/loop.ts:1620
↓ 16 callers
Method
create
* Create a run. * * @param threadId The ID of the thread. * @param assistantId Assistant ID to use for this run. * @param payload Payload
libs/sdk/src/client/runs/index.ts:131
↓ 16 callers
Function
drainEvents
(mux: StreamMux)
libs/langgraph-core/src/stream/transformers/lifecycle.test.ts:41
↓ 16 callers
Function
filterHistoryByNext
( history: StateSnapshot[], node: string )
libs/langgraph-core/src/tests/time_travel_helpers.ts:90
↓ 16 callers
Method
matchesFilter
* Evaluates if a document matches the given filter criteria. * Supports advanced operators like $gt, $lt, $in, etc.
libs/checkpoint-redis/src/store.ts:73
↓ 16 callers
Method
revoke
* Revoke the currently-cached object URL (if any). Subsequent * accesses to {@link objectURL} create a fresh URL from the Blob. * Idempotent.
libs/sdk/src/client/stream/media.ts:135
↓ 16 callers
Function
setupValidGraph
()
libs/langgraph-core/src/pregel/validate.test.ts:23
↓ 15 callers
Function
_applyWrites
( checkpoint: Checkpoint, channels: Cc, tasks: WritesProtocol<keyof Cc>[], // eslint-disable-next-line
libs/langgraph-core/src/pregel/algo.ts:269
↓ 15 callers
Function
_getOverwriteValue
( value: unknown )
libs/langgraph-core/src/constants.ts:375
↓ 15 callers
Function
all
(value: T)
libs/langgraph-core/src/tests/interrupt.test-d.ts:8
↓ 15 callers
Method
cancel
(id: string)
libs/sdk-vue/src/selectors.ts:512
↓ 15 callers
Function
checkpointSummary
(history: any[])
libs/langgraph-core/src/tests/time_travel.test.ts:20
↓ 15 callers
Function
createMessagesTransformer
( path: Namespace, nodeFilter?: string )
libs/langgraph-core/src/stream/transformers/messages.ts:43
↓ 15 callers
Function
formatMessage
(message: BaseMessage)
libs/sdk-vue/src/tests/components/format.ts:12
↓ 15 callers
Method
initThreadId
* Trigger initial history fetch for the current thread ID. * Should be called once after construction when the initial threadId is known.
libs/sdk/src/ui/orchestrator.ts:378
↓ 15 callers
Method
recordMessages
* Record metadata for a list of messages. * * Skips messages whose existing entry already matches `metadata`; * those without an `id` (or wit
libs/sdk/src/stream/message-metadata-tracker.ts:245
↓ 15 callers
Method
reset
()
libs/sdk-vue/src/use-video-player.ts:33
↓ 15 callers
Function
serialize
(runnable: Runnable | Promise<Runnable>)
libs/langgraph-core/src/tests/prebuilt.test.ts:3344
↓ 15 callers
Function
streamWithRetry
( makeRequest: (params?: StreamRequestParams) => Promise<{ response: Response; stream: ReadableStrea
libs/sdk/src/utils/stream.ts:219
↓ 15 callers
Method
toolCalls
()
libs/sdk-angular/src/stream-service.ts:84
↓ 15 callers
Method
unsubscribe
()
libs/sdk/src/client/stream/types.ts:170
↓ 14 callers
Function
areSetsEqual
(a: Set<T>, b: Set<T>)
libs/langgraph-core/src/channels/named_barrier_value.ts:4
↓ 14 callers
Method
bufferCheckpoint
* Buffer a `checkpoints` event for later pairing with its values * companion. * * Defensive against missing / malformed payloads: * *
libs/sdk/src/stream/message-metadata-tracker.ts:197
↓ 14 callers
Function
buildCounterGraph
()
libs/langgraph-core/src/tests/pregel.stream.test.ts:42
↓ 14 callers
Method
consumeCheckpoint
* Read-and-clear the buffered checkpoint envelope for `namespace`. * * Always pairs with a single {@link bufferCheckpoint} call: a values * e
libs/sdk/src/stream/message-metadata-tracker.ts:223
↓ 14 callers
Function
createThreadState
( values: Values, overrides: Partial<ThreadState<Values>> = {} )
libs/sdk/src/ui/messages.test.ts:20
↓ 14 callers
Method
extend
* Extends or sets the metadata for a given schema. * @template TValue The value type of the schema. * @template TUpdate The update type of the s
libs/langgraph-core/src/graph/zod/meta.ts:116
↓ 14 callers
Function
gatherStream
(stream: AsyncGenerator<T>)
libs/sdk/src/client/runs/stream.test.ts:75
↓ 14 callers
Function
getCurrentTaskInput
( config?: LangGraphRunnableConfig )
libs/langgraph-core/src/pregel/utils/config.ts:360
↓ 14 callers
Function
isNodeTimeoutError
(e?: unknown)
libs/langgraph-core/src/errors.ts:278
↓ 14 callers
Function
makeRootBus
()
libs/sdk/src/stream/channel-registry.test.ts:20
↓ 14 callers
Function
makeTrace
()
libs/sdk/src/stream/channel-registry.test.ts:55
↓ 14 callers
Function
open
({ thread, store, rootBus })
libs/sdk/src/stream/projections/media.ts:59
↓ 14 callers
Method
registerFromToolCalls
* Register new subagent(s) from AI message tool calls. * * Called when an AI message is received with tool calls. * Creates pending subagent
libs/sdk/src/ui/subagents.ts:564
↓ 14 callers
Method
requestDrain
* Request that the current run drain cooperatively, stopping at the next * superstep boundary. Does not cancel work that is already running. *
libs/langgraph-core/src/pregel/runtime.ts:52
↓ 14 callers
Function
runGraph
( graph: AnyStateGraph, input: Record<string, unknown> )
internal/bench/src/utils.ts:22
↓ 14 callers
Method
setThreadId
* Rebind this transport to a different thread. * * `client.threads.stream(threadId, { transport })` calls this (when * implemented) whenever
libs/sdk/src/client/stream/transport.ts:51
↓ 14 callers
Method
update
(values: Value[])
libs/langgraph-core/src/channels/last_value.ts:34
↓ 14 callers
Function
validateNamespace
(namespace: string[])
libs/checkpoint-postgres/src/store/modules/utils.ts:20
↓ 14 callers
Function
withLangGraph
( schema: TSchema, meta: SchemaMeta<TValue, TUpdate> )
libs/langgraph-core/src/graph/zod/meta.ts:284
↓ 13 callers
Function
_isSend
(x: unknown)
libs/langgraph-core/src/constants.ts:283
↓ 13 callers
Function
coerceTimeoutPolicy
( value?: number | TimeoutPolicy )
libs/langgraph-core/src/pregel/utils/timeout.ts:68
↓ 13 callers
Function
createSSEResponseBody
( chunks: Array<{ id?: string; event: string; data: unknown }> )
libs/sdk/src/client/runs/stream.test.ts:13
↓ 13 callers
Method
getThread
* Returns the bound {@link ThreadStream}, if one exists (`undefined` * until the thread is hydrated or the first submit completes). Prefer * the
libs/sdk-vue/src/use-stream.ts:375
↓ 13 callers
Function
inferChannel
(event: MatchableEvent)
libs/langgraph-core/src/stream/subscription.ts:148
↓ 13 callers
Function
initializeAsyncLocalStorageSingleton
()
libs/langgraph-core/src/tests/browser.ts:48
↓ 13 callers
Function
isGetter
(input: ValueOrGetter<T> | undefined)
libs/sdk-svelte/src/selectors.svelte.ts:92
↓ 13 callers
Function
lifecycleEvent
( namespace: readonly string[], event: "started" | "completed" | "failed", seq = 1 )
libs/sdk/src/stream/discovery/subgraphs.test.ts:6
↓ 13 callers
Function
makeEvent
( method: string, ns: Namespace = [], seq = 0 )
libs/langgraph-core/src/stream/transformers/subgraphs.test.ts:30
↓ 13 callers
Function
makeStore
()
libs/sdk/src/stream/lifecycle-loading-tracker.test.ts:12
↓ 13 callers
Function
makeThread
(name = "thread")
libs/sdk/src/stream/channel-registry.test.ts:27
↓ 13 callers
Function
mapCommand
( cmd: Command, pendingWrites: CheckpointPendingWrite[] )
libs/langgraph-core/src/pregel/io.ts:71
↓ 13 callers
Function
messagesDeltaReducer
( state: BaseMessage[], writes: Messages[] )
libs/langgraph-core/src/graph/messages_reducer.ts:164
↓ 13 callers
Function
nsState
(ns: string)
libs/sdk/src/stream/discovery/namespace-from-history.test.ts:284
↓ 13 callers
Method
putWrites
* Put writes for a task, to be read by the next tick. * @param taskId * @param writes
libs/langgraph-core/src/pregel/loop.ts:742
↓ 13 callers
Function
resolveNamespace
(target: SelectorTarget)
libs/sdk-svelte/src/selectors.svelte.ts:77
↓ 13 callers
Method
setBranch
* Set the active branch and notify listeners if the value changed. * * @param value - The branch identifier to switch to.
libs/sdk/src/ui/orchestrator.ts:397
↓ 13 callers
Method
start
(controller)
libs/sdk/src/client/stream/transport/http.ts:292
↓ 13 callers
Method
start
* Initialize the store: creates the {namespace, key} unique index and an optional * TTL index.
libs/checkpoint-mongodb/src/store.ts:724
↓ 13 callers
Method
toBeInterrupted
()
libs/langgraph-core/src/tests/matchers/interrupt.ts:45
↓ 13 callers
Function
useStreamContext
()
libs/sdk-react/src/context.tsx:115
↓ 13 callers
Function
useToolCalls
( stream: AnyStream, target?: SelectorTarget )
libs/sdk-react/src/selectors.ts:210
↓ 13 callers
Function
useValues
( stream: AnyStream, target?: SelectorTarget, options?: { messagesKey?: string } )
libs/sdk-react/src/selectors.ts:266
↓ 12 callers
Method
#getMessages
(value: StateType)
libs/sdk/src/ui/orchestrator.ts:412
↓ 12 callers
Method
#send
( method: TMethod, params: CommandParamsMap[TMethod] )
libs/sdk/src/client/stream/index.ts:2430
↓ 12 callers
Method
bindTools
(tools: BindToolsInput[])
internal/bench/src/utils.ts:114
↓ 12 callers
Function
createStream
(chunks: Uint8Array[])
libs/sdk/src/utils/sse.test.ts:17
↓ 12 callers
Function
dispose
()
libs/sdk/src/stream/projections/media.ts:78
↓ 12 callers
Function
ensureMessageInstances
( messages: (Message | BaseMessage)[] )
libs/sdk/src/ui/messages.ts:155
↓ 12 callers
Function
getNode
(name: string)
libs/langgraph-core/src/tests/python_port/graph_structure.test.ts:49
↓ 12 callers
Function
getStringConfigValue
( name: string, value: unknown, { required = false }: { required?: boolean } = {} )
libs/checkpoint-mongodb/src/checkpoint.ts:34
↓ 12 callers
Function
hasPrefix
(ns: Namespace, prefix: Namespace)
libs/langgraph-core/src/stream/mux.ts:538
↓ 12 callers
Function
isDeltaSnapshot
( value: unknown )
libs/checkpoint/src/serde/types.ts:35
↓ 12 callers
Function
makeGraph
()
libs/langgraph-core/src/state/schema.test.ts:951
↓ 12 callers
Function
makeTask
* Build a minimal {@link PregelExecutableTask} that runs `func` and routes its * writes (via CONFIG_KEY_SEND) into the same `writes` buffer exposed a
libs/langgraph-core/src/tests/timeout.test.ts:53
↓ 12 callers
Function
mapDebugTasks
( tasks: readonly PregelExecutableTask<N, C>[] )
libs/langgraph-core/src/pregel/debug.ts:116
↓ 12 callers
Function
onFinishRequiresThreadState
(onFinish: unknown)
libs/sdk/src/ui/utils.ts:11
↓ 12 callers
Method
respond
(params: InputRespondParams)
libs/sdk/src/client/stream/types.ts:180
↓ 12 callers
Method
wireChannels
* Scans a transformer projection for streaming and final-value primitives. * Remote stream channels are wired to auto-forward to the protocol event
libs/langgraph-core/src/stream/mux.ts:239
↓ 11 callers
Function
_getModel
( llm: LanguageModelLike | ConfigurableModelInterface )
libs/langgraph-core/src/prebuilt/react_agent_executor.ts:380
↓ 11 callers
Function
createFetchRecorder
(options?: { response?: Response; error?: Error; })
libs/sdk/src/client/stream/transport/test-helpers.ts:23
↓ 11 callers
Function
createSSEStream
( chunks: Array<{ id?: string; event: string; data: unknown }> )
libs/sdk/src/utils/stream-retry.test.ts:12
↓ 11 callers
Function
findHistoryByNext
( history: StateSnapshot[], node: string )
libs/langgraph-core/src/tests/time_travel_helpers.ts:83
↓ 11 callers
Method
fromConnString
* Creates a PostgresStore instance from a connection string.
libs/checkpoint-postgres/src/store/index.ts:187
← previous
next →
201–300 of 4,051, ranked by callers