AI Slop Code RIsk Monitor

langchain-ai/langchain

The agent engineering platform.

40.5 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for langchain-ai/langchain, a Python project with 147,559 GitHub stars. SynthScan examined 460,905 lines of code across 2887 source files, recording 13438 pattern matches distributed across 28 syntactic categories. The legacy adjusted pattern signal is 40.5 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

40.5
Adjusted Signal
40.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
147.6K
Stars
Python
Language
460.9K
Lines of Code
2.9K
Files
13.4K
Pattern Hits
2026-10-12
Scan Date
0.30
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 65.2/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 7429 finding(s).

Hallucinated Dependency & Supply Chain Risk 36.6/100 · MEDIUM

Are imports declared and package/API names verified? 3872 finding(s).

Agent Over-Engineering Ratio 64.8/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 7790 finding(s).

PR Review Velocity Impact 89.1/100 · CRITICAL

Which changes need focused human review? 13438 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 21HIGH 836MEDIUM 1310LOW 11271

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 13438 distinct pattern matches across 28 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers5585 hits · 4872 pts
SeverityFileLineSnippetContext
LOW…/text-splitters/tests/unit_tests/test_html_security.py12 def test_xxe_entity_attack_blocked(self) -> None:CODE
LOW…/text-splitters/tests/unit_tests/test_html_security.py29 def test_xxe_document_function_blocked(self) -> None:CODE
LOW…/text-splitters/tests/unit_tests/test_html_security.py47 def test_secure_parser_configuration(self) -> None:CODE
LOW…/text-splitters/tests/unit_tests/test_html_security.py84 def test_dtd_processing_disabled(self) -> None:CODE
LOW…/text-splitters/tests/unit_tests/test_html_security.py110 def test_safe_default_xslt_usage(self) -> None:CODE
LOWlibs/text-splitters/tests/unit_tests/conftest.py23def pytest_collection_modifyitems(CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py168def test_lazy_getattr_raises_for_unknown() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py176def test_lightweight_splitters_remain_eagerly_accessible() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py184def test_character_text_splitter() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py193def test_character_text_splitter_empty_doc() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py202def test_character_text_splitter_separtor_empty_doc() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py211def test_character_text_splitter_long() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py220def test_character_text_splitter_short_words_first() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py229def test_character_text_splitter_longer_words() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py239def test_character_text_splitter_no_separator_in_text() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py248def test_character_text_splitter_handle_chunksize_equal_to_chunkoverlap() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py257def test_character_text_splitter_empty_input() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py266def test_character_text_splitter_whitespace_only() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3516def test_split_json_non_dict_input_raises(data: object, type_name: str) -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3524def test_split_json_list_without_convert_lists_error_mentions_escape_hatch() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3532def test_split_json_list_with_convert_lists_still_works() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3542def test_split_json_none_input_returns_empty_list() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3549def test_split_json_none_input_returns_empty_list_with_convert_lists() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3556def test_split_json_convert_lists_true_non_list_no_misleading_hint() -> None:CODE
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3566def test_powershell_code_splitter_short_code() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py278def test_character_text_splitter_keep_separator_regex(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py302def test_character_text_splitter_keep_separator_regex_start(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py326def test_character_text_splitter_keep_separator_regex_end(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py350def test_character_text_splitter_discard_separator_regex(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py371def test_recursive_character_text_splitter_keep_separators() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py395def test_character_text_splitting_args() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py433def test_create_documents_with_metadata() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py478def test_create_documents_with_start_index(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py489def test_metadata_not_shallow() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py504def test_iterative_text_splitter_keep_separator() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py517def test_iterative_text_splitter_discard_separator() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py530def __test_iterative_text_splitter(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py548def test_iterative_text_splitter() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py601def test_python_text_splitter() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1151def test_elixir_separators_no_while() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1638def test_md_header_text_splitter_fenced_code_block(fence: str) -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1665def test_md_header_text_splitter_fenced_code_block_interleaved(CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1702def test_md_header_text_splitter_with_invisible_characters(characters: str) -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1730def test_md_header_text_splitter_with_custom_headers() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1925def test_experimental_markdown_syntax_text_splitter_header_configuration() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py1970def test_experimental_markdown_syntax_text_splitter_with_headers() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2028def test_experimental_markdown_syntax_text_splitter_split_lines() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2136def test_experimental_markdown_syntax_text_splitter_on_multi_files() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2219def test_experimental_markdown_syntax_text_splitter_split_lines_on_multi_files() -> (CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2347def test_experimental_markdown_syntax_text_splitter_with_header_on_multi_files() -> (CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2436def test_experimental_markdown_syntax_text_splitter_header_config_on_multi_files() -> (CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py2512def test_solidity_code_splitter() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3112def test_decode_returns_no_chunks() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3183def test_happy_path_splitting_based_on_header_with_font_size() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3234def test_happy_path_splitting_based_on_header_with_whitespace_chars() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3285def test_happy_path_splitting_with_duplicate_header_tag() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3359def test_split_json_with_lists() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3383def test_split_json_many_calls() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3404def test_split_json_with_empty_dict_values() -> None:CODE
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3422def test_split_json_with_nested_empty_dicts() -> None:CODE
5525 more matches not shown…
Unused Imports3696 hits · 3400 pts
SeverityFileLineSnippetContext
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3CODE
LOW…plitters/tests/integration_tests/test_text_splitter.py17CODE
LOWlibs/text-splitters/langchain_text_splitters/nltk.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/html.py3CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py9CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py14CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py14CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py14CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py14CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py14CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py21CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py21CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py25CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py25CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py25CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py25CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py31CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py32CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py33CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py34CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py34CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py34CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py34CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py34CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py41CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py44CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py45CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py46CODE
LOW…bs/text-splitters/langchain_text_splitters/__init__.py49CODE
LOWlibs/text-splitters/langchain_text_splitters/konlpy.py3CODE
LOW…bs/text-splitters/langchain_text_splitters/markdown.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/python.py3CODE
LOW…s/text-splitters/langchain_text_splitters/character.py3CODE
LOW…ters/langchain_text_splitters/sentence_transformers.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/spacy.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/latex.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/json.py3CODE
LOWlibs/text-splitters/langchain_text_splitters/base.py3CODE
LOW…e/tests/unit_tests/test_tools_postponed_annotations.py3CODE
LOW…nit_tests/language_models/test_chat_model_v3_stream.py3CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…tests/unit_tests/language_models/test_compat_bridge.py26CODE
LOW…ore/tests/unit_tests/language_models/test_v1_parity.py7CODE
LOW…s/unit_tests/language_models/test_chat_model_stream.py3CODE
LOW…s/unit_tests/language_models/test_chat_model_stream.py21CODE
LOW…unit_tests/language_models/test_chat_model_streamer.py3CODE
LOW…unit_tests/language_models/test_chat_model_streamer.py22CODE
LOW…sts/unit_tests/messages/block_translators/test_groq.py8CODE
LOW…/unit_tests/callbacks/test_trace_group_cancellation.py10CODE
LOW…s/core/tests/unit_tests/callbacks/test_handle_event.py11CODE
LOWlibs/core/tests/unit_tests/runnables/test_imports.py43CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v3.py3CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py1CODE
LOWlibs/core/tests/unit_tests/runnables/test_config.py16CODE
LOW…core/tests/unit_tests/vectorstores/test_vectorstore.py7CODE
3636 more matches not shown…
Self-Referential Comments939 hits · 2792 pts
SeverityFileLineSnippetContext
MEDIUMlibs/text-splitters/scripts/lint_imports.sh5# Initialize a variable to keep track of errorsCOMMENT
MEDIUM…ts/unit_tests/language_models/chat_models/test_base.py735 # Create a message with v0 format image contentCOMMENT
MEDIUM…s/unit_tests/language_models/chat_models/test_cache.py325 # Create a simple fake chat model that we can controlCOMMENT
MEDIUM…ore/tests/unit_tests/language_models/llms/test_base.py396 # Create a custom LLM that supports streamingCOMMENT
MEDIUM…ts/unit_tests/callbacks/test_async_callback_manager.py179 """This method is decorated with @shielded in the run manager."""STRING
MEDIUM…ts/unit_tests/callbacks/test_async_callback_manager.py185 """This method is decorated with @shielded in the run manager."""STRING
MEDIUM…s/core/tests/unit_tests/utils/test_function_calling.py1278 # Define a custom Python class that isn't JSON-serializableCOMMENT
MEDIUMlibs/core/tests/unit_tests/runnables/test_history.py29# This module is the compatibility test suite for `RunnableWithMessageHistory`,COMMENT
MEDIUMlibs/core/tests/unit_tests/runnables/test_graph.py645 # Create a simple graphCOMMENT
MEDIUMlibs/core/langchain_core/messages/system.py24 # Define a chat model and invoke it with the messagesSTRING
MEDIUMlibs/core/langchain_core/messages/content.py66 # Create a text content block with provider-specific fieldsSTRING
MEDIUM…gchain_core/messages/block_translators/google_genai.py82 # Create a citation for each referenced chunkCOMMENT
MEDIUMlibs/core/langchain_core/callbacks/manager.py237 # Create the coroutineCOMMENT
MEDIUMlibs/core/langchain_core/callbacks/manager.py243 # Create a task with the captured context to preserve context variablesCOMMENT
MEDIUMlibs/core/langchain_core/utils/utils.py96 # Create a copy of dt_value.COMMENT
MEDIUMlibs/core/langchain_core/runnables/graph_png.py139 # Create a directed graphCOMMENT
MEDIUMlibs/core/langchain_core/runnables/base.py4269 # Create the transform() generator for each stepCOMMENT
MEDIUMlibs/core/langchain_core/runnables/base.py4334 # Create the transform() generator for each stepCOMMENT
MEDIUMlibs/core/langchain_core/runnables/base.py6409 # Create a Runnable binding that invokes the chat model with theSTRING
MEDIUM…core/langchain_core/prompts/few_shot_with_templates.py146 # Create the overall prefix.COMMENT
MEDIUM…core/langchain_core/prompts/few_shot_with_templates.py157 # Create the overall suffixCOMMENT
MEDIUM…core/langchain_core/prompts/few_shot_with_templates.py190 # Create the overall prefix.COMMENT
MEDIUM…core/langchain_core/prompts/few_shot_with_templates.py201 # Create the overall suffixCOMMENT
MEDIUMlibs/core/langchain_core/prompts/few_shot.py201 # Create the overall template.COMMENT
MEDIUMlibs/core/langchain_core/prompts/few_shot.py229 # Create the overall template.COMMENT
MEDIUMlibs/core/langchain_core/prompts/few_shot.py362 # Define the overall prompt.STRING
MEDIUMlibs/core/langchain_core/indexing/api.py606# Define an asynchronous generator functionCOMMENT
MEDIUMlibs/core/langchain_core/tracers/langchain.py305 # This method is only really useful for debugging flows, so we will assumeCOMMENT
MEDIUMlibs/core/scripts/lint_imports.sh5# Initialize a variable to keep track of errorsCOMMENT
MEDIUM…ain/tests/unit_tests/agents/output_parsers/test_xml.py41 # Create an AgentAction with XML tags in the tool nameCOMMENT
MEDIUM…/langchain/tests/unit_tests/storage/test_filesystem.py13 # Create a temporary directory for testingCOMMENT
MEDIUM…/langchain/tests/unit_tests/storage/test_filesystem.py40 # Create a temporary directory for testingCOMMENT
MEDIUM…/langchain/tests/unit_tests/storage/test_filesystem.py63 # Create a temporary directory for testingCOMMENT
MEDIUM…bs/langchain/tests/unit_tests/storage/test_lc_store.py14 # Create a temporary directory for testingCOMMENT
MEDIUMlibs/langchain/scripts/lint_imports.sh5# Initialize a variable to keep track of errorsCOMMENT
MEDIUMlibs/langchain/langchain_classic/serpapi.py10# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/cache.py25# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/sql_database.py10# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/requests.py14# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…s/langchain/langchain_classic/chat_loaders/whatsapp.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…s/langchain/langchain_classic/chat_loaders/telegram.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…/langchain/langchain_classic/chat_loaders/langsmith.py11# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…s/langchain/langchain_classic/chat_loaders/imessage.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/chat_loaders/gmail.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/chat_loaders/utils.py13# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/chat_loaders/slack.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/retrievers/bm25.py9# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/retrievers/docarray.py9# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…chain/langchain_classic/retrievers/remote_retriever.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…ngchain_classic/retrievers/chatgpt_plugin_retriever.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/retrievers/milvus.py9# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…s/langchain/langchain_classic/retrievers/embedchain.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…langchain_classic/retrievers/weaviate_hybrid_search.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/retrievers/pubmed.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…langchain_classic/retrievers/pinecone_hybrid_search.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUMlibs/langchain/langchain_classic/retrievers/arxiv.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…bs/langchain/langchain_classic/retrievers/chaindesk.py8# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…langchain/langchain_classic/retrievers/web_research.py12# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…/langchain/langchain_classic/retrievers/llama_index.py11# Create a way to dynamically look up deprecated imports.COMMENT
MEDIUM…angchain_classic/retrievers/google_vertex_ai_search.py12# Create a way to dynamically look up deprecated imports.COMMENT
879 more matches not shown…
Cross-File Repetition404 hits · 2020 pts
SeverityFileLineSnippetContext
HIGHlibs/text-splitters/tests/unit_tests/conftest.py0add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `rSTRING
HIGHlibs/core/tests/unit_tests/conftest.py0add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `rSTRING
HIGHlibs/langchain/tests/unit_tests/conftest.py0add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `rSTRING
HIGHlibs/langchain_v1/tests/unit_tests/conftest.py0add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `rSTRING
HIGH…text-splitters/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGHlibs/core/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGHlibs/langchain/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…s/langchain_v1/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…artners/chroma/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…ners/mistralai/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…ers/openrouter/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…s/partners/exa/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…ners/fireworks/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…/partners/groq/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…tners/deepseek/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…s/partners/xai/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…partners/nomic/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…ers/perplexity/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…artners/qdrant/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…ners/anthropic/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…rs/huggingface/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…artners/ollama/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…artners/openai/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…standard-tests/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGH…model-profiles/tests/integration_tests/test_compile.py0used for compiling integration tests without running any real tests.STRING
HIGHlibs/core/langchain_core/prompt_values.py0get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]`STRING
HIGHlibs/core/langchain_core/prompts/message.py0get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]`STRING
HIGHlibs/core/langchain_core/prompts/chat.py0get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]`STRING
HIGHlibs/core/langchain_core/stores.py0async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional valSTRING
HIGH…/langchain/langchain_classic/storage/encoder_backed.py0async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional valSTRING
HIGHlibs/langchain/langchain_classic/storage/file_system.py0async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional valSTRING
HIGHlibs/core/langchain_core/stores.py0async set the values for the given keys. args: key_value_pairs: a sequence of key-value pairs.STRING
HIGH…/langchain/langchain_classic/storage/encoder_backed.py0async set the values for the given keys. args: key_value_pairs: a sequence of key-value pairs.STRING
HIGHlibs/langchain/langchain_classic/storage/file_system.py0async set the values for the given keys. args: key_value_pairs: a sequence of key-value pairs.STRING
HIGHlibs/core/langchain_core/stores.py0async delete the given keys and their associated values. args: keys: a sequence of keys to delete.STRING
HIGH…/langchain/langchain_classic/storage/encoder_backed.py0async delete the given keys and their associated values. args: keys: a sequence of keys to delete.STRING
HIGHlibs/langchain/langchain_classic/storage/file_system.py0async delete the given keys and their associated values. args: keys: a sequence of keys to delete.STRING
HIGHlibs/core/langchain_core/stores.py0async get an iterator over keys that match the given prefix. args: prefix: the prefix to match. yields: keys that match STRING
HIGH…/langchain/langchain_classic/storage/encoder_backed.py0async get an iterator over keys that match the given prefix. args: prefix: the prefix to match. yields: keys that match STRING
HIGHlibs/langchain/langchain_classic/storage/file_system.py0async get an iterator over keys that match the given prefix. args: prefix: the prefix to match. yields: keys that match STRING
HIGH…gchain_core/messages/block_translators/google_genai.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…core/langchain_core/messages/block_translators/groq.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…re/langchain_core/messages/block_translators/openai.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…langchain_core/messages/block_translators/anthropic.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…in_core/messages/block_translators/bedrock_converse.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…e/langchain_core/messages/block_translators/bedrock.py0derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translateSTRING
HIGH…core/langchain_core/messages/block_translators/groq.py0register the bedrock translator with the central registry. run automatically when the module is imported.STRING
HIGH…re/langchain_core/messages/block_translators/openai.py0register the bedrock translator with the central registry. run automatically when the module is imported.STRING
HIGH…langchain_core/messages/block_translators/anthropic.py0register the bedrock translator with the central registry. run automatically when the module is imported.STRING
HIGH…in_core/messages/block_translators/bedrock_converse.py0register the bedrock translator with the central registry. run automatically when the module is imported.STRING
HIGH…e/langchain_core/messages/block_translators/bedrock.py0register the bedrock translator with the central registry. run automatically when the module is imported.STRING
HIGH…re/langchain_core/messages/block_translators/openai.py0convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not recSTRING
HIGH…langchain_core/messages/block_translators/anthropic.py0convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not recSTRING
HIGH…in_core/messages/block_translators/bedrock_converse.py0convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not recSTRING
HIGH…re/langchain_core/messages/block_translators/openai.py0convert a v1 message to the chat completions format.STRING
HIGHlibs/partners/fireworks/langchain_fireworks/_compat.py0convert a v1 message to the chat completions format.STRING
HIGH…artners/openai/langchain_openai/chat_models/_compat.py0convert a v1 message to the chat completions format.STRING
HIGHlibs/core/langchain_core/callbacks/streaming_stdout.py0callback handler streams to stdout on new llm token.STRING
HIGH…gchain/langchain_classic/callbacks/streaming_stdout.py0callback handler streams to stdout on new llm token.STRING
HIGH…chain_classic/callbacks/streaming_stdout_final_only.py0callback handler streams to stdout on new llm token.STRING
344 more matches not shown…
Docstring Block Structure289 hits · 1445 pts
SeverityFileLineSnippetContext
HIGHAGENTS.md235Send an email to a recipient with specified priority. Any additional context about the function can go here. ASTRING
HIGHlibs/text-splitters/langchain_text_splitters/html.py209Fetch text content from a URL and split it into documents. Args: url: The URL to fetch content fromSTRING
HIGHlibs/text-splitters/langchain_text_splitters/html.py253Private method that performs a DFS traversal over the DOM and yields. Document objects on-the-fly. This approacSTRING
HIGHlibs/text-splitters/langchain_text_splitters/html.py455Split an HTML document into sections based on specified header tags. This method uses BeautifulSoup to parse thSTRING
HIGHlibs/text-splitters/langchain_text_splitters/html.py517Convert specific HTML tags to headers using an XSLT transformation. This method uses an XSLT file to transform STRING
HIGH…s/text-splitters/langchain_text_splitters/character.py184Retrieve a list of separators specific to the given language. Args: language: The language for whicSTRING
HIGHlibs/text-splitters/langchain_text_splitters/json.py121Splits JSON into a list of JSON chunks. Args: json_data: The JSON data to be split. conSTRING
HIGHlibs/text-splitters/langchain_text_splitters/base.py242Build a `tiktoken`-based length function. Shared by `from_tiktoken_encoder` on both `TextSplitter` and STRING
HIGHlibs/text-splitters/langchain_text_splitters/base.py290Text splitter that uses `tiktoken` encoder to count length. Args: encoding_name: The name of the tiSTRING
HIGHlibs/text-splitters/langchain_text_splitters/base.py379Text splitter that uses `tiktoken` encoder to count length. Unlike the base implementation, this also seeds theSTRING
HIGHlibs/core/langchain_core/retrievers.py182Invoke the retriever to get relevant documents. Main entry point for synchronous retriever invocations. STRING
HIGHlibs/core/langchain_core/retrievers.py243Asynchronously invoke the retriever to get relevant documents. Main entry point for asynchronous retriever invoSTRING
HIGHlibs/core/langchain_core/_import_utils.py9Import an attribute from a module located in a package. This utility function is used in custom `__getattr__` methoSTRING
HIGHlibs/core/langchain_core/language_models/chat_models.py219Generate from a stream. Args: stream: Iterator of `ChatGenerationChunk`. Raises: ValueError: ISTRING
HIGHlibs/core/langchain_core/language_models/chat_models.py2392Model wrapper that returns outputs formatted to match the given schema. Args: schema: The output scSTRING
HIGHlibs/core/langchain_core/language_models/llms.py82Create a retry decorator for a given LLM and provided a list of error types. Args: error_types: List of errSTRING
HIGHlibs/core/langchain_core/language_models/llms.py164Get prompts that are already cached. Args: params: Dictionary of parameters. prompts: List of prompSTRING
HIGHlibs/core/langchain_core/language_models/llms.py200Get prompts that are already cached. Async version. Args: params: Dictionary of parameters. promptsSTRING
HIGHlibs/core/langchain_core/language_models/llms.py238Update the cache and get the LLM output. Args: cache: Cache object. existing_prompts: Dictionary ofSTRING
HIGHlibs/core/langchain_core/language_models/llms.py271Update the cache and get the LLM output. Async version. Args: cache: Cache object. existing_promptsSTRING
HIGHlibs/core/langchain_core/language_models/llms.py864Pass a sequence of prompts to a model and return generations. This method should make use of batched calls for STRING
HIGHlibs/core/langchain_core/language_models/llms.py1145Asynchronously pass a sequence of prompts to a model and return generations. This method should make use of batSTRING
HIGHlibs/core/langchain_core/tools/convert.py90Convert Python functions and `Runnables` to LangChain tools. Can be used as a decorator with or without arguments tSTRING
HIGHlibs/core/langchain_core/tools/structured.py203Create tool from a given function. A classmethod that helps to create a tool from a function. Args: STRING
HIGHlibs/core/langchain_core/tools/simple.py75Convert tool input to Pydantic model. Args: tool_input: The input to the tool. tool_calSTRING
HIGHlibs/core/langchain_core/tools/simple.py180Initialize tool from a function. Args: func: The function to create the tool from. nameSTRING
HIGHlibs/core/langchain_core/tools/base.py224Check if all Pydantic annotations in a function are from v1. Args: signature: The function signature to cheSTRING
HIGHlibs/core/langchain_core/tools/base.py781Parse and validate tool input using the args schema. Args: tool_input: The raw input to the tool. STRING
HIGHlibs/core/langchain_core/tools/base.py973Convert tool input to positional and keyword arguments. Args: tool_input: The input to the tool. STRING
HIGHlibs/core/langchain_core/tools/base.py1025Run the tool. Args: tool_input: The input to the tool. verbose: Whether to log the toolSTRING
HIGHlibs/core/langchain_core/tools/base.py1153Run the tool asynchronously. Args: tool_input: The input to the tool. verbose: Whether STRING
HIGHlibs/core/langchain_core/tools/base.py1286Handle validation errors based on the configured flag. Args: e: The validation error that occurred. STRING
HIGHlibs/core/langchain_core/tools/base.py1321Convert a `ToolException` into handled tool output content. Args: e: The tool exception that occurred. STRING
HIGHlibs/core/langchain_core/messages/content.py1005Create an `ImageContentBlock`. Args: url: URL of the image. base64: Base64-encoded image data. STRING
HIGHlibs/core/langchain_core/messages/content.py1067Create a `VideoContentBlock`. Args: url: URL of the video. base64: Base64-encoded video data. STRING
HIGHlibs/core/langchain_core/messages/content.py1133Create an `AudioContentBlock`. Args: url: URL of the audio. base64: Base64-encoded audio data. STRING
HIGHlibs/core/langchain_core/messages/content.py1199Create a `FileContentBlock`. Args: url: URL of the file. base64: Base64-encoded file data. STRING
HIGHlibs/core/langchain_core/messages/utils.py255Get the type string for XML message element. Args: m: The message to get the type string for. humanSTRING
HIGHlibs/core/langchain_core/messages/utils.py308Convert a sequence of messages to strings and concatenate them into one string. Args: messages: Messages toSTRING
HIGHlibs/core/langchain_core/messages/utils.py615Create a message from a `Message` type and content string. Args: message_type: the type of the message (e.gSTRING
HIGHlibs/core/langchain_core/messages/utils.py720Instantiate a `Message` from a variety of message formats. The message format can be one of the following: - `STRING
HIGHlibs/core/langchain_core/messages/utils.py881Filter messages based on `name`, `type` or `id`. Args: messages: Sequence Message-like objects to filter. STRING
HIGHlibs/core/langchain_core/messages/utils.py1161Trim messages to be below a token count. `trim_messages` can be used to reduce the size of a chat history to a specSTRING
HIGHlibs/core/langchain_core/messages/utils.py1569Convert LangChain messages into OpenAI message dicts. Args: messages: Message-like object or iterable of obSTRING
HIGHlibs/core/langchain_core/messages/base.py413Message chunks support concatenation with other message chunks. This functionality is useful to combine messageSTRING
HIGH…re/langchain_core/messages/block_translators/openai.py23Convert `ImageContentBlock` to format expected by OpenAI Chat Completions. Args: block: The image content bSTRING
HIGH…re/langchain_core/messages/block_translators/openai.py62Format standard data content block to format expected by OpenAI. "Standard data content block" can include old-stylSTRING
HIGH…angchain_core/example_selectors/semantic_similarity.py155Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on querSTRING
HIGH…angchain_core/example_selectors/semantic_similarity.py199Async create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based oSTRING
HIGH…angchain_core/example_selectors/semantic_similarity.py288Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on Max STRING
HIGH…angchain_core/example_selectors/semantic_similarity.py335Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on Max STRING
HIGHlibs/core/langchain_core/callbacks/manager.py2403Configure the callback manager. Args: callback_manager_cls: The callback manager class. inheritableSTRING
HIGHlibs/core/langchain_core/_security/_ssrf_protection.py47Validate a URL for SSRF protection. This function validates URLs to prevent Server-Side Request Forgery (SSRF) attaSTRING
HIGHlibs/core/langchain_core/_api/__init__.py61Dynamically import and return an attribute from a submodule. This function enables lazy loading of API functions frSTRING
HIGHlibs/core/langchain_core/utils/iter.py207Utility batching function. Args: size: The size of the batch. If `None`, returns a single batcSTRING
HIGHlibs/core/langchain_core/utils/env.py61Get a value from a dictionary or an environment variable. Args: key: The key to look up in the dictionary. STRING
HIGHlibs/core/langchain_core/utils/formatting.py26Format a string using only keyword arguments. Overrides the base `vformat` to reject positional arguments, ensuSTRING
HIGHlibs/core/langchain_core/utils/_merge.py7Merge dictionaries. Merge many dicts, handling specific scenarios where a key exists in both dictionaries but hSTRING
HIGHlibs/core/langchain_core/utils/_merge.py181Merge two objects. It handles specific scenarios where a key exists in both dictionaries but has a value of `NoSTRING
HIGHlibs/core/langchain_core/utils/function_calling.py164Converts a Pydantic model to a function description for the OpenAI API. Args: model: The Pydantic model to STRING
229 more matches not shown…
Modern Structural Boilerplate1150 hits · 1144 pts
SeverityFileLineSnippetContext
LOW…bs/text-splitters/langchain_text_splitters/__init__.py51__all__ = [CODE
LOWlibs/text-splitters/langchain_text_splitters/base.py27logger = logging.getLogger(__name__)CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py304 def _setup(self) -> None:CODE
LOWlibs/core/langchain_core/globals.py18def set_verbose(value: bool) -> None: # noqa: FBT001CODE
LOWlibs/core/langchain_core/globals.py37def set_debug(value: bool) -> None: # noqa: FBT001CODE
LOWlibs/core/langchain_core/globals.py56def set_llm_cache(value: Optional["BaseCache"]) -> None:CODE
LOWlibs/core/langchain_core/rate_limiters.py251__all__ = [CODE
LOWlibs/core/langchain_core/language_models/llms.py66logger = logging.getLogger(__name__)CODE
LOW…/core/langchain_core/language_models/_compat_bridge.py837__all__ = [CODE
LOW…s/core/langchain_core/language_models/model_profile.py10logger = logging.getLogger(__name__)CODE
LOW…re/langchain_core/language_models/chat_model_stream.py238 def set_start(self, cb: Callable[[], None] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py242 def set_request_more(self, cb: Callable[[], bool] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py367 def set_start(self, cb: Callable[[], Awaitable[None]] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py371 def set_arequest_more(self, cb: Callable[[], Awaitable[bool]] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py630 def set_message_id(self, message_id: str) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1187 def set_start(self, cb: Callable[[], None] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1194 def set_request_more(self, cb: Callable[[], bool]) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1335 def set_arequest_more(self, cb: Callable[[], Awaitable[bool]] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1356 def set_start(self, cb: Callable[[], Awaitable[None]] | None) -> None:CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1518__all__ = [CODE
LOWlibs/core/langchain_core/messages/ai.py35logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/messages/utils.py65logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/callbacks/manager.py48logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/_security/__init__.py25__all__ = [CODE
LOWlibs/core/langchain_core/utils/html.py8logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/utils/function_calling.py42logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/utils/mustache.py21logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/utils/uuid.py57__all__ = ["uuid7"]CODE
LOWlibs/core/langchain_core/runnables/graph_png.py205 def update_styles(viz: Any, graph: Graph) -> None:CODE
LOWlibs/core/langchain_core/vectorstores/utils.py36logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/vectorstores/base.py38logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/load/serializable.py18logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/output_parsers/openai_tools.py23logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/output_parsers/__init__.py52__all__ = [CODE
LOWlibs/core/langchain_core/output_parsers/pydantic.py137__all__ = [CODE
LOWlibs/core/langchain_core/output_parsers/json.py134__all__ = [CODE
LOWlibs/core/langchain_core/prompts/loading.py19logger = logging.getLogger(__name__)CODE
LOW…s/core/langchain_core/document_loaders/blob_loaders.py38__all__ = ["Blob", "BlobLoader", "PathLike"]CODE
LOWlibs/core/langchain_core/tracers/evaluation.py26logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/tracers/core.py36logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/tracers/_streaming.py50__all__ = [CODE
LOWlibs/core/langchain_core/tracers/event_stream.py55logger = logging.getLogger(__name__)CODE
LOWlibs/core/langchain_core/tracers/schemas.py12__all__ = [CODE
LOWlibs/core/langchain_core/tracers/langchain.py35logger = logging.getLogger(__name__)CODE
LOW⚡libs/core/langchain_core/tracers/langchain.py345 def _update_run_single(run: Run) -> None:CODE
LOWlibs/core/langchain_core/tracers/base.py30logger = logging.getLogger(__name__)CODE
LOWlibs/langchain/langchain_classic/serpapi.py23__all__ = [CODE
LOWlibs/langchain/langchain_classic/text_splitter.py29__all__ = [CODE
LOWlibs/langchain/langchain_classic/example_generator.py5__all__ = ["generate_example"]CODE
LOWlibs/langchain/langchain_classic/globals.py12__all__ = [CODE
LOWlibs/langchain/langchain_classic/cache.py55__all__ = [CODE
LOWlibs/langchain/langchain_classic/__init__.py377__all__ = [CODE
LOWlibs/langchain/langchain_classic/formatting.py5__all__ = ["StrictFormatter", "formatter"]CODE
LOWlibs/langchain/langchain_classic/sql_database.py23__all__ = [CODE
LOWlibs/langchain/langchain_classic/base_language.py7__all__ = ["BaseLanguageModel"]CODE
LOWlibs/langchain/langchain_classic/input.py10__all__ = [CODE
LOWlibs/langchain/langchain_classic/requests.py31__all__ = [CODE
LOW…n/langchain_classic/chat_loaders/facebook_messenger.py32__all__ = ["FolderFacebookMessengerChatLoader", "SingleFileFacebookMessengerChatLoader"]CODE
LOW…s/langchain/langchain_classic/chat_loaders/whatsapp.py21__all__ = [CODE
LOW…s/langchain/langchain_classic/chat_loaders/telegram.py21__all__ = [CODE
1090 more matches not shown…
Decorative Section Separators244 hits · 821 pts
SeverityFileLineSnippetContext
MEDIUM…s/text-splitters/langchain_text_splitters/character.py523 # ---------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py177# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py179# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py267# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py269# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py387# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…bs/core/tests/unit_tests/test_ssrf_policy_transport.py389# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py227# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py230# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py306# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py308# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py349# ---------------------------------------------------------------------------COMMENT
MEDIUM…bs/core/tests/unit_tests/test_ssrf_policy_transport.py351# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py146# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py148# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py844# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…tests/unit_tests/language_models/test_compat_bridge.py846# ---------------------------------------------------------------------------COMMENT
MEDIUM…tests/unit_tests/language_models/test_compat_bridge.py1107# ---------------------------------------------------------------------------COMMENT
MEDIUM…tests/unit_tests/language_models/test_compat_bridge.py1109# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit_tests/language_models/test_chat_model_stream.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit_tests/language_models/test_chat_model_stream.py25# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit_tests/language_models/test_chat_model_stream.py345# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit_tests/language_models/test_chat_model_stream.py347# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unit_tests/language_models/test_chat_model_stream.py840# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unit_tests/language_models/test_chat_model_stream.py842# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/tests/unit_tests/messages/test_utils.py3030# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/tests/unit_tests/messages/test_utils.py3032# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py93# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py147# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py149# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py224# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py226# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py462# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py464# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py525# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py527# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py585# ---------------------------------------------------------------------------COMMENT
MEDIUM…/core/langchain_core/language_models/_compat_bridge.py587# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py48# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py162# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py213# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py215# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py339# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py341# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py551# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py553# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py1120# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py1122# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py1276# ---------------------------------------------------------------------------COMMENT
MEDIUM…re/langchain_core/language_models/chat_model_stream.py1278# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/langchain_core/_security/_policy.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/langchain_core/_security/_policy.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/langchain_core/_security/_policy.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/langchain_core/_security/_policy.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/core/langchain_core/_security/_policy.py121# ---------------------------------------------------------------------------COMMENT
184 more matches not shown…
Excessive Try-Catch Wrapping282 hits · 452 pts
SeverityFileLineSnippetContext
LOWlibs/text-splitters/scripts/check_imports.py20 except Exception: # noqa: BLE001CODE
LOWlibs/core/tests/unit_tests/conftest.py92 except Exception:CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v1.py1556 except Exception:CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v1.py1673 except Exception:CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v2.py1513 except Exception:CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v2.py1630 except Exception:CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v2.py1975 except Exception as e:CODE
LOWlibs/core/langchain_core/sys_info.py96 except Exception:CODE
LOWlibs/core/langchain_core/sys_info.py105 except Exception:CODE
LOWlibs/core/langchain_core/sys_info.py129 except Exception:CODE
LOWlibs/core/langchain_core/retrievers.py227 except Exception as e:CODE
LOWlibs/core/langchain_core/retrievers.py288 except Exception as e:CODE
LOWlibs/core/langchain_core/agents.py231 except Exception:CODE
LOWlibs/core/langchain_core/agents.py251 except Exception:CODE
LOW⚡libs/core/langchain_core/language_models/chat_models.py120 except Exception:CODE
LOW⚡libs/core/langchain_core/language_models/chat_models.py123 except Exception:CODE
LOW⚡libs/core/langchain_core/language_models/chat_models.py132 except Exception:CODE
LOWlibs/core/langchain_core/language_models/llms.py114 except Exception as e:CODE
LOWlibs/core/langchain_core/language_models/llms.py446 except Exception as e:CODE
LOWlibs/core/langchain_core/language_models/llms.py492 except Exception as e:CODE
LOW…/core/langchain_core/language_models/_compat_bridge.py187 except Exception:CODE
LOWlibs/core/langchain_core/tools/structured.py65 except Exception: # a schema holding an arbitrary type has no JSON schemaCODE
LOWlibs/core/langchain_core/tools/base.py960 except Exception:CODE
LOWlibs/core/langchain_core/tools/base.py1482 except Exception:CODE
LOWlibs/core/langchain_core/tools/base.py1508 except Exception:CODE
LOWlibs/core/langchain_core/tools/base.py1703 except Exception:CODE
LOWlibs/core/langchain_core/messages/ai.py328 except Exception:CODE
LOWlibs/core/langchain_core/messages/ai.py568 except Exception:CODE
LOW…gchain_core/messages/block_translators/google_genai.py439 except Exception:CODE
LOWlibs/core/langchain_core/callbacks/manager.py340 except Exception as e:CODE
LOWlibs/core/langchain_core/callbacks/manager.py388 except Exception as e:CODE
LOWlibs/core/langchain_core/callbacks/manager.py400 except Exception as e:CODE
LOWlibs/core/langchain_core/callbacks/manager.py442 except Exception as e:CODE
LOWlibs/core/langchain_core/callbacks/manager.py2543 except Exception as e:CODE
LOWlibs/core/langchain_core/utils/html.py107 except Exception as e:CODE
LOWlibs/core/langchain_core/utils/function_calling.py277 except Exception:CODE
LOWlibs/core/langchain_core/runnables/configurable.py185 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/configurable.py228 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/router.py159 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/router.py196 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/base.py970 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/base.py1041 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/base.py1107 except Exception as e:CODE
LOWlibs/core/langchain_core/runnables/base.py1179 except Exception as e:CODE
LOW⚡libs/core/langchain_core/load/serializable.py91 except Exception as _:CODE
LOW⚡libs/core/langchain_core/load/serializable.py96 except Exception as _:CODE
LOW⚡libs/core/langchain_core/load/serializable.py99 except Exception as _:CODE
LOW⚡libs/core/langchain_core/load/serializable.py102 except Exception as _:CODE
LOWlibs/core/langchain_core/load/serializable.py339 except Exception as _:CODE
LOWlibs/core/langchain_core/load/serializable.py395 except Exception:CODE
LOWlibs/core/langchain_core/document_loaders/langsmith.py182 except Exception:CODE
LOWlibs/core/langchain_core/indexing/api.py216 except Exception as e:CODE
LOWlibs/core/langchain_core/tracers/evaluation.py147 except Exception:CODE
LOWlibs/core/langchain_core/tracers/core.py147 except Exception:CODE
LOWlibs/core/langchain_core/tracers/stdout.py26 except Exception:CODE
LOW⚡libs/core/langchain_core/tracers/langchain.py339 except Exception as e:CODE
LOW⚡libs/core/langchain_core/tracers/langchain.py351 except Exception as e:CODE
MEDIUM⚡libs/core/scripts/check_version.py36 print(f"Error: {pyproject_path} not found")CODE
MEDIUM⚡libs/core/scripts/check_version.py40 print(f"Error: {version_path} not found")CODE
MEDIUM⚡libs/core/scripts/check_version.py47 print("Error: Could not find version in pyproject.toml")CODE
222 more matches not shown…
Cross-Language Confusion69 hits · 440 pts
SeverityFileLineSnippetContext
HIGH…text-splitters/tests/unit_tests/test_text_splitters.py1092 else if (age >= 18 && age < 65)CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py33 proj.push("a")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py34 proj.push("b")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py40 proj.push("x")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py93 proj.push("Hello")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py94 proj.push(" world")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py104 delta_proj.push(cast("str", 1))CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py152 proj.push("a")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py162 proj.push("x")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py164 proj.push("y")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py182 proj.push("partial")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py196 proj.push(next(deltas))CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py219 proj.push(value)CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py235 proj.push("only")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py320 proj.push("Hello")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py321 proj.push(" world")CODE
HIGH⚡…s/unit_tests/language_models/test_chat_model_stream.py330 delta_proj.push(cast("str", 1))CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py53 proj.push(val)CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py62 proj.push("partial")CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py75 proj.push("a")CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py76 proj.push("b")CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py123 proj.push("Hi")CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py135 proj.push("x")CODE
HIGH…s/unit_tests/language_models/test_chat_model_stream.py140 proj.push("hello")CODE
HIGH…ests/unit_tests/output_parsers/test_pydantic_parser.py130 "additional_fields": null,CODE
HIGH⚡…re/langchain_core/language_models/chat_model_stream.py868 self._reasoning_proj.push(full_r)CODE
HIGH⚡…re/langchain_core/language_models/chat_model_stream.py872 self._reasoning_proj.push(tail)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py714 self._text_proj.push(delta_text)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py723 self._reasoning_proj.push(delta_r)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py743 self._tool_calls_proj.push(chunk_block)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py773 self._tool_calls_proj.push(legacy_chunk_block)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py811 self._tool_calls_proj.push(fallback_chunk_block)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py839 self._text_proj.push(full_text)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py845 self._text_proj.push(tail)CODE
HIGH…re/langchain_core/language_models/chat_model_stream.py1503 self._events_proj.push(cast("MessagesData", event))CODE
HIGHlibs/core/langchain_core/utils/json_schema.py184 # Case 4: Primitive value (string, number, boolean, null) - return unchangedCOMMENT
HIGH⚡…s/langchain/langchain_classic/chains/natbot/crawler.py101 "(document.scrollingElement || document.body).scrollTop = "CODE
HIGH⚡…s/langchain/langchain_classic/chains/natbot/crawler.py102 "(document.scrollingElement || document.body).scrollTop - "CODE
HIGH⚡…s/langchain/langchain_classic/chains/natbot/crawler.py107 "(document.scrollingElement || document.body).scrollTop = "CODE
HIGH⚡…s/langchain/langchain_classic/chains/natbot/crawler.py108 "(document.scrollingElement || document.body).scrollTop + "CODE
HIGH…langchain_v1/langchain/agents/_subagent_transformer.py195 self._log.push(handle)CODE
HIGH…langchain_v1/langchain/agents/_subagent_transformer.py279 handle._mux.push(event) # noqa: SLF001CODE
HIGHlibs/partners/groq/langchain_groq/chat_models.py1458 # Groq sends 'null' (JSON null) for tools with no arguments, but weSTRING
HIGHlibs/partners/groq/langchain_groq/chat_models.py1537 # Groq sends 'null' (JSON null) for tools with no arguments, but weSTRING
HIGH…rtners/perplexity/tests/unit_tests/test_chat_models.py357 # Empty content alongside tool_calls must be sent as null, not "".COMMENT
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py529DEEPSEEK_STREAM_DATA = """{"id":"d3610c24e6b42518a7883ea57c3ea2c3","choices":[{"index":0,"delta":{"content":"","role":"aCODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py530{"choices":[{"delta":{"content":"我是","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py531{"choices":[{"delta":{"content":"Deep","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py532{"choices":[{"delta":{"content":"Seek","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py533{"choices":[{"delta":{"content":" Chat","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py534{"choices":[{"delta":{"content":",","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py535{"choices":[{"delta":{"content":"一个","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py536{"choices":[{"delta":{"content":"由","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py537{"choices":[{"delta":{"content":"深度","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py538{"choices":[{"delta":{"content":"求","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py539{"choices":[{"delta":{"content":"索","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py540{"choices":[{"delta":{"content":"公司","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py541{"choices":[{"delta":{"content":"开发的","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":172CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py542{"choices":[{"delta":{"content":"智能","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
HIGH⚡…tners/openai/tests/unit_tests/chat_models/test_base.py543{"choices":[{"delta":{"content":"助手","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721CODE
9 more matches not shown…
Deep Nesting332 hits · 289 pts
SeverityFileLineSnippetContext
LOWlibs/text-splitters/tests/unit_tests/conftest.py23CODE
LOWlibs/text-splitters/langchain_text_splitters/html.py252CODE
LOWlibs/text-splitters/langchain_text_splitters/html.py428CODE
LOWlibs/text-splitters/langchain_text_splitters/html.py874CODE
LOWlibs/text-splitters/langchain_text_splitters/html.py927CODE
LOW…bs/text-splitters/langchain_text_splitters/markdown.py134CODE
LOW…bs/text-splitters/langchain_text_splitters/markdown.py372CODE
LOWlibs/text-splitters/langchain_text_splitters/json.py85CODE
LOWlibs/text-splitters/langchain_text_splitters/base.py167CODE
LOWlibs/core/tests/unit_tests/conftest.py49CODE
LOWlibs/core/tests/unit_tests/pydantic_utils.py18CODE
LOWlibs/core/tests/unit_tests/pydantic_utils.py40CODE
LOWlibs/core/tests/unit_tests/test_pydantic_imports.py7CODE
LOWlibs/core/tests/unit_tests/messages/test_utils.py593CODE
LOWlibs/core/tests/unit_tests/messages/test_utils.py605CODE
LOWlibs/core/tests/unit_tests/utils/test_utils.py202CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py343CODE
LOW…/tests/unit_tests/runnables/test_runnable_events_v2.py2156CODE
LOWlibs/core/langchain_core/sys_info.py11CODE
LOWlibs/core/langchain_core/language_models/chat_models.py112CODE
LOWlibs/core/langchain_core/language_models/chat_models.py150CODE
LOWlibs/core/langchain_core/language_models/chat_models.py727CODE
LOWlibs/core/langchain_core/language_models/chat_models.py858CODE
LOWlibs/core/langchain_core/language_models/chat_models.py1892CODE
LOWlibs/core/langchain_core/language_models/chat_models.py2051CODE
LOWlibs/core/langchain_core/language_models/llms.py77CODE
LOWlibs/core/langchain_core/language_models/llms.py135CODE
LOWlibs/core/langchain_core/language_models/llms.py97CODE
LOWlibs/core/langchain_core/language_models/llms.py514CODE
LOW…ore/langchain_core/language_models/fake_chat_models.py266CODE
LOW…/core/langchain_core/language_models/_compat_bridge.py152CODE
LOW…/core/langchain_core/language_models/_compat_bridge.py301CODE
LOW…re/langchain_core/language_models/chat_model_stream.py246CODE
LOW…re/langchain_core/language_models/chat_model_stream.py453CODE
LOW…re/langchain_core/language_models/chat_model_stream.py663CODE
LOW…re/langchain_core/language_models/chat_model_stream.py698CODE
LOW…re/langchain_core/language_models/chat_model_stream.py876CODE
LOW…re/langchain_core/language_models/chat_model_stream.py1238CODE
LOWlibs/core/langchain_core/language_models/_utils.py33CODE
LOWlibs/core/langchain_core/language_models/_utils.py140CODE
LOWlibs/core/langchain_core/tools/structured.py188CODE
LOWlibs/core/langchain_core/tools/base.py778CODE
LOWlibs/core/langchain_core/tools/base.py934CODE
LOWlibs/core/langchain_core/tools/base.py1009CODE
LOWlibs/core/langchain_core/tools/base.py1137CODE
LOWlibs/core/langchain_core/messages/ai.py243CODE
LOWlibs/core/langchain_core/messages/ai.py509CODE
LOWlibs/core/langchain_core/messages/ai.py604CODE
LOWlibs/core/langchain_core/messages/utils.py297CODE
LOWlibs/core/langchain_core/messages/utils.py606CODE
LOWlibs/core/langchain_core/messages/utils.py719CODE
LOWlibs/core/langchain_core/messages/utils.py870CODE
LOWlibs/core/langchain_core/messages/utils.py1015CODE
LOWlibs/core/langchain_core/messages/utils.py1562CODE
LOWlibs/core/langchain_core/messages/utils.py1983CODE
LOWlibs/core/langchain_core/messages/utils.py2257CODE
LOWlibs/core/langchain_core/messages/tool.py92CODE
LOWlibs/core/langchain_core/messages/base.py366CODE
LOWlibs/core/langchain_core/messages/base.py200CODE
LOW…gchain_core/messages/block_translators/langchain_v0.py46CODE
272 more matches not shown…
Empty Error Handlers52 hits · 258 pts
SeverityFileLineSnippetContext
HIGHlibs/core/tests/unit_tests/test_pydantic_imports.py22except TypeError:CODE
HIGH…/tests/unit_tests/runnables/test_runnable_events_v1.py1556except Exception:CODE
HIGH…/tests/unit_tests/runnables/test_runnable_events_v1.py1673except Exception:CODE
HIGH…/tests/unit_tests/runnables/test_runnable_events_v2.py1513except Exception:CODE
HIGH…/tests/unit_tests/runnables/test_runnable_events_v2.py1630except Exception:CODE
HIGHlibs/core/langchain_core/messages/ai.py268except NotImplementedError:CODE
HIGHlibs/core/langchain_core/messages/ai.py470except NotImplementedError:CODE
HIGHlibs/core/langchain_core/messages/ai.py627except json.JSONDecodeError:CODE
HIGH…langchain_core/messages/block_translators/anthropic.py393except json.JSONDecodeError:CODE
HIGH…langchain_core/messages/block_translators/anthropic.py444except json.JSONDecodeError:CODE
HIGHlibs/core/langchain_core/callbacks/usage.py66except AttributeError:CODE
HIGHlibs/core/langchain_core/_security/_policy.py313except ValueError:CODE
HIGHlibs/core/langchain_core/utils/pydantic.py452except TypeError:CODE
HIGHlibs/core/langchain_core/utils/mustache.py430except (AttributeError, KeyError, IndexError, ValueError, TypeError):CODE
HIGHlibs/core/langchain_core/utils/json.py71except json.JSONDecodeError:CODE
HIGHlibs/core/langchain_core/runnables/base.py4547except ValueError:CODE
HIGHlibs/core/langchain_core/runnables/base.py4958except AttributeError:CODE
HIGHlibs/core/langchain_core/runnables/base.py4973except ValueError:CODE
HIGHlibs/core/langchain_core/runnables/base.py5041except ValueError:CODE
HIGHlibs/core/langchain_core/runnables/base.py2584except (StopIteration, GeneratorExit):CODE
HIGHlibs/core/langchain_core/runnables/base.py2688except StopAsyncIteration:CODE
HIGHlibs/core/langchain_core/runnables/base.py4370except StopAsyncIteration:CODE
HIGHlibs/core/langchain_core/runnables/base.py4300except StopIteration:CODE
HIGH…ain/tests/unit_tests/agents/test_mrkl_output_parser.py103except OutputParserException:CODE
HIGH…tests/agents/output_parsers/test_react_single_input.py68except OutputParserException:CODE
HIGH…ts/unit_tests/output_parsers/test_structured_parser.py26except OutputParserException:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py138except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py146except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py154except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py162except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py170except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py178except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py187except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py196except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py204except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py214except ImportError:CODE
HIGH…gchain/langchain_classic/retrievers/self_query/base.py224except ImportError:CODE
HIGH…angchain/langchain_classic/evaluation/qa/eval_chain.py50except IndexError:CODE
HIGH…angchain_classic/evaluation/embedding_distance/base.py120except ImportError:CODE
HIGH…angchain_classic/evaluation/embedding_distance/base.py129except ImportError:CODE
HIGH…langchain_v1/langchain/agents/middleware/shell_tool.py430except ProcessLookupError:CODE
HIGH…ain_v1/tests/unit_tests/agents/test_response_format.py229except Exception: # noqa: S110CODE
HIGH…gents/middleware/implementations/test_tool_emulator.py432except ImportError:CODE
HIGH…/partners/mistralai/langchain_mistralai/chat_models.py400except KeyError:CODE
HIGH…/partners/anthropic/langchain_anthropic/chat_models.py856except json.JSONDecodeError:CODE
HIGH…artners/anthropic/langchain_anthropic/_client_utils.py29except Exception: # noqa: S110CODE
HIGH…artners/anthropic/langchain_anthropic/_client_utils.py42except Exception: # noqa: S110CODE
HIGH…tners/openai/tests/unit_tests/chat_models/test_base.py4816except OpenAIRefusalError:CODE
HIGH…s/openai/langchain_openai/chat_models/_client_utils.py371except Exception: # noqa: S110CODE
HIGH…s/openai/langchain_openai/chat_models/_client_utils.py384except Exception: # noqa: S110CODE
HIGH…s/partners/openai/langchain_openai/chat_models/base.py579except KeyError:CODE
HIGH…s/partners/openai/langchain_openai/chat_models/base.py5325except json.JSONDecodeError:CODE
Hallucination Indicators21 hits · 215 pts
SeverityFileLineSnippetContext
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py345 run = self.client.beta.threads.runs.submit_tool_outputs(**tool_outputs)CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py362 _ = self.client.beta.threads.messages.create(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py372 run = self.client.beta.threads.runs.submit_tool_outputs(**input)CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py477 run = await self.async_client.beta.threads.runs.submit_tool_outputs(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py495 _ = await self.async_client.beta.threads.messages.create(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py505 run = await self.async_client.beta.threads.runs.submit_tool_outputs(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py562 return self.client.beta.threads.runs.create(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py603 messages = self.client.beta.threads.messages.list(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py673 run = self.client.beta.threads.runs.retrieve(run_id, thread_id=thread_id)CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py719 return await self.async_client.beta.threads.runs.create(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py760 messages = await self.async_client.beta.threads.messages.list(CODE
CRITICAL…hain/langchain_classic/agents/openai_assistant/base.py826 run = await self.async_client.beta.threads.runs.retrieve(CODE
CRITICAL⚡…plexity/tests/unit_tests/test_chat_models_responses.py251 llm.client.chat.completions.create.assert_called_once()CODE
CRITICAL…plexity/tests/unit_tests/test_chat_models_responses.py185 llm.client.chat.completions.create.assert_called_once()CODE
CRITICAL…plexity/tests/unit_tests/test_chat_models_responses.py205 llm.client.chat.completions.create.assert_not_called()CODE
CRITICAL…/partners/anthropic/langchain_anthropic/chat_models.py2175 return self._client.beta.messages.with_raw_response.create(**payload)CODE
CRITICAL…/partners/anthropic/langchain_anthropic/chat_models.py2184 return await self._async_client.beta.messages.with_raw_response.create(CODE
CRITICAL…s/partners/openai/langchain_openai/chat_models/base.py1885 response_stream = self.root_client.beta.chat.completions.stream(CODE
CRITICAL…s/partners/openai/langchain_openai/chat_models/base.py1951 self.root_client.chat.completions.with_raw_response.parse(**payload)CODE
CRITICAL…s/partners/openai/langchain_openai/chat_models/base.py2180 response_stream = self.root_async_client.beta.chat.completions.stream(CODE
CRITICAL…s/partners/openai/langchain_openai/chat_models/base.py2250 raw_response = await self.root_async_client.chat.completions.with_raw_response.parse( # noqa: E501CODE
Redundant / Tautological Comments63 hits · 100 pts
SeverityFileLineSnippetContext
LOWlibs/text-splitters/tests/unit_tests/conftest.py58 # Iterate through the list of required packagesCOMMENT
LOW⚡…text-splitters/tests/unit_tests/test_text_splitters.py3571# Check if a file existsCOMMENT
LOW…text-splitters/tests/unit_tests/test_text_splitters.py3582 '# Check if a file exists\n$filePath = "C:\\temp\\file.txt"',STRING
LOW…ers/tests/integration_tests/test_nlp_text_splitters.py21 # Check if en_core_web_sm model is availableCOMMENT
LOW…bs/text-splitters/langchain_text_splitters/markdown.py193 # Check if line matches either standard or custom header patternCOMMENT
LOWlibs/core/tests/unit_tests/conftest.py84 # Iterate through the list of required packagesCOMMENT
LOW…s/unit_tests/indexing/test_in_memory_record_manager.py153 # Check if the keys exist in the databaseCOMMENT
LOW…s/unit_tests/indexing/test_in_memory_record_manager.py168 # Check if the keys exist in the databaseCOMMENT
LOW…s/unit_tests/indexing/test_in_memory_record_manager.py262 # Check if the deleted keys are no longer in the databaseCOMMENT
LOW…s/unit_tests/indexing/test_in_memory_record_manager.py277 # Check if the deleted keys are no longer in the databaseCOMMENT
LOWlibs/core/langchain_core/language_models/chat_models.py562 # Check if streaming is implemented.COMMENT
LOWlibs/core/langchain_core/tools/base.py876 # Check if field has an explicit default defined in the schema.COMMENT
LOWlibs/core/langchain_core/messages/utils.py467 # Check if this is an AIMessage with tool callsSTRING
LOWlibs/core/langchain_core/messages/utils.py1996 # Check if all messages already fit within token limitSTRING
LOW…gchain_core/messages/block_translators/langchain_v0.py70 # Check if this is actually a v0 format blockCOMMENT
LOWlibs/core/langchain_core/callbacks/file.py77 # Open the file in the specified mode with UTF-8 encoding.COMMENT
LOWlibs/core/langchain_core/utils/pydantic.py162 # Check if allow_population_by_field_name is enabledCOMMENT
LOWlibs/core/langchain_core/utils/function_calling.py835 # Check if 'required' is a key at the current level or if the schema is empty,COMMENT
LOWlibs/core/langchain_core/runnables/graph_mermaid.py437 # Check if the background color is a hexadecimal color code using regexCOMMENT
LOWlibs/core/langchain_core/load/_validation.py88 # Check if dict needs escaping BEFORE recursing into values.COMMENT
LOWlibs/core/langchain_core/prompts/loading.py90 # Check if template_path exists in config.COMMENT
LOWlibs/langchain/tests/unit_tests/conftest.py72 # Iterate through the list of required packagesCOMMENT
LOW⚡…ngchain/tests/unit_tests/agents/test_agent_iterator.py284 # Check if properties are updatedCOMMENT
LOW⚡…ngchain/tests/unit_tests/agents/test_agent_iterator.py292 # Check if properties are resetCOMMENT
LOW⚡…ngchain/tests/unit_tests/agents/test_agent_iterator.py337 assert outputs[-1]["output"] # Check if there is an outputCODE
LOW…ngchain/tests/unit_tests/agents/test_agent_iterator.py352 assert len(outputs) == 2 # Check if the custom stopping condition is respectedCODE
LOW…/langchain/tests/unit_tests/storage/test_filesystem.py93 # Check if the deleted key is presentCOMMENT
LOW…gchain_classic/callbacks/streaming_aiter_final_only.py92 # Check if the last n tokens match the answer_prefix_tokens list ...COMMENT
LOW…chain_classic/callbacks/streaming_stdout_final_only.py88 # Check if the last n tokens match the answer_prefix_tokens list ...COMMENT
LOW⚡…n/langchain_classic/output_parsers/pandas_dataframe.py54 # Check if the format is [1,3,5]COMMENT
LOW⚡…n/langchain_classic/output_parsers/pandas_dataframe.py57 # Check if the format is [1..5]COMMENT
LOW⚡…n/langchain_classic/output_parsers/pandas_dataframe.py67 # Check if the format is ["column_name"]COMMENT
LOW…/langchain_classic/evaluation/comparison/eval_chain.py263 # Check if the model is GPT-4 if not raise a warningSTRING
LOWlibs/langchain_v1/langchain/agents/factory.py1380 # Check if any requested tools are unknown CLIENT-SIDE toolsCOMMENT
LOW⚡…angchain_v1/langchain/agents/middleware/model_retry.py249 # Check if we should retry this exceptionCOMMENT
LOW⚡…angchain_v1/langchain/agents/middleware/model_retry.py254 # Check if we have more retries leftCOMMENT
LOW⚡…angchain_v1/langchain/agents/middleware/model_retry.py303 # Check if we should retry this exceptionCOMMENT
LOW⚡…angchain_v1/langchain/agents/middleware/model_retry.py308 # Check if we have more retries leftCOMMENT
LOW…gchain_v1/langchain/agents/middleware/tool_emulator.py162 # Check if this tool should be emulatedCOMMENT
LOW…gchain_v1/langchain/agents/middleware/tool_emulator.py217 # Check if this tool should be emulatedCOMMENT
LOW…langchain_v1/langchain/agents/middleware/tool_retry.py316 # Check if retry should apply to this toolCOMMENT
LOW⚡…langchain_v1/langchain/agents/middleware/tool_retry.py333 # Check if we should retry this exceptionCOMMENT
LOW⚡…langchain_v1/langchain/agents/middleware/tool_retry.py338 # Check if we have more retries leftCOMMENT
LOW…langchain_v1/langchain/agents/middleware/tool_retry.py380 # Check if retry should apply to this toolCOMMENT
LOW⚡…langchain_v1/langchain/agents/middleware/tool_retry.py397 # Check if we should retry this exceptionCOMMENT
LOW⚡…langchain_v1/langchain/agents/middleware/tool_retry.py402 # Check if we have more retries leftCOMMENT
LOW…ain_v1/langchain/agents/middleware/model_call_limit.py189 # Check if any limits will be exceeded after the next callCOMMENT
LOWlibs/langchain_v1/tests/unit_tests/conftest.py124 # Iterate through the list of required packagesCOMMENT
LOW…perplexity/tests/integration_tests/test_chat_models.py45 # Check if any chunk has reasoning_stepsCOMMENT
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1715 # Check if the vector configuration has the same dimensionality.COMMENT
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1882 # Check if the vector configuration has the same dimensionality.COMMENT
LOW…/partners/anthropic/langchain_anthropic/chat_models.py2435 # Assign citations to a list if presentCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py445 # Read fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py495 # Read fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py570 # Read fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py902 # Read fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py939 # Write fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py966 # Read fileCOMMENT
LOW…opic/langchain_anthropic/middleware/anthropic_tools.py1003 # Read fileCOMMENT
LOW…bs/partners/openai/langchain_openai/embeddings/base.py613 # Check if adding this chunk would exceed the limitCOMMENT
3 more matches not shown…
Fake / Example Data67 hits · 78 pts
SeverityFileLineSnippetContext
LOW…plitters/tests/integration_tests/test_text_splitter.py88 text = "Lorem ipsum"CODE
LOW⚡…plitters/tests/integration_tests/test_text_splitter.py104 text = "lorem ipsum"CODE
LOW…plitters/tests/integration_tests/test_text_splitter.py151 text = "lorem ipsum"CODE
LOW…/tests/unit_tests/example_selectors/test_similarity.py36 return ["dummy_id"]CODE
LOW…e/tests/unit_tests/output_parsers/test_openai_tools.py1109 "street": "123 Main St",CODE
LOW…e/tests/unit_tests/output_parsers/test_openai_tools.py1125 assert result_v1[0].address.street == "123 Main St" # type: ignore[attr-defined,unused-ignore]CODE
LOWlibs/core/tests/unit_tests/examples/example-utf8.txt1Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temporCODE
LOWlibs/core/tests/unit_tests/examples/example-utf8.txt1Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temporCODE
LOW⚡libs/core/tests/unit_tests/prompts/test_chat.py1093 prompt = ChatPromptTemplate([("placeholder", "{convo}")])CODE
LOW⚡libs/core/tests/unit_tests/prompts/test_chat.py1101 optional_prompt = ChatPromptTemplate([("placeholder", ["{convo}", False])])CODE
LOW⚡libs/core/tests/unit_tests/prompts/test_chat.py1110 prompt = ChatPromptTemplate([{"role": "placeholder", "content": "{convo}"}])CODE
LOW⚡libs/core/tests/unit_tests/prompts/test_chat.py1119 [{"role": "placeholder", "content": ["{convo}", False]}]CODE
LOWlibs/core/tests/unit_tests/prompts/test_chat.py1203 assert dumpd(MessagesPlaceholder("bar")) == snapshot(name="placeholder")CODE
LOWlibs/core/tests/unit_tests/prompts/test_chat.py1256 ("placeholder", "{chat_history}"),CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py9 uid="123", page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py9 uid="123", page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py18 page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py18 page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py23 assert hashed_doc.page_content == "Lorem ipsum dolor sit amet"CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py23 assert hashed_doc.page_content == "Lorem ipsum dolor sit amet"CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py30 page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py30 page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py61 page_content="Lorem ipsum dolor sit amet", metadata={"key": "like a duck"}CODE
LOW⚡…core/tests/unit_tests/indexing/test_hashed_document.py61 page_content="Lorem ipsum dolor sit amet", metadata={"key": "like a duck"}CODE
LOWlibs/core/langchain_core/prompts/chat.py842 ("placeholder", "{conversation}"),STRING
LOWlibs/core/langchain_core/prompts/chat.py1371 elif message_type == "placeholder":CODE
LOW…s/langchain/tests/unit_tests/examples/example-utf8.txt1Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temporCODE
LOW…s/langchain/tests/unit_tests/examples/example-utf8.txt1Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temporCODE
LOW…hain/tests/unit_tests/evaluation/qa/test_eval_chain.py27 example = {"query": "What's my name", "answer": "John Doe"}CODE
LOW…hain/tests/unit_tests/evaluation/qa/test_eval_chain.py28 prediction = {"result": "John Doe"}CODE
LOW…hain/tests/unit_tests/evaluation/qa/test_eval_chain.py48 prediction = {"result": "John Doe"}CODE
LOW…in/langchain_classic/agents/tool_calling_agent/base.py53 ("placeholder", "{chat_history}"),STRING
LOW…in/langchain_classic/agents/tool_calling_agent/base.py55 ("placeholder", "{agent_scratchpad}"),STRING
LOW…s/langchain/langchain_classic/chains/natbot/crawler.py341 attributes[index], ["type", "placeholder", "aria-label", "title", "alt"]CODE
LOW…s/agents/middleware/implementations/test_shell_tool.py136 assert "user@example.com" not in messageCODE
LOW…it_tests/agents/middleware/implementations/test_pii.py309 assert "user@example.com" not in contentCODE
LOW…/partners/fireworks/tests/unit_tests/test_reasoning.py186 api_key="fake-key", # type: ignore[arg-type]CODE
LOW…/partners/fireworks/tests/unit_tests/test_reasoning.py280 api_key="fake-key", # type: ignore[arg-type]CODE
LOW⚡…/partners/fireworks/tests/unit_tests/test_reasoning.py386 api_key="fake-key", http_client=httpx.Client(transport=transport), max_retries=0CODE
LOW⚡…/partners/fireworks/tests/unit_tests/test_reasoning.py389 api_key="fake-key",CODE
LOW⚡…/partners/fireworks/tests/unit_tests/test_reasoning.py395 api_key="fake-key", # type: ignore[arg-type]CODE
LOW⚡…artners/fireworks/tests/unit_tests/test_chat_models.py103 llm = ChatFireworks(model="foo", api_key="fake-key") # type: ignore[arg-type]CODE
LOW⚡…artners/fireworks/tests/unit_tests/test_chat_models.py106 llm = ChatFireworks(model_name="foo", api_key="fake-key") # type: ignore[call-arg, arg-type]CODE
LOW⚡…artners/fireworks/tests/unit_tests/test_chat_models.py153 os.environ.setdefault("FIREWORKS_API_KEY", "fake-key")CODE
LOW…artners/fireworks/tests/unit_tests/test_chat_models.py68 defaults: dict[str, Any] = {"model": MODEL_NAME, "api_key": "fake-key"}CODE
LOW…artners/fireworks/tests/unit_tests/test_chat_models.py758 api_key="fake-key", # type: ignore[arg-type]CODE
LOW…artners/fireworks/tests/unit_tests/test_chat_models.py1509 api_key="fake-key",CODE
LOW…artners/fireworks/tests/unit_tests/test_chat_models.py2246 ChatFireworks(model=MODEL_NAME, api_key="fake-key") # type: ignore[arg-type]CODE
LOW…artners/fireworks/tests/unit_tests/test_chat_models.py2267 api_key="fake-key", # type: ignore[arg-type]CODE
LOW⚡…rks/tests/unit_tests/middleware/test_prompt_caching.py237 api_key="fake-key",CODE
LOW⚡…rks/tests/unit_tests/middleware/test_prompt_caching.py241 api_key="fake-key",CODE
LOW⚡…rks/tests/unit_tests/middleware/test_prompt_caching.py246 api_key="fake-key", # type: ignore[arg-type]CODE
LOW…rks/tests/unit_tests/middleware/test_prompt_caching.py34 "api_key": "fake-key",CODE
LOWlibs/partners/groq/tests/unit_tests/test_chat_models.py36 os.environ["GROQ_API_KEY"] = "fake-key"CODE
LOW⚡…ers/perplexity/tests/unit_tests/test_output_parsers.py199 text = '{"name": "John Doe", "age": 30, "email": "john@example.com"}'CODE
LOW⚡…ers/perplexity/tests/unit_tests/test_output_parsers.py203 assert result.name == "John Doe"CODE
LOW⚡…ers/perplexity/tests/unit_tests/test_output_parsers.py213 object</think>{"name": "John Doe", "age": 30}'CODE
LOW⚡…ers/perplexity/tests/unit_tests/test_output_parsers.py217 assert result.name == "John Doe"CODE
LOW⚡…tegration_tests/qdrant_vector_store/test_from_texts.py26 ["Lorem ipsum dolor sit amet", "Ipsum dolor sit amet"],CODE
LOW⚡…tegration_tests/qdrant_vector_store/test_from_texts.py26 ["Lorem ipsum dolor sit amet", "Ipsum dolor sit amet"],CODE
7 more matches not shown…
Magic Placeholder Names19 hits · 68 pts
SeverityFileLineSnippetContext
HIGH…s/partners/mistralai/langchain_mistralai/embeddings.py68 export MISTRAL_API_KEY="your-api-key"STRING
HIGH…artners/openrouter/langchain_openrouter/chat_models.py122 export OPENROUTER_API_KEY="your-api-key"STRING
HIGHlibs/partners/exa/langchain_exa/tools.py29 export EXA_API_KEY="your-api-key"CODE
HIGH…s/partners/fireworks/langchain_fireworks/embeddings.py18 export FIREWORKS_API_KEY="your-api-key"STRING
HIGHlibs/partners/groq/langchain_groq/chat_models.py141 export GROQ_API_KEY="your-api-key"CODE
HIGH…bs/partners/deepseek/langchain_deepseek/chat_models.py118 export DEEPSEEK_API_KEY="your-api-key"STRING
HIGHlibs/partners/xai/langchain_xai/chat_models.py72 export XAI_API_KEY="your-api-key"CODE
HIGH…artners/perplexity/langchain_perplexity/chat_models.py626 export PPLX_API_KEY=your_api_keySTRING
HIGH…partners/perplexity/langchain_perplexity/embeddings.py32 export PPLX_API_KEY=your_api_keySTRING
HIGH…/partners/anthropic/langchain_anthropic/chat_models.py1332 # export ANTHROPIC_API_KEY="your-api-key"STRING
HIGH…ners/openai/tests/unit_tests/chat_models/test_azure.py359 api_key=SecretStr("your_api_key"),CODE
HIGH…ners/openai/tests/unit_tests/chat_models/test_azure.py379 api_key=SecretStr("your_api_key"),CODE
HIGH…s/partners/openai/langchain_openai/embeddings/azure.py35 export AZURE_OPENAI_API_KEY="your-api-key"STRING
HIGH…bs/partners/openai/langchain_openai/embeddings/base.py94 export OPENAI_API_KEY="your-api-key"STRING
HIGH…/partners/openai/langchain_openai/chat_models/azure.py78 export AZURE_OPENAI_API_KEY="your-api-key"CODE
HIGH…s/partners/openai/langchain_openai/chat_models/base.py2938 export OPENAI_API_KEY="your-api-key"CODE
HIGHlibs/partners/openai/langchain_openai/llms/base.py65 export OPENAI_API_KEY="your-api-key"STRING
HIGHlibs/partners/openai/langchain_openai/llms/base.py795 export OPENAI_API_KEY="your-api-key"STRING
HIGHopenwiki/openai-provider.md870export AZURE_OPENAI_API_KEY="your-api-key"CODE
Over-Commented Block85 hits · 58 pts
SeverityFileLineSnippetContext
LOW…/core/langchain_core/language_models/_compat_bridge.py621 continueCOMMENT
LOW…re/langchain_core/language_models/chat_model_stream.py901 # Keep provider-specific fields alongside the accumulatedCOMMENT
LOWlibs/core/langchain_core/callbacks/usage.py121 # Always clear the context var, including when the with-block raises.COMMENT
LOWlibs/core/langchain_core/callbacks/manager.py361 # running coroutine, which we cannot interrupt to run this one.COMMENT
LOWlibs/core/langchain_core/utils/_merge.py41 f'additional_kwargs["{right_k}"] already exists in this message,'COMMENT
LOWlibs/core/langchain_core/runnables/base.py2041 )COMMENT
LOWlibs/core/langchain_core/prompts/chat.py821 # messages=[COMMENT
LOW…gchain/tests/unit_tests/agents/test_structured_chat.py181 """, # noqa: E501COMMENT
LOW…chain_v1/langchain/agents/middleware/model_fallback.py281COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py1# import dataclassesCOMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py21# from langchain_core.tools import BaseTool, InjectedToolCallId, ToolExceptionCOMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py41# )COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py61# )COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py81# assert saved.pending_writes == []COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py101# }COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py121# agent = create_agent(FakeToolCallingModel(), [], system_prompt=prompt)COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py141# async def prompt(state):COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py161# assert response == expected_responseCOMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py181# model = FakeToolCallingModel()COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py201# assert response["messages"][-1].content == "foo-hi"COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py221# model = FakeToolCallingModel()COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py241# model = FakeToolCallingModel(tool_style=tool_style)COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py261# "allowed_tools": [COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py281COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py301COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py321# expected = (ValueError,)COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py341# _infer_handled_types(handler)COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py361# """Get the weather"""COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py381# "ai", # "What's the weather?"COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py401# sync_checkpointer: BaseCheckpointSaver,COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py421# system_msg = f"User name is {user_name}"COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py441# tool_message: ToolMessage = response["messages"][-2]COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py461COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py481# )COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py501# assert message_types == [COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py521# def tool1(COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py541# store=store,COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py561# """A normal tool."""COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py581COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py601# model = FakeToolCallingModel(tool_calls=[second_tool_call, []])COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py621# ),COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py641# content="Normal result: Test both normal",COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py661# assert _get_state_args(foo) == {"a": None, "b": "bar"}COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py681# def add(state):COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py701COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py721# model,COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py741# content="6",COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py761# [{"args": {"city": "Tokyo"}, "id": "1", "name": "get_weather"}],COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py781# stream_mode="messages",COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py801# assert "assistant" in str(result["messages"][1])COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py821# for event in compiled_workflow.stream(COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py841# def get_weather(city: str) -> str:COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py861# """Node that runs the React agent and collects streaming output."""COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py881COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py901# {"messages": [("user", "What is the weather in Tokyo?")]},COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py921# assert msg.content.startswith("You are a helpful travel assistant")COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py941# ToolCall(name="tool_interrupt", args={"some_val": 0}, id="1"),COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py961# "name": "tool_interrupt",COMMENT
LOW…ngchain_v1/tests/unit_tests/agents/test_react_agent.py981# assert task.name == "tools"COMMENT
LOW…tners/groq/tests/integration_tests/test_chat_models.py801 "server_tool_call",COMMENT
25 more matches not shown…
AI Structural Patterns68 hits · 56 pts
SeverityFileLineSnippetContext
LOWlibs/text-splitters/langchain_text_splitters/html.py619CODE
LOWlibs/core/langchain_core/tools/convert.py18CODE
LOWlibs/core/langchain_core/tools/convert.py32CODE
LOWlibs/core/langchain_core/tools/convert.py48CODE
LOWlibs/core/langchain_core/tools/convert.py63CODE
LOWlibs/core/langchain_core/tools/convert.py77CODE
LOWlibs/core/langchain_core/tools/structured.py188CODE
LOWlibs/core/langchain_core/tools/base.py1009CODE
LOWlibs/core/langchain_core/tools/base.py1137CODE
LOWlibs/core/langchain_core/messages/content.py1255CODE
LOWlibs/core/langchain_core/callbacks/manager.py2390CODE
LOWlibs/core/langchain_core/callbacks/manager.py1683CODE
LOWlibs/core/langchain_core/callbacks/manager.py2212CODE
LOWlibs/core/langchain_core/_api/deprecation.py119CODE
LOWlibs/core/langchain_core/_api/deprecation.py479CODE
LOWlibs/core/langchain_core/_api/deprecation.py189CODE
LOWlibs/core/langchain_core/utils/mustache.py468CODE
LOWlibs/core/langchain_core/runnables/graph_mermaid.py277CODE
LOWlibs/core/langchain_core/runnables/graph.py632CODE
LOWlibs/core/langchain_core/runnables/base.py1238CODE
LOWlibs/core/langchain_core/runnables/base.py1255CODE
LOWlibs/core/langchain_core/runnables/base.py1271CODE
LOWlibs/core/langchain_core/runnables/base.py1344CODE
LOWlibs/core/langchain_core/runnables/base.py1369CODE
LOWlibs/core/langchain_core/runnables/base.py1616CODE
LOWlibs/core/langchain_core/runnables/base.py1675CODE
LOWlibs/core/langchain_core/runnables/base.py1700CODE
LOWlibs/core/langchain_core/document_loaders/langsmith.py40CODE
LOWlibs/core/langchain_core/tracers/log_stream.py235CODE
LOWlibs/langchain/langchain_classic/chat_models/base.py961CODE
LOWlibs/langchain/langchain_classic/chat_models/base.py978CODE
LOWlibs/langchain/langchain_classic/chat_models/base.py995CODE
LOWlibs/langchain/langchain_classic/chat_models/base.py1026CODE
LOW…chain/langchain_classic/agents/structured_chat/base.py122CODE
LOW…gchain/langchain_classic/agents/conversational/base.py121CODE
LOW…n/langchain_classic/chains/question_answering/chain.py102CODE
LOW…n/langchain_classic/chains/question_answering/chain.py186CODE
LOW…/langchain/langchain_classic/chains/summarize/chain.py68CODE
LOW…in/langchain_classic/chains/qa_with_sources/loading.py83CODE
LOWlibs/langchain_v1/langchain/chat_models/base.py951CODE
LOWlibs/langchain_v1/langchain/chat_models/base.py969CODE
LOWlibs/langchain_v1/langchain/chat_models/base.py986CODE
LOWlibs/langchain_v1/langchain/chat_models/base.py1017CODE
LOWlibs/langchain_v1/langchain/agents/factory.py824CODE
LOWlibs/langchain_v1/langchain/agents/factory.py846CODE
LOWlibs/langchain_v1/langchain/agents/factory.py870CODE
LOWlibs/langchain_v1/langchain/agents/factory.py892CODE
LOWlibs/langchain_v1/langchain/agents/middleware/types.py107CODE
LOW…langchain_v1/langchain/agents/middleware/tool_retry.py133CODE
LOW…langchain_v1/langchain/agents/middleware/shell_tool.py537CODE
LOWlibs/partners/chroma/langchain_chroma/vectorstores.py302CODE
LOWlibs/partners/chroma/langchain_chroma/vectorstores.py1273CODE
LOWlibs/partners/chroma/langchain_chroma/vectorstores.py1375CODE
LOWlibs/partners/exa/langchain_exa/tools.py101CODE
LOWlibs/partners/exa/langchain_exa/tools.py183CODE
LOW…partners/deepseek/tests/unit_tests/test_chat_models.py32CODE
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1193CODE
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1373CODE
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1430CODE
LOWlibs/partners/qdrant/langchain_qdrant/vectorstores.py1614CODE
8 more matches not shown…
Modern AI Meta-Vocabulary19 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMlibs/core/langchain_core/embeddings/fake.py3# Please do not add additional fake embedding model implementations here.COMMENT
MEDIUM⚡…sts/unit_tests/examples/test_specs/zapier/apispec.json6 "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## HelCODE
MEDIUM…hain_classic/memory/vectorstore_token_buffer_memory.py173 # that will overflow the context windowCOMMENT
MEDIUM…ngchain/langchain_classic/agents/mrkl/output_parser.py48 # if final answer is before the hallucination, return final answerCOMMENT
MEDIUM…angchain_classic/chains/elasticsearch_database/base.py166 # improvement of few shot prompt seedsCOMMENT
MEDIUM…ain/langchain_classic/chains/constitutional_ai/base.py27 "https://docs.langchain.com/oss/python/langchain/guardrails"CODE
MEDIUMlibs/langchain_v1/README.md23We recommend you use LangChain if you want to quickly build agents and autonomous applications. Use [LangGraph](https://CODE
MEDIUMlibs/langchain_v1/langchain/agents/middleware/pii.py329 # Reasoning content (chain-of-thought from extended-thinkingCOMMENT
MEDIUM…/anthropic/tests/integration_tests/test_chat_models.py1429 image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/imagesCODE
MEDIUM…penai/tests/integration_tests/chat_models/test_base.py771 image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/imagesCODE
MEDIUM…tests/langchain_tests/integration_tests/chat_models.py2913 image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/imCODE
MEDIUM…tests/langchain_tests/integration_tests/chat_models.py3021 image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/imCODE
MEDIUM…tests/langchain_tests/integration_tests/chat_models.py3260 image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/srCODE
MEDIUMopenwiki/source-map.md63| **Agent Factory** | `repo://libs/langchain_v1/langchain/agents/factory.py` | Constructs compiled LangGraph state machiCODE
MEDIUMopenwiki/source-map.md100│ │ ├── prompts/ # Prompt templates and few-shotCODE
MEDIUMopenwiki/quickstart.md64├── langchain_v1/ # langchain (v1.4.3): Agent orchestration, factory, middlewareCODE
MEDIUMopenwiki/quickstart.md274│ ├── prompts/ # Prompt templates and few-shotCODE
MEDIUMopenwiki/chat-models.md399 reasoning_output: bool # Reasoning/chain-of-thought?CODE
MEDIUMopenwiki/openai-provider.md290# Model will automatically drop older messages to fit context windowCOMMENT
Overly Generic Function Names14 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡…s/core/tests/unit_tests/utils/test_function_calling.py422 def my_function(arg1: NestedV2) -> None:CODE
LOW⚡…s/core/tests/unit_tests/utils/test_function_calling.py435 def my_function(arg1: Nested) -> None:CODE
LOW…s/core/tests/unit_tests/utils/test_function_calling.py393 def my_function(_: str) -> str:CODE
LOW…s/core/tests/unit_tests/utils/test_function_calling.py472 def my_function(arg1: Nested) -> None:CODE
LOW…s/core/tests/unit_tests/utils/test_function_calling.py515 def my_function(my_arg: NestedA | NestedB | NestedC) -> None:CODE
LOW…s/core/tests/unit_tests/utils/test_function_calling.py1151 def my_function(arg1: dict[str, Any], arg2: dict[str, Any] | None) -> None:CODE
LOW⚡libs/core/tests/unit_tests/runnables/test_runnable.py3549 def my_function(_: Any, **kwargs: Any) -> int:CODE
LOW⚡libs/core/tests/unit_tests/runnables/test_runnable.py3559 def my_function(_: Any, **kwargs: Any) -> int:CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py73 def my_function(a: int) -> int:CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py145 def my_function(a: int) -> int:CODE
LOW…re/tests/unit_tests/runnables/test_tracing_interops.py222 async def my_function(a: int) -> int:CODE
LOWlibs/core/langchain_core/_security/_transport.py144 def handle_request(CODE
LOW…hropic/tests/unit_tests/middleware/test_file_search.py40 "content": ["def helper(): pass"],CODE
LOW…partners/openai/tests/unit_tests/test_chatgpt_oauth.py927 def handle_request(self) -> None:CODE
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHlibs/core/langchain_core/utils/aiter.py76 # all methods of the iterator protocol. In this implementationCOMMENT
HIGH⚡…sts/unit_tests/examples/test_specs/zapier/apispec.json6 "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## HelCODE
AI Slop Vocabulary9 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUM…sts/unit_tests/output_parsers/test_openai_functions.py17 """Test the JSON output function parser is configured with robust defaults."""STRING
LOWlibs/core/langchain_core/tools/base.py961 # If we can't get annotations, just use FILTERED_ARGSCOMMENT
LOWlibs/core/langchain_core/utils/mustache.py376 # Then just return the current scopeCOMMENT
LOWlibs/core/langchain_core/tracers/event_stream.py227 # otherwise just pass throughCOMMENT
LOWlibs/core/langchain_core/tracers/event_stream.py277 # otherwise just pass throughCOMMENT
MEDIUM⚡…sts/unit_tests/examples/test_specs/zapier/apispec.json6 "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## HelCODE
LOW…hain/langchain_classic/callbacks/streamlit/__init__.py59 # This is the official handler, so we can just return it.COMMENT
LOWlibs/langchain/langchain_classic/agents/agent.py967 # we just return the full outputCOMMENT
LOW…in/langchain_classic/chains/history_aware_retriever.py62 # If no chat history, then we just pass input to retrieverCOMMENT
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMlibs/core/langchain_core/runnables/fallbacks.py65 # And you can also use fallbacks at the level of a chain.STRING
MEDIUMlibs/core/langchain_core/runnables/base.py3115 Here is a simple example that uses simple functions to illustrate the use ofSTRING
MEDIUMlibs/core/langchain_core/runnables/base.py3880 Here is a simple example that uses functions to illustrate the use ofSTRING
MEDIUM⚡…sts/unit_tests/examples/test_specs/zapier/apispec.json6 "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## HelCODE
MEDIUMlibs/langchain/langchain_classic/memory/prompt.py5You are designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth CODE
MEDIUM…langchain_classic/agents/conversational_chat/prompt.py3Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-dCODE
MEDIUM…s/langchain/langchain_classic/agents/json_chat/base.py96 topics. As a language model, Assistant is able to generate human-like text based onCODE
MEDIUM…hain/langchain_classic/agents/conversational/prompt.py3Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-dCODE
LOWlibs/partners/ollama/langchain_ollama/chat_models.py427 content="It's been a blast chatting with you! Say goodbye to the world for me, and don't forget to come CODE
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMlibs/core/tests/unit_tests/runnables/test_runnable.py3837CODE
MEDIUMlibs/core/langchain_core/runnables/base.py5735CODE
MEDIUM…artners/fireworks/tests/unit_tests/test_chat_models.py2168CODE
MEDIUM…artners/fireworks/tests/unit_tests/test_chat_models.py862CODE
MEDIUM…artners/fireworks/tests/unit_tests/test_chat_models.py1019CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…gchain/tests/unit_tests/chains/test_qa_with_sources.py54 # The following text was generated by gpt-3.5-turboCOMMENT
Verbosity Indicators5 hits · 7 pts
SeverityFileLineSnippetContext
LOWlibs/core/langchain_core/utils/pydantic.py108 # Before we can use issubclass on the cls we need to check if it is a classCOMMENT
LOW…artners/anthropic/tests/unit_tests/test_chat_models.py4090 # Step 1: process the empty content_block_start (no chunk emitted).COMMENT
LOW…artners/anthropic/tests/unit_tests/test_chat_models.py4104 # Step 2: process the signature_delta with the tracked start event.COMMENT
LOW.github/workflows/check_release_deps.yml88 # Step 1: detect packages whose own version is bumped by this PR. TheirCOMMENT
LOW.github/workflows/check_release_deps.yml151 # Step 2: rebuild a resolver-equivalent manifest that drops only theCOMMENT
Structural Annotation Overuse5 hits · 6 pts
SeverityFileLineSnippetContext
LOWlibs/core/langchain_core/tracers/core.py232 # WARNING: This is valid ONLY for streaming_events.COMMENT
LOW…artners/anthropic/tests/unit_tests/test_chat_models.py4090 # Step 1: process the empty content_block_start (no chunk emitted).COMMENT
LOW…artners/anthropic/tests/unit_tests/test_chat_models.py4104 # Step 2: process the signature_delta with the tracked start event.COMMENT
LOW.github/workflows/check_release_deps.yml88 # Step 1: detect packages whose own version is bumped by this PR. TheirCOMMENT
LOW.github/workflows/check_release_deps.yml151 # Step 2: rebuild a resolver-equivalent manifest that drops only theCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…gchain_classic/chains/conversational_retrieval/base.py327 # Usage:COMMENT
LOWlibs/partners/openai/scripts/record_codex_cassettes.sh6# Usage:COMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlibs/core/langchain_core/language_models/chat_models.py411 # TODO: consider adding a `_model_identifier` property on BaseChatModelSTRING
LOW…ngchain/langchain_classic/callbacks/streaming_aiter.py57 # TODO: implement the other methodsCOMMENT