MCPcopy Create free account

hub / github.com/langchain-ai/langgraph / functions

Functions7,100 in github.com/langchain-ai/langgraph

↓ 2 callersFunction_init_base_manager
( manager: BaseCallbackManager, handlers: Sequence[GraphCallbackHandler] | None, inheritable_handl
libs/langgraph/langgraph/callbacks.py:123
↓ 2 callersMethod_inject_tool_args
Inject graph state, store, and runtime into tool call arguments. This is an internal method that enables tools to access graph context that
libs/prebuilt/langgraph/prebuilt/tool_node.py:1315
↓ 2 callersMethod_insertinmem_store
( self, to_embed: dict[str, list[tuple[tuple[str, ...], str, str]]], embeddings: list[
libs/checkpoint/langgraph/store/memory/__init__.py:446
↓ 2 callersFunction_is_always_excluded
Whether `path` lives inside a built-in excluded directory.
libs/cli/langgraph_cli/_ignore.py:59
↓ 2 callersFunction_is_field_channel
(typ: type[Any])
libs/langgraph/langgraph/graph/state.py:1876
↓ 2 callersMethod_is_first_visit
Return True the first time a subgraph namespace is seen. The task-id suffix is stripped so that the same logical subgraph (e.g. ``"su
libs/langgraph/langgraph/_internal/_replay.py:34
↓ 2 callersFunction_is_not_empty
(value: Any)
libs/langgraph/langgraph/_internal/_config.py:315
↓ 2 callersFunction_is_optional_type
Check if a type is Optional.
libs/langgraph/langgraph/_internal/_fields.py:15
↓ 2 callersFunction_is_safe_json_type
Return True if an lc=2 id refers to a type in SAFE_MSGPACK_TYPES. Safe types bypass the ``allowed_json_modules`` gate so that old "json" format
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:60
↓ 2 callersFunction_list_tool_call
(outer_id: str = "call-1")
libs/prebuilt/tests/test_tool_node.py:2249
↓ 2 callersMethod_load_checkpoint_tuple
Convert a database row into a CheckpointTuple object. Args: value: A row from the database containing checkpoint data.
libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:560
↓ 2 callersMethod_load_checkpoint_tuple
Convert a database row into a CheckpointTuple object. Args: value: A row from the database containing checkpoint data.
libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:503
↓ 2 callersFunction_lookup_module_and_qualname
( obj: Any, name: str | None = None )
libs/langgraph/langgraph/pregel/_call.py:113
↓ 2 callersMethod_make_child
Build a mini-mux with the same factories scoped to `scope`. Used by `SubgraphTransformer` to attach a fresh transformer pipeline to e
libs/langgraph/langgraph/stream/_mux.py:193
↓ 2 callersFunction_make_custom_graph
()
libs/langgraph/tests/test_stream_events_v3.py:110
↓ 2 callersFunction_make_custom_writer_graph
Graph where a node emits custom stream events via StreamWriter.
libs/langgraph/tests/test_stream_events_v3_e2e.py:132
↓ 2 callersFunction_make_handle
Build a synthetic EventStreamHandle for reconnect tests. Returns the handle and the underlying queue so callers can inject events or the end
libs/sdk-py/tests/streaming/test_shared_stream.py:207
↓ 2 callersFunction_make_messages_graph
()
libs/langgraph/tests/test_stream_events_v3.py:95
↓ 2 callersFunction_make_messages_subgraph
Outer graph with a MessagesState subgraph that returns an AIMessage. Uses the whole-message fallback path (node returns AIMessage directly) t
libs/langgraph/tests/test_stream_events_v3_e2e.py:96
↓ 2 callersMethod_make_mux
( self, )
libs/langgraph/tests/test_stream_messages_transformer.py:481
↓ 2 callersMethod_make_stream
Create a ChatModelStream (sync) or AsyncChatModelStream (async). Wires whichever pump is bound. Prefers the async pump so nested iter
libs/langgraph/langgraph/stream/transformers.py:229
↓ 2 callersFunction_make_subgraph
()
libs/langgraph/tests/test_stream_events_v3.py:120
↓ 2 callersFunction_make_two_level_nested
outer → middle → inner. Three Pregel instances, two nesting levels.
libs/langgraph/tests/test_stream_subgraph_transformer.py:695
↓ 2 callersFunction_make_two_level_nested
Build outer → middle → inner. Three Pregel instances, two nesting levels.
libs/langgraph/tests/test_stream_lifecycle_transformer.py:346
↓ 2 callersFunction_make_two_sibling_subgraphs
outer → one → two, where both nodes are compiled subgraphs.
libs/langgraph/tests/test_stream_subgraph_transformer.py:723
↓ 2 callersFunction_map_status_error
(response: httpx.Response, body: object | None)
libs/sdk-py/langgraph_sdk/errors.py:190
↓ 2 callersFunction_merge_metadata
Merge metadata without mutating inputs. Top-level keys merge with newer values winning. `lc_versions` is the only mapping-valued key that mer
libs/langgraph/langgraph/_internal/_config.py:87
↓ 2 callersFunction_message_event_id
(data: dict[str, Any])
libs/sdk-py/langgraph_sdk/stream/decoders.py:59
↓ 2 callersFunction_message_route_key
Return the routing key for a message-channel event in `active`. Keys on `message_id` when available so concurrent messages that share the sam
libs/sdk-py/langgraph_sdk/_async/stream.py:495
↓ 2 callersFunction_message_route_key
Return the routing key for a message-channel event in `active`. Keys on `message_id` when available so concurrent messages that share the sam
libs/sdk-py/langgraph_sdk/_sync/stream.py:132
↓ 2 callersFunction_messages_delta_reducer
**Experimental.** Batch reducer for use with `DeltaChannel`. Processes all writes in one pass — dedup by ID, `RemoveMessage` tombstoning — wi
libs/langgraph/langgraph/graph/message.py:247
↓ 2 callersFunction_messages_event
(namespace: list[str], data: Any)
libs/langgraph/tests/test_stream_before_builtins.py:27
↓ 2 callersFunction_namespace_match_pattern
Build a regex matching the dot-joined prefix on whole namespace segments. Needed because neither LIKE nor GLOB can express "any character except
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:141
↓ 2 callersFunction_namespace_match_pattern
Build a POSIX regex matching the dot-joined prefix on whole segments. Needed because `LIKE` cannot express "any character except the separator".
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1311
↓ 2 callersFunction_namespace_prefix_condition
Build the SQL scoping a search to a namespace and its descendants. Matches the namespace exactly or requires the `.` separator before any rem
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:120
↓ 2 callersFunction_namespaces
(prefix: tuple[str, ...])
libs/checkpoint-sqlite/tests/test_store.py:1270
↓ 2 callersFunction_namespaces
(prefix: tuple[str, ...])
libs/checkpoint-postgres/tests/test_store.py:373
↓ 2 callersFunction_needs_a_listener
(err: HostBackendError)
libs/cli/langgraph_cli/deploy.py:1512
↓ 2 callersFunction_normalize_allowlist
( allowlist: AllowedMsgpackModules | Literal[True] | None, )
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:863
↓ 2 callersFunction_normalize_module_keys
( modules: AllowedMsgpackModules, )
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:874
↓ 2 callersMethod_normalize_tool_response
Validate and normalize a tool's raw return value.
libs/prebuilt/langgraph/prebuilt/tool_node.py:1432
↓ 2 callersMethod_observe_seq
(self, seq: Any)
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:242
↓ 2 callersMethod_observe_seq
(self, seq: Any)
libs/sdk-py/langgraph_sdk/stream/controller.py:376
↓ 2 callersFunction_operators_equal
Return True if two reducer operators should be considered equal. Lambdas all share the name '<lambda>' so identity comparison is unreliable;
libs/langgraph/langgraph/channels/binop.py:54
↓ 2 callersFunction_output
( stream_mode: StreamMode | Sequence[StreamMode], print_mode: StreamMode | Sequence[StreamMode], s
libs/langgraph/langgraph/pregel/main.py:4249
↓ 2 callersFunction_panic_or_proceed
Cancel remaining tasks if any failed, re-raise exception if panic is True.
libs/langgraph/langgraph/pregel/_runner.py:652
↓ 2 callersMethod_parse_input
( self, input: list[AnyMessage] | dict[str, Any] | BaseModel, )
libs/prebuilt/langgraph/prebuilt/tool_node.py:1224
↓ 2 callersFunction_parse_node_version
Parse a Node.js version string into a major version number.
libs/cli/langgraph_cli/config.py:206
↓ 2 callersFunction_parse_version
(version: str)
libs/cli/langgraph_cli/docker.py:36
↓ 2 callersMethod_pop_lifecycle_event
(self)
libs/langgraph/langgraph/pregel/_loop.py:425
↓ 2 callersMethod_pop_terminal_transitions
Return and remove tracked children closed by this task result.
libs/langgraph/langgraph/stream/transformers.py:548
↓ 2 callersMethod_prepare_batch_PUT_queries
( self, put_ops: Sequence[tuple[int, PutOp]] )
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:338
↓ 2 callersMethod_prepare_batch_PUT_queries
( self, put_ops: Sequence[tuple[int, PutOp]], )
libs/checkpoint-postgres/langgraph/store/postgres/base.py:311
↓ 2 callersMethod_prepare_batch_search_queries
Build per-SearchOp SQL queries (with optional TTL refresh flag) plus embedding requests. Returns: - queries: list of (SQL, pa
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:436
↓ 2 callersMethod_prepare_batch_search_queries
Build per-SearchOp SQL queries (with optional TTL refresh) plus embedding requests. Returns: - queries: list of (SQL, param_l
libs/checkpoint-postgres/langgraph/store/postgres/base.py:425
↓ 2 callersMethod_prepare_ops
( self, ops: Iterable[Op] )
libs/checkpoint/langgraph/store/memory/__init__.py:375
↓ 2 callersMethod_prepare_state_snapshot
Build a `StateSnapshot` from a saved checkpoint and its pending writes. With `live=True` the snapshot shows current status: values include th
libs/langgraph/langgraph/pregel/main.py:1209
↓ 2 callersFunction_print_entries
(entries: list[dict], *, reverse: bool = False)
libs/cli/langgraph_cli/deploy.py:2625
↓ 2 callersMethod_publish
(self, ctx: DeployContext, step: int)
libs/cli/langgraph_cli/deploy.py:1688
↓ 2 callersMethod_push_delta
(self, delta: str)
libs/sdk-py/langgraph_sdk/_async/stream.py:1016
↓ 2 callersMethod_push_graph_lifecycle_event
( self, kind: Literal["resume", "interrupt"], *, interrupts: tuple[Interrupt,
libs/langgraph/langgraph/pregel/_loop.py:391
↓ 2 callersFunction_push_image
( runner: CommandRunner, image: str, *, docker_config_dir: str | None, verbose: bool, )
libs/cli/langgraph_cli/deploy.py:1202
↓ 2 callersFunction_raise_missing_projection
Raise after normal attribute lookup fails for a projection. Registered native projections are installed directly on the run instance during `
libs/langgraph/langgraph/stream/run_stream.py:36
↓ 2 callersMethod_reconcile_stream
Ensure the shared SSE covers `candidate_filter`. Rotate if not. Open-new-before-close-old: any events buffered server-side between th
libs/sdk-py/langgraph_sdk/stream/controller.py:319
↓ 2 callersMethod_reconnect_shared_stream
(self)
libs/sdk-py/langgraph_sdk/stream/sync_controller.py:202
↓ 2 callersMethod_reconnect_shared_stream
Attempt to reopen the shared stream after a transport drop. Returns True if a new stream was successfully opened, False if all reconn
libs/sdk-py/langgraph_sdk/stream/controller.py:284
↓ 2 callersMethod_record_identity
Record this namespace's `lc_agent_name` (first task event wins). Runs for every task-start event, including `ns == self.scope` and tr
libs/langgraph/langgraph/stream/transformers.py:475
↓ 2 callersMethod_record_pending_tool_calls
Harvest a task's triggering tool_call_id keyed by its task id. A tool-dispatch task seeds `task_id -> tool_call_id`; the spawned subg
libs/langgraph/langgraph/stream/transformers.py:488
↓ 2 callersMethod_register_active_tool_call
(self, handle: ToolCallHandle)
libs/sdk-py/langgraph_sdk/_async/stream.py:1356
↓ 2 callersMethod_register_active_tool_call
(self, handle: SyncToolCallHandle)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1243
↓ 2 callersMethod_register_descendant
Register a newly-discovered grandchild so future events are fanned out. Also drains any events already buffered in this handle's inboxes whos
libs/sdk-py/langgraph_sdk/_sync/stream.py:681
↓ 2 callersFunction_reject_v3_invariant_kwargs
(kwargs: dict[str, Any])
libs/langgraph/langgraph/pregel/main.py:393
↓ 2 callersFunction_remap_field_definitions
This remaps fields to avoid colliding with internal pydantic fields.
libs/langgraph/langgraph/_internal/_pydantic.py:152
↓ 2 callersFunction_require_saver_for_history
( delta_channels: list[str], saver: BaseCheckpointSaver | None, config: RunnableConfig | None, )
libs/langgraph/langgraph/pregel/_checkpoint.py:375
↓ 2 callersMethod_reset_writer
(token: Token[ToolCallWriter | None])
libs/langgraph/langgraph/pregel/_tools.py:214
↓ 2 callersMethod_resolve_checkpointer
The saver runs and state methods use: none for `checkpointer=False`, else the one a parent lends a subgraph through the config, else this
libs/langgraph/langgraph/pregel/main.py:844
↓ 2 callersFunction_resolve_model
Resolve the model to use, handling both static and dynamic models.
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:599
↓ 2 callersFunction_resolve_or_create
( ctx: DeployContext, *, source: SourceName, not_found_message: str )
libs/cli/langgraph_cli/deploy.py:1472
↓ 2 callersFunction_resolve_parent_ns
Return the checkpoint namespace the caller is running under. `stream_events(version="v3")` uses this to scope its native projections (`Values
libs/langgraph/langgraph/pregel/main.py:4336
↓ 2 callersFunction_rewrite_uv_lock_import_path
( config_path: pathlib.Path, import_str: str, plan: UvLockPlan, *, label: str, )
libs/cli/langgraph_cli/uv_lock.py:739
↓ 2 callersFunction_row_to_item
Convert a row from the database into an Item.
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:208
↓ 2 callersFunction_row_to_item
Convert a row from the database into an Item. Args: namespace: Item namespace row: Database row loader: Optional value lo
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1331
↓ 2 callersFunction_row_to_search_item
Convert a row from the database into a SearchItem.
libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:230
↓ 2 callersFunction_row_to_search_item
Convert a row from the database into an Item.
libs/checkpoint-postgres/langgraph/store/postgres/base.py:1359
↓ 2 callersMethod_send_command
Send a protocol command and return the `result` payload. Returns `{}` for 202/204 responses (no body). Raises `RuntimeError` with the
libs/sdk-py/langgraph_sdk/_async/stream.py:1783
↓ 2 callersMethod_send_command
Send a protocol command and return the `result` payload.
libs/sdk-py/langgraph_sdk/_sync/stream.py:1471
↓ 2 callersFunction_send_from_args
(args: Sequence[Any])
libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:537
↓ 2 callersFunction_should_bind_tools
( model: LanguageModelLike, tools: Sequence[BaseTool], num_builtin: int = 0 )
libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:173
↓ 2 callersFunction_should_stop_others
Check if any task failed, if so, cancel all other tasks. GraphInterrupts are not considered failures.
libs/langgraph/langgraph/pregel/_runner.py:618
↓ 2 callersMethod_signal_paused
Wake every active projection iterator on interrupt / run end. Pushes the terminal sentinel (`None`) into every subscription queue. It
libs/sdk-py/langgraph_sdk/_async/stream.py:1367
↓ 2 callersFunction_step_args
( thread_id: str, step: int, parent: dict | None )
libs/checkpoint-postgres/tests/test_delta_pagination.py:31
↓ 2 callersFunction_store_memory
()
libs/langgraph/tests/conftest_store.py:12
↓ 2 callersFunction_store_memory
()
libs/prebuilt/tests/conftest_store.py:12
↓ 2 callersMethod_stream_part
( self, method: str, data: Any, namespace: tuple[str, ...] = () )
libs/langgraph/tests/test_pregel_stream_events_v3.py:1002
↓ 2 callersFunction_strip_extras
Strips Annotated, Required and NotRequired from a given type.
libs/langgraph/langgraph/channels/binop.py:22
↓ 2 callersFunction_subgraph_subscription_params
(scope: tuple[str, ...])
libs/sdk-py/langgraph_sdk/_async/stream.py:533
↓ 2 callersFunction_subgraph_subscription_params
(scope: tuple[str, ...])
libs/sdk-py/langgraph_sdk/_sync/stream.py:117
↓ 2 callersMethod_subscription_iter
( self, params: SubscribeParams )
libs/sdk-py/langgraph_sdk/_async/stream.py:1588
↓ 2 callersMethod_subscription_iter
(self, params: SubscribeParams)
libs/sdk-py/langgraph_sdk/_sync/stream.py:1456
↓ 2 callersFunction_sync_assistants
(raw)
libs/sdk-py/tests/integration/test_assistants.py:27
← previousnext →901–1,000 of 7,100, ranked by callers