Repository Analysis

langchain-ai/langgraph

Build resilient agents.

34.5 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of langchain-ai/langgraph, a Python project with 37,252 GitHub stars. SynthScan v2.0 examined 196,060 lines of code across 563 source files, recording 4162 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 34.5 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

34.5
Adjusted Score
34.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
37.3K
Stars
Python
Language
196.1K
Lines of Code
563
Files
4.2K
Pattern Hits
2026-07-14
Scan Date
0.67
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 378MEDIUM 540LOW 3244

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4162 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2242 hits · 1879 pts
SeverityFileLineSnippetContext
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py444 def get_delta_channel_history(CODE
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py405 async def aget_delta_channel_history(CODE
LOW…ckpoint-postgres/langgraph/checkpoint/postgres/base.py412 def _build_delta_channels_writes_history(CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py530 async def _batch_list_namespaces_ops(STRING
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1073 def _batch_list_namespaces_ops(CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py411 def _prepare_batch_search_queries(STRING
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py568 def _get_batch_list_namespaces_queries(STRING
LOWlibs/checkpoint-postgres/tests/test_sync.py285def test_pending_sends_migration(saver_name: str) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_sync.py334def test_get_checkpoint_no_channel_values(CODE
LOWlibs/checkpoint-postgres/tests/test_sync.py351 def patched_load_checkpoint_tuple(value):CODE
LOWlibs/checkpoint-postgres/tests/test_async.py297async def test_pending_sends_migration(saver_name: str) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async.py346async def test_get_checkpoint_no_channel_values(CODE
LOWlibs/checkpoint-postgres/tests/test_async.py364 async def patched_load_checkpoint_tuple(value):CODE
LOWlibs/checkpoint-postgres/tests/test_async.py377async def test_delta_channel_chain_reconstruction(saver_name: str) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py220def test_batch_list_namespaces_ops(store: PostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py454def test_vector_store_initialization(CODE
LOWlibs/checkpoint-postgres/tests/test_store.py464def test_vector_insert_with_auto_embedding(vector_store: PostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py486def test_vector_update_with_embedding(vector_store: PostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py515def test_vector_search_with_filters(CODE
LOWlibs/checkpoint-postgres/tests/test_store.py559def test_vector_search_pagination(vector_store: PostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py578def test_vector_search_edge_cases(vector_store: PostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_store.py606def test_embed_with_path_sync(CODE
LOWlibs/checkpoint-postgres/tests/test_store.py678def test_embed_with_path_operation_config(CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py335async def test_batch_list_namespaces_ops(store: AsyncPostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py379async def test_abatch_uses_single_pool_checkout(monkeypatch) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py474async def test_vector_store_initialization(CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py484async def test_vector_insert_with_auto_embedding(CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py508async def test_vector_update_with_embedding(vector_store: AsyncPostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py540async def test_vector_search_with_filters(vector_store: AsyncPostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py577async def test_vector_search_pagination(vector_store: AsyncPostgresStore) -> None:CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py597async def test_vector_search_edge_cases(vector_store: AsyncPostgresStore) -> None:CODE
LOWlibs/langgraph/langgraph/types.py107def ensure_valid_checkpointer(checkpointer: Checkpointer) -> Checkpointer:CODE
LOWlibs/langgraph/langgraph/callbacks.py154def _configure_graph_callbacks(CODE
LOWlibs/langgraph/langgraph/callbacks.py363def get_sync_graph_callback_manager_for_config(CODE
LOWlibs/langgraph/langgraph/callbacks.py380def get_async_graph_callback_manager_for_config(CODE
LOWlibs/langgraph/langgraph/pregel/_call.py113def _lookup_module_and_qualname(CODE
LOWlibs/langgraph/langgraph/pregel/_call.py157def _explode_args_trace_inputs(CODE
LOWlibs/langgraph/langgraph/pregel/_call.py175def get_runnable_for_entrypoint(func: Callable[..., Any]) -> Runnable:CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py770def _read_errors_from_pending_writes(CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py780def _read_error_for_task_id_from_pending_writes(CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py789def _read_error_source_node_from_pending_writes(CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py800def prepare_push_task_functional(CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py1110def prepare_node_error_handler_task(CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py1442def sanitize_untracked_values_in_send(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py50def delta_channels_to_snapshot(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py74def get_updated_channels_from_tasks(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py81def get_delta_channels_from_all_channels(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py92def create_metadata_for_update_state_api(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py117def create_checkpoint_plan_for_update_state_api(CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py280async def achannels_from_checkpoint(CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py376 def _push_graph_lifecycle_event(CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py736 def _reapply_writes_to_succeeded_nodes(CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py751 def _resume_error_handlers_if_applicable(self) -> None:CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1530 def _checkpointer_put_after_previous(CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1783 async def _checkpointer_put_after_previous(CODE
LOWlibs/langgraph/langgraph/pregel/debug.py74def is_multiple_channel_write(value: Any) -> bool:CODE
LOWlibs/langgraph/langgraph/pregel/main.py417def _normalize_stream_transformer_factories(CODE
LOWlibs/langgraph/langgraph/pregel/main.py838 def _apply_checkpointer_allowlist(CODE
LOWlibs/langgraph/langgraph/pregel/main.py2888 def emit_graph_lifecycle_events(loop: SyncPregelLoop) -> None:CODE
LOWlibs/langgraph/langgraph/pregel/main.py3331 async def aemit_graph_lifecycle_events(loop: AsyncPregelLoop) -> None:CODE
2182 more matches not shown…
Decorative Section Separators409 hits · 1440 pts
SeverityFileLineSnippetContext
MEDIUMlibs/langgraph/langgraph/pregel/_tools.py224 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/pregel/_tools.py226 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_types.py229 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_types.py231 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py158 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py160 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py347 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py349 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py460 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/_mux.py462 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py85 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py87 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py108 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py110 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py116 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py118 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py155 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py157 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py198 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py200 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py241 # ------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/langgraph/stream/stream_channel.py243 # ------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py186# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py188# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py681# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/langgraph/tests/test_stream_subgraph_transformer.py683# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_retry.py1802# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_retry.py1809# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_retry.py2304# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_retry.py2306# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py73# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py236# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py459# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py461# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py591# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py593# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py722# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py724# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py1993# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py1995# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2135# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2137# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2227# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2229# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2398# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_time_travel_async.py2400# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py182# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py184# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py239# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py241# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py304# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py306# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py380# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/langgraph/tests/test_stream_data_transformers.py382# ---------------------------------------------------------------------------COMMENT
349 more matches not shown…
Cross-Language Confusion247 hits · 1422 pts
SeverityFileLineSnippetContext
HIGH…ckpoint-postgres/langgraph/checkpoint/postgres/base.py77 "ALTER TABLE checkpoint_blobs ALTER COLUMN blob DROP not null;",CODE
HIGHlibs/langgraph/langgraph/pregel/_loop.py1698 self.stack.push(self._suppress_interrupt)CODE
HIGHlibs/langgraph/langgraph/pregel/_loop.py1958 self.stack.push(self._suppress_interrupt)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py81 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py116 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py151 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py313 self._log.push(stream)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py328 self._log.push(stream)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py656 self._channel.push(payload)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py667 self._channel.push(payload)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py736 self._log.push(handle)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py820 handle._mux.push(event)CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py962 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py998 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/transformers.py1038 self._log.push(params["data"])CODE
HIGHlibs/langgraph/langgraph/stream/run_stream.py121 self._mux.push(event)CODE
HIGHlibs/langgraph/langgraph/stream/_mux.py296 self._events.push(event)CODE
HIGHlibs/langgraph/langgraph/stream/_mux.py378 self._events.push(event)CODE
HIGHlibs/langgraph/langgraph/stream/_mux.py523 self._events.push(event)CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py193 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py205 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py206 mux.push(_tasks_result([], task_id="abc", name="agent"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py215 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py216 mux.push(_tasks_result([], task_id="abc", name="agent", error="boom"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py225 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py226 mux.push(CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py243 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py250 mux.push(_tasks_start(["agent:abc", "tool:def"], task_id="t2", name="deep"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py262 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py271 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py280 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py299 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py300 mux.push(_tasks_result([], task_id="abc", name="agent", error="boom"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py316 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py317 mux.push(_tasks_result([], task_id="abc", name="agent"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py357 mux.push(_tasks_start(["agent:abc"], task_id="t1", name="tool"))CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py368 mux.push(event)CODE
HIGH…bs/langgraph/tests/test_stream_subgraph_transformer.py134 Mini-muxes are created during `mux.push(...)` when a new directSTRING
HIGHlibs/langgraph/tests/test_stream_data_transformers.py99 mux.push(_custom_event([], {"status": "processing"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py100 mux.push(_custom_event([], {"status": "done"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py111 mux.push(_custom_event(["subgraph:abc"], {"from": "child"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py121 mux.push(_custom_event([], {"from": "root"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py122 mux.push(_custom_event(["agent:abc"], {"from": "self"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py123 mux.push(_custom_event(["agent:abc", "deep:def"], {"from": "child"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py134 mux.push(_custom_event([], "string_payload"))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py135 mux.push(_custom_event([], 42))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py136 mux.push(_custom_event([], [1, 2, 3]))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py146 mux.push(_custom_event([], "data"))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py157 mux.push(CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py193 mux.push(_checkpoints_event([], checkpoint_data))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py204 mux.push(_checkpoints_event(["child:abc"], {"values": {"x": 1}}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py214 mux.push(_checkpoints_event([], {"from": "root"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py215 mux.push(_checkpoints_event(["sub:abc"], {"from": "self"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py225 mux.push(_checkpoints_event([], {"values": {}}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py255 mux.push(_debug_event([], debug_data))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py266 mux.push(_debug_event(["child:abc"], {"step": 0, "type": "task"}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py276 mux.push(_debug_event([], {"step": 0, "type": "checkpoint", "payload": {}}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py277 mux.push(_debug_event([], {"step": 1, "type": "task", "payload": {}}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py278 mux.push(_debug_event([], {"step": 1, "type": "task_result", "payload": {}}))CODE
HIGHlibs/langgraph/tests/test_stream_data_transformers.py290 mux.push(_debug_event([], {"step": 0}))CODE
187 more matches not shown…
Cross-File Repetition93 hits · 465 pts
SeverityFileLineSnippetContext
HIGH…oint-postgres/langgraph/checkpoint/postgres/shallow.py0set up the store database. this method creates the necessary tables in the postgres database if they don't already existSTRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py0set up the store database. this method creates the necessary tables in the postgres database if they don't already existSTRING
HIGH…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py0set up the store database. this method creates the necessary tables in the postgres database if they don't already existSTRING
HIGH…bs/checkpoint-postgres/langgraph/store/postgres/aio.py0set up the store database. this method creates the necessary tables in the postgres database if they don't already existSTRING
HIGH…s/checkpoint-postgres/langgraph/store/postgres/base.py0set up the store database. this method creates the necessary tables in the postgres database if they don't already existSTRING
HIGH…oint-postgres/langgraph/checkpoint/postgres/shallow.py0create a database cursor as a context manager. args: pipeline: whether to use pipeline for the db operations inside the STRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py0create a database cursor as a context manager. args: pipeline: whether to use pipeline for the db operations inside the STRING
HIGH…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py0create a database cursor as a context manager. args: pipeline: whether to use pipeline for the db operations inside the STRING
HIGH…bs/checkpoint-postgres/langgraph/store/postgres/aio.py0create a database cursor as a context manager. args: pipeline: whether to use pipeline for the db operations inside the STRING
HIGH…s/checkpoint-postgres/langgraph/store/postgres/base.py0create a database cursor as a context manager. args: pipeline: whether to use pipeline for the db operations inside the STRING
HIGH…oint-postgres/langgraph/checkpoint/postgres/shallow.py0store intermediate writes linked to a checkpoint asynchronously. this method saves intermediate writes associated with aSTRING
HIGH…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py0store intermediate writes linked to a checkpoint asynchronously. this method saves intermediate writes associated with aSTRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py0store intermediate writes linked to a checkpoint asynchronously. this method saves intermediate writes associated with aSTRING
HIGH…s/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py0store intermediate writes linked to a checkpoint asynchronously. this method saves intermediate writes associated with aSTRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py0delete all checkpoints and writes associated with a thread id. args: thread_id: the thread id to delete. returns: noneSTRING
HIGH…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py0delete all checkpoints and writes associated with a thread id. args: thread_id: the thread id to delete. returns: noneSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/memory/__init__.py0delete all checkpoints and writes associated with a thread id. args: thread_id: the thread id to delete. returns: noneSTRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py0delete all checkpoints and writes associated with a thread id. args: thread_id: the thread id to delete. returns: noneSTRING
HIGH…s/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py0delete all checkpoints and writes associated with a thread id. args: thread_id: the thread id to delete. returns: noneSTRING
HIGH…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py0get a checkpoint tuple from the database asynchronously. this method retrieves a checkpoint tuple from the sqlite databaSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/memory/__init__.py0get a checkpoint tuple from the database asynchronously. this method retrieves a checkpoint tuple from the sqlite databaSTRING
HIGH…s/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py0get a checkpoint tuple from the database asynchronously. this method retrieves a checkpoint tuple from the sqlite databaSTRING
HIGH…bs/checkpoint-postgres/langgraph/store/postgres/aio.py0delete expired store items based on ttl. returns: int: the number of deleted items.STRING
HIGH…s/checkpoint-postgres/langgraph/store/postgres/base.py0delete expired store items based on ttl. returns: int: the number of deleted items.STRING
HIGHlibs/checkpoint-sqlite/langgraph/store/sqlite/aio.py0delete expired store items based on ttl. returns: int: the number of deleted items.STRING
HIGHlibs/checkpoint-sqlite/langgraph/store/sqlite/base.py0delete expired store items based on ttl. returns: int: the number of deleted items.STRING
HIGH…bs/checkpoint-postgres/langgraph/store/postgres/aio.py0stop the ttl sweeper thread if it's running. args: timeout: maximum time to wait for the thread to stop, in seconds. if STRING
HIGHlibs/checkpoint-sqlite/langgraph/store/sqlite/aio.py0stop the ttl sweeper thread if it's running. args: timeout: maximum time to wait for the thread to stop, in seconds. if STRING
HIGH…s/checkpoint-postgres/langgraph/store/postgres/base.py0stop the ttl sweeper thread if it's running. args: timeout: maximum time to wait for the thread to stop, in seconds. if STRING
HIGHlibs/checkpoint-sqlite/langgraph/store/sqlite/base.py0stop the ttl sweeper thread if it's running. args: timeout: maximum time to wait for the thread to stop, in seconds. if STRING
HIGHlibs/checkpoint-postgres/tests/test_store.py0test that updating items properly updates their embeddings.STRING
HIGHlibs/checkpoint-postgres/tests/test_async_store.py0test that updating items properly updates their embeddings.STRING
HIGHlibs/checkpoint/tests/test_store.py0test that updating items properly updates their embeddings.STRING
HIGHlibs/checkpoint-sqlite/tests/test_store.py0test that updating items properly updates their embeddings.STRING
HIGHlibs/checkpoint-sqlite/tests/test_async_store.py0test that updating items properly updates their embeddings.STRING
HIGHlibs/checkpoint-postgres/tests/test_store.py0test operation-level field configuration for vector search.STRING
HIGHlibs/checkpoint-postgres/tests/test_async_store.py0test operation-level field configuration for vector search.STRING
HIGHlibs/checkpoint-sqlite/tests/test_store.py0test operation-level field configuration for vector search.STRING
HIGHlibs/checkpoint-postgres/tests/test_store.py0compute cosine similarity between a vector x and a matrix y. lazy import numpy for efficiency.STRING
HIGHlibs/checkpoint/langgraph/store/memory/__init__.py0compute cosine similarity between a vector x and a matrix y. lazy import numpy for efficiency.STRING
HIGHlibs/checkpoint-sqlite/tests/test_store.py0compute cosine similarity between a vector x and a matrix y. lazy import numpy for efficiency.STRING
HIGHlibs/checkpoint-postgres/tests/embed_test_utils.py0simple character-frequency based embeddings using random projections.STRING
HIGHlibs/checkpoint/tests/embed_test_utils.py0simple character-frequency based embeddings using random projections.STRING
HIGHlibs/checkpoint-sqlite/tests/test_store.py0simple character-frequency based embeddings using random projections.STRING
HIGHlibs/checkpoint-postgres/tests/embed_test_utils.py0initialize with embedding dimensions and random seed.STRING
HIGHlibs/checkpoint/tests/embed_test_utils.py0initialize with embedding dimensions and random seed.STRING
HIGHlibs/checkpoint-sqlite/tests/test_store.py0initialize with embedding dimensions and random seed.STRING
HIGHlibs/langgraph/bench/wide_dict.py0the external events that are converted by the graph.STRING
HIGHlibs/langgraph/bench/pydantic_state.py0the external events that are converted by the graph.STRING
HIGHlibs/langgraph/bench/wide_state.py0the external events that are converted by the graph.STRING
HIGHlibs/langgraph/bench/wide_dict.py0sops fetched from the rulebook that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/pydantic_state.py0sops fetched from the rulebook that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/wide_state.py0sops fetched from the rulebook that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/wide_dict.py0memory docs fetched from the memory service that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/pydantic_state.py0memory docs fetched from the memory service that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/wide_state.py0memory docs fetched from the memory service that are relevant to the current conversation.STRING
HIGHlibs/langgraph/bench/wide_dict.py0the issue categorizations auto-generated by the ai.STRING
HIGHlibs/langgraph/bench/pydantic_state.py0the issue categorizations auto-generated by the ai.STRING
HIGHlibs/langgraph/bench/wide_state.py0the issue categorizations auto-generated by the ai.STRING
HIGHlibs/langgraph/bench/wide_dict.py0the crm information for organization the current user is from.STRING
33 more matches not shown…
Unused Imports404 hits · 389 pts
SeverityFileLineSnippetContext
LOWdocs/generate_redirects.py16CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py1CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py28CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py35CODE
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py1CODE
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py28CODE
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py35CODE
LOW…ckpoint-postgres/langgraph/checkpoint/postgres/base.py1CODE
LOW…eckpoint-postgres/langgraph/store/postgres/__init__.py1CODE
LOW…eckpoint-postgres/langgraph/store/postgres/__init__.py2CODE
LOW…eckpoint-postgres/langgraph/store/postgres/__init__.py2CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py1CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1CODE
LOWlibs/checkpoint-postgres/tests/test_store.py2CODE
LOWlibs/checkpoint-postgres/tests/test_async_store.py2CODE
LOWlibs/langgraph/langgraph/warnings.py3CODE
LOWlibs/langgraph/langgraph/constants.py5CODE
LOWlibs/langgraph/langgraph/constants.py5CODE
LOWlibs/langgraph/langgraph/constants.py5CODE
LOWlibs/langgraph/langgraph/types.py1CODE
LOWlibs/langgraph/langgraph/runtime.py1CODE
LOWlibs/langgraph/langgraph/callbacks.py7CODE
LOWlibs/langgraph/langgraph/errors.py1CODE
LOWlibs/langgraph/langgraph/errors.py10CODE
LOWlibs/langgraph/langgraph/typing.py1CODE
LOWlibs/langgraph/langgraph/pregel/_draw.py1CODE
LOWlibs/langgraph/langgraph/pregel/_read.py1CODE
LOWlibs/langgraph/langgraph/pregel/_call.py3CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py2CODE
LOWlibs/langgraph/langgraph/pregel/_tools.py1CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py1CODE
LOWlibs/langgraph/langgraph/pregel/_io.py1CODE
LOWlibs/langgraph/langgraph/pregel/remote.py1CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py1CODE
LOWlibs/langgraph/langgraph/pregel/protocol.py1CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1CODE
LOWlibs/langgraph/langgraph/pregel/_write.py1CODE
LOWlibs/langgraph/langgraph/pregel/__init__.py1CODE
LOWlibs/langgraph/langgraph/pregel/__init__.py1CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/types.py3CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py1CODE
LOWlibs/langgraph/langgraph/pregel/debug.py1CODE
LOWlibs/langgraph/langgraph/pregel/_validate.py1CODE
LOWlibs/langgraph/langgraph/pregel/_executor.py1CODE
LOWlibs/langgraph/langgraph/pregel/main.py1CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py1CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py1CODE
LOWlibs/langgraph/langgraph/pregel/_utils.py1CODE
LOWlibs/langgraph/langgraph/_internal/_cache.py1CODE
LOWlibs/langgraph/langgraph/_internal/_typing.py3CODE
LOWlibs/langgraph/langgraph/_internal/_serde.py1CODE
344 more matches not shown…
Self-Referential Comments88 hits · 304 pts
SeverityFileLineSnippetContext
MEDIUMlibs/langgraph/tests/test_retry.py177 # Create a RetryPolicy with default_retry_onCOMMENT
MEDIUMlibs/langgraph/tests/test_retry.py271 # Create a retry policy with specific parametersCOMMENT
MEDIUMlibs/langgraph/tests/test_retry.py346 # Create a retry policy with jitter enabledCOMMENT
MEDIUMlibs/langgraph/tests/test_retry.py455 # Create a retry policy with limited attemptsCOMMENT
MEDIUMlibs/langgraph/tests/test_remote_graph.py1188 # Create a test instanceCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py9304 # Create a fake chat model that returns a simple responseCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py9307 # Create a subgraph that uses the fake chat modelCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py3851 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py7017 # Define the subgraphsCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py7142 # Define the subgraphsCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel_async.py9019 # Define the graph with a sequence of nodesCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py2448 # Define the function that determines whether to continue or notCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py2458 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py2461 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py557 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py1712 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py1715 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py3171 # Define the function that determines whether to continue or notCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py3184 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py3187 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py3832 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py546 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py1433 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py1436 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py2120 # Define the function that determines whether to continue or notCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py2130 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py2133 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py8827 # Create a fake chat model that returns a simple responseCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py8830 # Create a subgraph that uses the fake chat modelCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py1845 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py1911 # Define a new graphCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py6447 # Define the subgraphsCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py6566 # Define the subgraphsCOMMENT
MEDIUMlibs/langgraph/tests/test_pregel.py8544 # Define the graph with a sequence of nodesCOMMENT
MEDIUMlibs/checkpoint/tests/test_redis_cache.py307 # Create a large data structureCOMMENT
MEDIUMlibs/sdk-py/langgraph_sdk/_async/stream.py1257 # Create the run-done future here (async context guarantees a running loop).COMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_validator.py1"""This module provides a ValidationNode class that can be used to validate tool callsSTRING
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py660 # Define the function that calls the modelCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py788 # Define a new graphCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py830 # Define the function that determines whether to continue or notCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py861 # Define a new graphCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py866 # Define the two nodes we will cycle betweenCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_node.py549 # Create a copy of the error dict to avoid mutating the originalCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_node.py1034 # Create the tool request with state and runtimeCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_node.py1181 # Create the tool request with state and runtimeCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1104 # Define the subgraphsCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1245 # Create a React agentCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1260 # Create a subgraph that uses the React agent as a nodeCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1276 # Create the main workflow with the React agent as a subgraph nodeCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1336 # Create a React agentCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1351 # Create a subgraph that uses the React agent as a nodeCOMMENT
MEDIUMlibs/prebuilt/tests/test_react_agent.py1369 # Create the main workflow with the React agent as a subgraph nodeCOMMENT
MEDIUMlibs/prebuilt/tests/test_tool_node.py1628 # Create a mock ToolCallCOMMENT
MEDIUMlibs/prebuilt/tests/test_tool_node.py1631 # Create a ToolCallRequestCOMMENT
MEDIUMlibs/prebuilt/tests/test_tool_node.py1883 # Create a mock runtime with contextCOMMENT
MEDIUMlibs/cli/langgraph_cli/docker.py218 # Define the Redis service first as per the test orderCOMMENT
MEDIUMlibs/cli/tests/unit_tests/test_config.py2451 # Create a properly indented version of FORMATTED_CLEANUP_LINES for compose filesCOMMENT
MEDIUMlibs/cli/tests/unit_tests/cli/test_templates.py28 # Create a mock response that behaves like a context managerCOMMENT
MEDIUMlibs/cli/tests/unit_tests/cli/test_cli.py33 # Create a temporary directoryCOMMENT
MEDIUMlibs/cli/tests/unit_tests/cli/test_cli.py36 # Define the path for the config.json fileCOMMENT
28 more matches not shown…
Deep Nesting254 hits · 222 pts
SeverityFileLineSnippetContext
LOW…oint-postgres/langgraph/checkpoint/postgres/shallow.py487CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py112CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py192CODE
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py405CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py227CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py501CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py297CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py411CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py568CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py622CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py756CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py823CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py915CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1043CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1088CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py854CODE
LOWlibs/checkpoint-postgres/tests/test_sync.py125CODE
LOWlibs/checkpoint-postgres/tests/test_async.py143CODE
LOWlibs/checkpoint-postgres/tests/test_store.py34CODE
LOWlibs/checkpoint-postgres/tests/test_store.py803CODE
LOWlibs/langgraph/langgraph/types.py793CODE
LOWlibs/langgraph/langgraph/pregel/_draw.py42CODE
LOWlibs/langgraph/langgraph/pregel/_read.py222CODE
LOWlibs/langgraph/langgraph/pregel/_call.py200CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py232CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py524CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py1280CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py1348CODE
LOWlibs/langgraph/langgraph/pregel/_io.py56CODE
LOWlibs/langgraph/langgraph/pregel/_io.py81CODE
LOWlibs/langgraph/langgraph/pregel/_io.py118CODE
LOWlibs/langgraph/langgraph/pregel/remote.py90CODE
LOWlibs/langgraph/langgraph/pregel/remote.py757CODE
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py149CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py848CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1416CODE
LOWlibs/langgraph/langgraph/pregel/_write.py172CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py426CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py106CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py191CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py223CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py307CODE
LOWlibs/langgraph/langgraph/pregel/_messages.py336CODE
LOWlibs/langgraph/langgraph/pregel/debug.py209CODE
LOWlibs/langgraph/langgraph/pregel/_validate.py13CODE
LOWlibs/langgraph/langgraph/pregel/_validate.py110CODE
LOWlibs/langgraph/langgraph/pregel/_executor.py186CODE
LOWlibs/langgraph/langgraph/pregel/main.py4184CODE
LOWlibs/langgraph/langgraph/pregel/main.py1076CODE
LOWlibs/langgraph/langgraph/pregel/main.py1590CODE
LOWlibs/langgraph/langgraph/pregel/main.py2056CODE
LOWlibs/langgraph/langgraph/pregel/main.py2655CODE
LOWlibs/langgraph/langgraph/pregel/main.py3063CODE
LOWlibs/langgraph/langgraph/pregel/main.py3836CODE
LOWlibs/langgraph/langgraph/pregel/main.py4013CODE
LOWlibs/langgraph/langgraph/pregel/main.py1640CODE
LOWlibs/langgraph/langgraph/pregel/main.py2106CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py616CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py650CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py700CODE
194 more matches not shown…
Docstring Block Structure37 hits · 185 pts
SeverityFileLineSnippetContext
HIGH…oint-postgres/langgraph/checkpoint/postgres/shallow.py306Get a checkpoint tuple from the database. This method retrieves a checkpoint tuple from the Postgres database bSTRING
HIGH…oint-postgres/langgraph/checkpoint/postgres/shallow.py381Save a checkpoint to the database. This method saves a checkpoint to the Postgres database. The checkpoint is aSTRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py120List checkpoints from the database. This method retrieves a list of checkpoint tuples from the Postgres databasSTRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py193Get a checkpoint tuple from the database. This method retrieves a checkpoint tuple from the Postgres database bSTRING
HIGH…int-postgres/langgraph/checkpoint/postgres/__init__.py270Save a checkpoint to the database. This method saves a checkpoint to the Postgres database. The checkpoint is aSTRING
HIGHlibs/langgraph/langgraph/types.py812Interrupt the graph with a resumable exception from within a node. The `interrupt` function enables human-in-the-loSTRING
HIGHlibs/langgraph/langgraph/pregel/main.py1595Apply updates to the graph state in bulk. Requires a checkpointer to be set. Args: config: The confSTRING
HIGHlibs/langgraph/langgraph/pregel/main.py2061Asynchronously apply updates to the graph state in bulk. Requires a checkpointer to be set. Args: cSTRING
HIGHlibs/langgraph/langgraph/stream/_types.py239Schedule a coroutine tied to this transformer's lifecycle. The mux holds the task reference, awaits all schedulSTRING
HIGHlibs/langgraph/langgraph/stream/run_stream.py206Iterate multiple projections in arrival order, yielding ``(name, item)``. Items are ordered by a monotonic pushSTRING
HIGHlibs/langgraph/langgraph/stream/stream_channel.py246Subscribe and return `n` independent sync iterators. Each branch has its own buffer; items pulled from the STRING
HIGHlibs/langgraph/langgraph/stream/stream_channel.py289Subscribe and return `n` independent async iterators. Caller-driven fan-out: each branch's `__anext__` either pSTRING
HIGHlibs/langgraph/langgraph/graph/state.py916Add a directed edge from the start node (or list of start nodes) to the end node. When a single start node is pSTRING
HIGHlibs/langgraph/langgraph/graph/state.py1026Add a sequence of nodes that will be executed in the provided order. Args: nodes: A sequence of `StSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py240Fetch a checkpoint tuple using the given configuration. Args: config: Configuration specifying whicSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py261List checkpoints that match the given criteria. Args: config: Base configuration for filtering checSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py284Store a checkpoint with its configuration and metadata. Args: config: Configuration for the checkpoSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py430Asynchronously fetch a checkpoint tuple using the given configuration. Args: config: Configuration STRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py451Asynchronously list checkpoints that match the given criteria. Args: config: Base configuration forSTRING
HIGHlibs/checkpoint/langgraph/checkpoint/base/__init__.py475Asynchronously store a checkpoint with its configuration and metadata. Args: config: Configuration STRING
HIGHlibs/checkpoint/langgraph/store/base/embed.py163Embed a list of texts into vectors. Args: texts: list of texts to convert to embeddings. RSTRING
HIGHlibs/sdk-py/langgraph_sdk/encryption/__init__.py78Register a blob encryption handler. The handler will be called to encrypt opaque data like checkpoint blobs. STRING
HIGHlibs/sdk-py/langgraph_sdk/encryption/__init__.py107Register the JSON encryption handler. Example: ```python @encryption.encrypt.json STRING
HIGHlibs/sdk-py/langgraph_sdk/encryption/__init__.py145Register a blob decryption handler. The handler will be called to decrypt opaque data like checkpoint blobs. STRING
HIGHlibs/sdk-py/langgraph_sdk/encryption/__init__.py174Register the JSON decryption handler. Example: ```python @encryption.decrypt.json STRING
HIGHlibs/sdk-py/langgraph_sdk/auth/__init__.py226Register an authentication handler function. The authentication handler is responsible for verifying credentialSTRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py173Replace the request with a new request with the given overrides. Returns a new `ToolCallRequest` instance with STRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py403Generate error message content based on exception handling configuration. This function centralizes error message gSTRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py445Infer exception types handled by a custom error handler function. This function analyzes the type annotations of a STRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py928Execute tool call with configured error handling. Args: request: Tool execution request. STRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py1075Execute tool call asynchronously with configured error handling. Args: request: Tool execution requSTRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py1321Inject graph state, store, and runtime into tool call arguments. This is an internal method that enables tools STRING
HIGHlibs/prebuilt/langgraph/prebuilt/tool_node.py1586Conditional routing function for tool-calling workflows. This utility function implements the standard conditional STRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py100Create a new SqliteSaver instance from a connection string. Args: conn_string: The SQLite connectioSTRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py192Get a checkpoint tuple from the database. This method retrieves a checkpoint tuple from the SQLite database basSTRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py303List checkpoints from the database. This method retrieves a list of checkpoint tuples from the SQLite database STRING
HIGH…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py394Save a checkpoint to the database. This method saves a checkpoint to the SQLite database. The checkpoint is assSTRING
Excessive Try-Catch Wrapping150 hits · 152 pts
SeverityFileLineSnippetContext
LOW…ckpoint-postgres/langgraph/checkpoint/postgres/base.py35except Exception:CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py271 except Exception as e:STRING
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py349 except Exception as exc:STRING
MEDIUM…s/checkpoint-postgres/langgraph/store/postgres/base.py854def _sweep_loop() -> None:CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py864 except Exception as exc:CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py869 except Exception as exc:CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1242 except Exception as e:CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1118 except Exception as e:STRING
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py1140 except Exception as e:STRING
LOWlibs/langgraph/langgraph/pregel/_read.py187 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_call.py79 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py228 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py232 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py358 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py362 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_algo.py647 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py222 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py350 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py414 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py564 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_runner.py940 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py413 except Exception:CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py641 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py762 except Exception as writer_exc:CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py795 except Exception as exc:CODE
LOWlibs/langgraph/langgraph/_internal/_serde.py224 except Exception:CODE
LOWlibs/langgraph/langgraph/_internal/_serde.py235 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/transformers.py902 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/transformers.py918 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py127 except Exception as e:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py150 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py154 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py449 except Exception as e:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py493 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/run_stream.py497 except Exception:CODE
LOWlibs/langgraph/langgraph/stream/stream_channel.py334 except Exception as e:CODE
LOWlibs/langgraph/langgraph/graph/_branch.py115 except Exception:CODE
LOWlibs/langgraph/langgraph/channels/binop.py91 except Exception:CODE
LOWlibs/langgraph/tests/conftest.py86 except Exception:CODE
LOWlibs/langgraph/tests/test_delta_channel_benchmark.py227 except Exception:CODE
LOWlibs/langgraph/tests/test_remote_graph_v3.py623 except Exception:CODE
MEDIUMlibs/langgraph/tests/test_pregel_async.py267def main():CODE
LOWlibs/langgraph/tests/test_pregel_async.py8752 except Exception as e:CODE
LOWlibs/langgraph/tests/test_serde_allowlist.py83 except Exception:CODE
MEDIUMlibs/langgraph/tests/test_serde_allowlist.py80def test_curated_core_allowlist_includes_messages() -> None:CODE
LOWlibs/langgraph/tests/test_tracing_interops.py51 except Exception as e:CODE
LOWlibs/langgraph/tests/test_pregel.py8315 except Exception as e:CODE
LOWlibs/checkpoint/langgraph/checkpoint/memory/__init__.py665 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/memory/__init__.py701 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py207 except Exception as exc:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py652 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py665 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py676 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py689 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py702 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py704 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py722 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py724 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py740 except Exception:CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py766 except Exception:CODE
90 more matches not shown…
AI Structural Patterns77 hits · 72 pts
SeverityFileLineSnippetContext
LOWlibs/langgraph/langgraph/callbacks.py224CODE
LOWlibs/langgraph/langgraph/callbacks.py291CODE
LOWlibs/langgraph/langgraph/pregel/_read.py150CODE
LOWlibs/langgraph/langgraph/pregel/remote.py132CODE
LOWlibs/langgraph/langgraph/pregel/remote.py724CODE
LOWlibs/langgraph/langgraph/pregel/remote.py741CODE
LOWlibs/langgraph/langgraph/pregel/remote.py757CODE
LOWlibs/langgraph/langgraph/pregel/remote.py879CODE
LOWlibs/langgraph/langgraph/pregel/remote.py896CODE
LOWlibs/langgraph/langgraph/pregel/remote.py912CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1470CODE
LOWlibs/langgraph/langgraph/pregel/_loop.py1723CODE
LOWlibs/langgraph/langgraph/pregel/main.py758CODE
LOWlibs/langgraph/langgraph/pregel/main.py2616CODE
LOWlibs/langgraph/langgraph/pregel/main.py2636CODE
LOWlibs/langgraph/langgraph/pregel/main.py2655CODE
LOWlibs/langgraph/langgraph/pregel/main.py3024CODE
LOWlibs/langgraph/langgraph/pregel/main.py3044CODE
LOWlibs/langgraph/langgraph/pregel/main.py3063CODE
LOWlibs/langgraph/langgraph/pregel/main.py3783CODE
LOWlibs/langgraph/langgraph/pregel/main.py3801CODE
LOWlibs/langgraph/langgraph/pregel/main.py3819CODE
LOWlibs/langgraph/langgraph/pregel/main.py3836CODE
LOWlibs/langgraph/langgraph/pregel/main.py3960CODE
LOWlibs/langgraph/langgraph/pregel/main.py3978CODE
LOWlibs/langgraph/langgraph/pregel/main.py3996CODE
LOWlibs/langgraph/langgraph/pregel/main.py4013CODE
LOWlibs/langgraph/langgraph/graph/state.py375CODE
LOWlibs/langgraph/langgraph/graph/state.py517CODE
LOWlibs/langgraph/langgraph/graph/state.py586CODE
LOWlibs/langgraph/langgraph/graph/state.py662CODE
LOWlibs/langgraph/langgraph/graph/state.py1164CODE
LOWlibs/sdk-py/langgraph_sdk/_async/assistants.py314CODE
LOWlibs/sdk-py/langgraph_sdk/_async/assistants.py385CODE
LOWlibs/sdk-py/langgraph_sdk/_async/assistants.py495CODE
LOWlibs/sdk-py/langgraph_sdk/_async/assistants.py512CODE
LOWlibs/sdk-py/langgraph_sdk/_async/assistants.py528CODE
LOWlibs/sdk-py/langgraph_sdk/_async/cron.py58CODE
LOWlibs/sdk-py/langgraph_sdk/_async/cron.py175CODE
LOWlibs/sdk-py/langgraph_sdk/_async/cron.py322CODE
LOWlibs/sdk-py/langgraph_sdk/_async/cron.py413CODE
LOWlibs/sdk-py/langgraph_sdk/_async/threads.py101CODE
LOWlibs/sdk-py/langgraph_sdk/_async/threads.py297CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py74CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py106CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py138CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py167CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py195CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py364CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py391CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py419CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py625CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py653CODE
LOWlibs/sdk-py/langgraph_sdk/_async/runs.py678CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/assistants.py318CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/assistants.py389CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/assistants.py497CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/assistants.py514CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/assistants.py530CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/cron.py52CODE
17 more matches not shown…
Modern Structural Boilerplate63 hits · 63 pts
SeverityFileLineSnippetContext
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py595__all__ = ["PostgresSaver", "BasePostgresSaver", "ShallowPostgresSaver", "Conn"]CODE
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py684__all__ = ["AsyncPostgresSaver", "AsyncShallowPostgresSaver", "Conn"]CODE
LOW…eckpoint-postgres/langgraph/store/postgres/__init__.py4__all__ = ["AsyncPostgresStore", "PoolConfig", "PostgresStore"]CODE
LOW…bs/checkpoint-postgres/langgraph/store/postgres/aio.py39logger = logging.getLogger(__name__)CODE
LOW…s/checkpoint-postgres/langgraph/store/postgres/base.py51logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/langgraph/pregel/_remote_run_stream.py18logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/langgraph/pregel/remote.py74logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/langgraph/pregel/types.py16__all__ = [CODE
LOWlibs/langgraph/langgraph/pregel/_retry.py50logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/langgraph/_internal/_serde.py33logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/langgraph/_internal/_future.py100 def _set_state(future: AnyFuture, other: AnyFuture) -> None:CODE
LOWlibs/langgraph/langgraph/stream/__init__.py28__all__ = [CODE
LOWlibs/langgraph/langgraph/graph/state.py95logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/tests/conftest_store.py137__all__ = [CODE
LOWlibs/langgraph/tests/conftest_checkpointer.py227__all__ = [CODE
LOWlibs/langgraph/tests/test_pregel_async.py85logger = logging.getLogger(__name__)CODE
LOWlibs/langgraph/tests/test_pregel.py86logger = logging.getLogger(__name__)CODE
LOWlibs/checkpoint/langgraph/checkpoint/memory/__init__.py30logger = logging.getLogger(__name__)CODE
LOWlibs/checkpoint/langgraph/checkpoint/serde/jsonplus.py49logger = logging.getLogger(__name__)CODE
LOW…s/checkpoint/langgraph/checkpoint/serde/event_hooks.py10logger = logging.getLogger(__name__)CODE
LOWlibs/checkpoint/langgraph/checkpoint/base/__init__.py34logger = logging.getLogger(__name__)CODE
LOWlibs/checkpoint/langgraph/store/memory/__init__.py133logger = logging.getLogger(__name__)CODE
LOWlibs/checkpoint/langgraph/store/base/embed.py429__all__ = [CODE
LOWlibs/checkpoint/langgraph/store/base/__init__.py1299__all__ = [CODE
LOWlibs/sdk-py/integration/graph/__init__.py6__all__ = ["deep_agent", "streaming_graph"]CODE
LOWlibs/sdk-py/integration/scripts/test_update_state.py40async def _update_state_with_retry_async(threads, thread_id: str, values: dict) -> None:CODE
LOWlibs/sdk-py/integration/scripts/test_update_state.py63def _update_state_with_retry_sync(threads, thread_id: str, values: dict) -> None:CODE
LOWlibs/sdk-py/tests/integration/test_update_state.py20async def _update_state_with_retry_async(threads, thread_id, values) -> None:CODE
LOWlibs/sdk-py/tests/integration/test_update_state.py38def _update_state_with_retry_sync(threads, thread_id, values) -> None:CODE
LOWlibs/sdk-py/tests/streaming/_sync_fake_server.py69 def set_graph(self, graph: dict[str, Any]) -> None:CODE
LOWlibs/sdk-py/tests/streaming/_fake_server.py125 def set_graph(self, graph: dict[str, Any]) -> None:CODE
LOWlibs/sdk-py/langgraph_sdk/client.py33__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/cache.py51__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/__init__.py8__all__ = ["Auth", "Encryption", "EncryptionContext", "get_client", "get_sync_client"]CODE
LOWlibs/sdk-py/langgraph_sdk/runtime.py22__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/errors.py10logger = logging.getLogger(__name__)CODE
LOWlibs/sdk-py/langgraph_sdk/_async/client.py26logger = logging.getLogger(__name__)CODE
LOWlibs/sdk-py/langgraph_sdk/_async/__init__.py11__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/_async/http.py23logger = logging.getLogger(__name__)CODE
LOWlibs/sdk-py/langgraph_sdk/auth/__init__.py875__all__ = ["Auth", "exceptions", "types"]CODE
LOWlibs/sdk-py/langgraph_sdk/auth/types.py1143__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/auth/exceptions.py59__all__ = ["HTTPException"]CODE
LOWlibs/sdk-py/langgraph_sdk/stream/__init__.py10__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/stream/transport/__init__.py16__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/__init__.py11__all__ = [CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/stream.py152 def set_result(self, value: Any) -> None:CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/stream.py158 def set_exception(self, error: BaseException) -> None:CODE
LOWlibs/sdk-py/langgraph_sdk/_sync/http.py22logger = logging.getLogger(__name__)CODE
LOWlibs/prebuilt/langgraph/prebuilt/__init__.py14__all__ = [CODE
LOWlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py1008__all__ = [CODE
LOWlibs/prebuilt/tests/conftest_store.py137__all__ = [CODE
LOWlibs/prebuilt/tests/conftest_checkpointer.py167__all__ = [CODE
LOWlibs/cli/langgraph_cli/deploy.py2056 def _update_start_time(ts) -> None:CODE
LOWlibs/cli/langgraph_cli/schemas.py776__all__ = [CODE
LOW…on-monorepo-example/libs/shared/src/shared/__init__.py5__all__ = ["get_dummy_message"]CODE
LOW…bs/cli/python-monorepo-example/libs/common/__init__.py5__all__ = ["get_common_prefix"]CODE
LOW…v-examples/monorepo/libs/shared/src/shared/__init__.py3__all__ = ["get_dummy_message"]CODE
LOW…nformance/langgraph/checkpoint/conformance/__init__.py6__all__ = [CODE
LOW…ance/langgraph/checkpoint/conformance/spec/__init__.py21__all__ = [CODE
LOW…s/checkpoint-sqlite/langgraph/store/sqlite/__init__.py4__all__ = ["AsyncSqliteStore", "SqliteStore"]CODE
3 more matches not shown…
Modern AI Meta-Vocabulary13 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMdocs/redirects.json93 "/tutorials/rag/langgraph_adaptive_rag": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json97 "/tutorials/customer-support/customer-support": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json99 "/tutorials/code_assistant/langgraph_code_assistant": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json226 "/tutorials/rag/langgraph_agentic_rag": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json263 "/tutorials/rag/langgraph_self_rag": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json284 "/tutorials/rag/langgraph_adaptive_rag_local": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json285 "/tutorials/rag/langgraph_crag": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json286 "/tutorials/rag/langgraph_crag_local": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/redirects.json287 "/tutorials/rag/langgraph_self_rag_local": "https://docs.langchain.com/oss/python/langgraph/agentic-rag",CODE
MEDIUMdocs/llms.txt26- [Agentic RAG](https://docs.langchain.com/oss/python/langgraph/agentic-rag): Build an agentic RAG system with LangGraphCODE
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_node.py981 # (2 and 3 can happen in a "supervisor w/ tools" multi-agent architecture)COMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/tool_node.py1128 # (2 and 3 can happen in a "supervisor w/ tools" multi-agent architecture)COMMENT
MEDIUMlibs/cli/langgraph_cli/deploy.py594# Deployment orchestration helpersCOMMENT
Slop Phrases13 hits · 36 pts
SeverityFileLineSnippetContext
LOW…int-postgres/langgraph/checkpoint/postgres/__init__.py158 # if we change this to use .stream() we need to make sure to close the cursorCOMMENT
LOW…eckpoint-postgres/langgraph/checkpoint/postgres/aio.py147 # if we change this to use .stream() we need to make sure to close the cursorCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py1732 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py2496 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases.py3222 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py1453 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/langgraph/tests/test_large_cases_async.py2168 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/prebuilt/langgraph/prebuilt/chat_agent_executor.py994 # meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/cli/examples/graphs_reqs_b/graphs_submod/agent.py99# meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/cli/examples/graph_prerelease_reqs_fail/agent.py88# meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/cli/examples/graph_prerelease_reqs/agent.py87# meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/cli/examples/graphs/agent.py95# meaning you can use it as you would any other runnableCOMMENT
MEDIUMlibs/cli/examples/graphs_reqs_a/graphs_submod/agent.py98# meaning you can use it as you would any other runnableCOMMENT
Redundant / Tautological Comments18 hits · 26 pts
SeverityFileLineSnippetContext
LOWdocs/generate_redirects.py97 # Check if path has a file extension (e.g., .txt, .xml)STRING
LOWlibs/langgraph/langgraph/pregel/_algo.py488 # Check if any processes should be run in next stepCOMMENT
LOWlibs/langgraph/langgraph/graph/state.py839 # Check if it's a Command typeCOMMENT
LOWlibs/langgraph/tests/test_pregel_async.py8417 # Check if there are only two checkpointsCOMMENT
LOWlibs/langgraph/tests/test_pregel.py7939 # Check if there are only two checkpointsCOMMENT
LOWlibs/prebuilt/langgraph/prebuilt/tool_node.py546 # Check if error location contains any injected argumentCOMMENT
LOWlibs/prebuilt/langgraph/prebuilt/tool_node.py1001 # Check if this error should be handledCOMMENT
LOWlibs/prebuilt/langgraph/prebuilt/tool_node.py1148 # Check if this error should be handledCOMMENT
LOWlibs/cli/langgraph_cli/config.py1077 # Check if it's a file pathCOMMENT
LOWlibs/cli/langgraph_cli/templates.py143 # Check if path exists and is not emptyCOMMENT
LOWlibs/cli/langgraph_cli/cli.py625 # Check if the .env file exists in the same directory as the DockerfileCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py707 # Check if Dockerfile was createdCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py751 # Check if Dockerfile was createdCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py822 # Check if Dockerfile, .dockerignore, docker-compose.yml, and .env were createdCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py1008 # Check if Dockerfile was created and contains correct FROM lineCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py1048 # Check if Dockerfile was created and contains correct FROM lineCOMMENT
LOWlibs/cli/tests/unit_tests/cli/test_cli.py1084 # Check if Dockerfile was created and contains correct FROM lineCOMMENT
LOWlibs/checkpoint-sqlite/tests/test_store.py470 # Check if vector tables existCOMMENT
Over-Commented Block23 hits · 22 pts
SeverityFileLineSnippetContext
LOW…ckpoint-postgres/langgraph/checkpoint/postgres/base.py181#COMMENT
LOWlibs/langgraph/langgraph/pregel/_checkpoint.py181 # Callers force a full snapshot blob here: exit mode when aCOMMENT
LOWlibs/langgraph/langgraph/pregel/_loop.py201 # Futures from `checkpointer.put_writes` calls that produced delta-channelCOMMENT
LOWlibs/langgraph/langgraph/pregel/_loop.py221 # synthetic step-prefixed task_id used to preserve chronological orderCOMMENT
LOWlibs/langgraph/langgraph/pregel/_loop.py1041 # checkpoint ID since the fork was created after the subgraph'sCOMMENT
LOWlibs/langgraph/langgraph/pregel/_loop.py1081 def _put_checkpoint(self, metadata: CheckpointMetadata) -> None:COMMENT
LOWlibs/langgraph/langgraph/_internal/_constants.py61# holds a callback to be called when a node is finishedCOMMENT
LOWlibs/langgraph/langgraph/stream/transformers.py401COMMENT
LOWlibs/langgraph/tests/test_large_cases.py2461 # Define the two nodes we will cycle betweenCOMMENT
LOWlibs/langgraph/tests/test_large_cases.py3201 should_continue,COMMENT
LOWlibs/langgraph/tests/test_large_cases_async.py2141 # We now add a conditional edgeCOMMENT
LOW…s/langgraph/tests/test_stream_lifecycle_transformer.py441# ---------------------------------------------------------------------------COMMENT
LOWlibs/cli/js-examples/src/agent/graph.ts81 return "__end__";COMMENT
LOWlibs/cli/examples/graphs_reqs_b/graphs_submod/agent.py81 # END is a special node marking that the graph should finish.COMMENT
LOWlibs/cli/examples/graph_prerelease_reqs_fail/agent.py61# We now add a conditional edgeCOMMENT
LOWlibs/cli/examples/graph_prerelease_reqs/agent.py61workflow.add_conditional_edges(COMMENT
LOWlibs/cli/examples/graph_prerelease_reqs/agent.py81# We now add a normal edge from `tools` to `agent`.COMMENT
LOWlibs/cli/examples/graphs/storm.py401# Using turbo preview since the context can get quite longCOMMENT
LOWlibs/cli/examples/graphs/agent.py61workflow.add_node("agent", call_model)COMMENT
LOW.github/workflows/release.yml161 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0COMMENT
LOW.github/workflows/tag-external-issues.yml1# Automatically tag issues as "external" or "internal" based on whetherCOMMENT
LOW.github/workflows/tag-external-prs.yml1# Automatically tag pull requests as "external" or "internal" based onCOMMENT
LOW.github/workflows/require_issue_link.yml1# Require external PRs to reference an approved issue (e.g. Fixes #NNN) andCOMMENT
AI Slop Vocabulary6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMlibs/sdk-py/tests/test_api_parity.py83 # Use inspect.signature for parameter names (robust across versions)COMMENT
MEDIUMlibs/sdk-py/tests/streaming/test_sync_projections.py123# Task 10.7 — comprehensive sync messages projection testsCOMMENT
MEDIUMlibs/sdk-py/tests/streaming/test_sync_projections.py292# Task 10.7 — comprehensive sync tool_calls projection testsCOMMENT
MEDIUMlibs/sdk-py/langgraph_sdk/schema.py448 """Whether to persist the stream chunks in order to resume the stream later."""STRING
LOWlibs/prebuilt/tests/test_on_tool_call.py216 # Don't call execute, just return None (invalid)COMMENT
MEDIUMlibs/cli/examples/graphs/storm.py136 """You need to select a diverse (and distinct) group of Wikipedia editors who will work together to create aSTRING
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMlibs/checkpoint/langgraph/checkpoint/base/__init__.py466CODE
MEDIUMlibs/sdk-py/tests/streaming/test_sync_thread_stream.py137CODE
MEDIUMlibs/sdk-py/tests/streaming/test_sync_thread_stream.py208CODE
MEDIUMlibs/sdk-py/tests/streaming/test_transport_ws.py484CODE
MEDIUMlibs/sdk-py/tests/streaming/test_controller.py284CODE
MEDIUMlibs/sdk-py/tests/streaming/test_controller.py329CODE
MEDIUM…ckpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py609CODE
Fake / Example Data14 hits · 11 pts
SeverityFileLineSnippetContext
LOWlibs/langgraph/tests/test_pregel_async.py5563 ("placeholder", "{messages}"),CODE
LOWlibs/langgraph/tests/test_pregel.py3794 ("placeholder", "{messages}"),CODE
LOWlibs/sdk-py/langgraph_sdk/_async/store.py213 filter={"author": "John Doe"},STRING
LOWlibs/sdk-py/langgraph_sdk/_async/store.py230 "author": "John Doe"STRING
LOWlibs/sdk-py/langgraph_sdk/_sync/store.py213 filter={"author": "John Doe"},STRING
LOWlibs/sdk-py/langgraph_sdk/_sync/store.py229 "author": "John Doe"STRING
LOWlibs/checkpoint-sqlite/tests/test_store.py1003 {"title": "Doc 1", "author": "John Doe", "tags": ["important"]},CODE
LOWlibs/checkpoint-sqlite/tests/test_store.py1005 {"title": "Report A", "author": "John Doe", "tags": ["final"]},CODE
LOWlibs/checkpoint-sqlite/tests/test_store.py1038 john_items = store.search((base,), filter={"author": "John Doe"})CODE
LOWlibs/checkpoint-sqlite/tests/test_store.py1040 assert all(item.value["author"] == "John Doe" for item in john_items)CODE
LOWlibs/checkpoint-sqlite/tests/test_async_store.py673 {"title": "Doc 1", "author": "John Doe", "tags": ["important"]},CODE
LOWlibs/checkpoint-sqlite/tests/test_async_store.py675 {"title": "Report A", "author": "John Doe", "tags": ["final"]},CODE
LOWlibs/checkpoint-sqlite/tests/test_async_store.py708 john_items = await store.asearch((base,), filter={"author": "John Doe"})CODE
LOWlibs/checkpoint-sqlite/tests/test_async_store.py710 assert all(item.value["author"] == "John Doe" for item in john_items)CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHlibs/cli/langgraph_cli/cli.py633 "# LANGSMITH_API_KEY=your-api-key",CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ckpoint/conformance/spec/test_delta_channel_history.py181 # Step 1: plain value (migration case — old checkpoint before delta)COMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ckpoint/conformance/spec/test_delta_channel_history.py181 # Step 1: plain value (migration case — old checkpoint before delta)COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlibs/prebuilt/tests/test_validation_node.py15def my_function(some_val: int, some_other_val: str) -> str:CODE