The agent engineering platform.
This report presents the forensic synthetic code analysis of langchain-ai/langchain, a Python project with 141,711 GitHub stars. SynthScan v2.0 examined 407,623 lines of code across 2729 source files, recording 12326 pattern matches distributed across 27 syntactic categories. The overall adjusted score of 42.4 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 12326 distinct pattern matches across 27 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/text-splitters/tests/unit_tests/test_html_security.py | 12 | def test_xxe_entity_attack_blocked(self) -> None: | CODE |
| LOW | …/text-splitters/tests/unit_tests/test_html_security.py | 29 | def test_xxe_document_function_blocked(self) -> None: | CODE |
| LOW | …/text-splitters/tests/unit_tests/test_html_security.py | 47 | def test_secure_parser_configuration(self) -> None: | CODE |
| LOW | …/text-splitters/tests/unit_tests/test_html_security.py | 84 | def test_dtd_processing_disabled(self) -> None: | CODE |
| LOW | …/text-splitters/tests/unit_tests/test_html_security.py | 110 | def test_safe_default_xslt_usage(self) -> None: | CODE |
| LOW | libs/text-splitters/tests/unit_tests/conftest.py | 23 | def pytest_collection_modifyitems( | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 168 | def test_lazy_getattr_raises_for_unknown() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 176 | def test_lightweight_splitters_remain_eagerly_accessible() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 184 | def test_character_text_splitter() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 193 | def test_character_text_splitter_empty_doc() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 202 | def test_character_text_splitter_separtor_empty_doc() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 211 | def test_character_text_splitter_long() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 220 | def test_character_text_splitter_short_words_first() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 229 | def test_character_text_splitter_longer_words() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 239 | def test_character_text_splitter_no_separator_in_text() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 248 | def test_character_text_splitter_handle_chunksize_equal_to_chunkoverlap() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 257 | def test_character_text_splitter_empty_input() -> None: | CODE |
| LOW⚡ | …text-splitters/tests/unit_tests/test_text_splitters.py | 266 | def test_character_text_splitter_whitespace_only() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 278 | def test_character_text_splitter_keep_separator_regex( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 302 | def test_character_text_splitter_keep_separator_regex_start( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 326 | def test_character_text_splitter_keep_separator_regex_end( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 350 | def test_character_text_splitter_discard_separator_regex( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 371 | def test_recursive_character_text_splitter_keep_separators() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 395 | def test_character_text_splitting_args() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 433 | def test_create_documents_with_metadata() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 478 | def test_create_documents_with_start_index( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 489 | def test_metadata_not_shallow() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 504 | def test_iterative_text_splitter_keep_separator() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 517 | def test_iterative_text_splitter_discard_separator() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 530 | def __test_iterative_text_splitter( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 548 | def test_iterative_text_splitter() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 601 | def test_python_text_splitter() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1151 | def test_elixir_separators_no_while() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1638 | def test_md_header_text_splitter_fenced_code_block(fence: str) -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1665 | def test_md_header_text_splitter_fenced_code_block_interleaved( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1702 | def test_md_header_text_splitter_with_invisible_characters(characters: str) -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1730 | def test_md_header_text_splitter_with_custom_headers() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1925 | def test_experimental_markdown_syntax_text_splitter_header_configuration() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 1970 | def test_experimental_markdown_syntax_text_splitter_with_headers() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2028 | def test_experimental_markdown_syntax_text_splitter_split_lines() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2136 | def test_experimental_markdown_syntax_text_splitter_on_multi_files() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2219 | def test_experimental_markdown_syntax_text_splitter_split_lines_on_multi_files() -> ( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2347 | def test_experimental_markdown_syntax_text_splitter_with_header_on_multi_files() -> ( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2436 | def test_experimental_markdown_syntax_text_splitter_header_config_on_multi_files() -> ( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 2512 | def test_solidity_code_splitter() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3112 | def test_decode_returns_no_chunks() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3183 | def test_happy_path_splitting_based_on_header_with_font_size() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3234 | def test_happy_path_splitting_based_on_header_with_whitespace_chars() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3285 | def test_happy_path_splitting_with_duplicate_header_tag() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3359 | def test_split_json_with_lists() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3383 | def test_split_json_many_calls() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3404 | def test_split_json_with_empty_dict_values() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3422 | def test_split_json_with_nested_empty_dicts() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3440 | def test_split_json_empty_dict_only() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3453 | def test_split_json_mixed_empty_and_nonempty_dicts() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3476 | def test_split_json_empty_dict_value_in_large_payload() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3507 | def test_powershell_code_splitter_short_code() -> None: | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 4360 | def test_character_text_splitter_chunk_size_effect( | CODE |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 57 | def test_no_heavy_imports_on_package_load() -> None: | STRING |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 115 | def test_missing_optional_dependency_raises_importerror( | STRING |
| 4697 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3 | CODE | |
| LOW | …plitters/tests/integration_tests/test_text_splitter.py | 17 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/nltk.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 3 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 9 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 14 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 14 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 14 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 14 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 14 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 21 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 21 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 25 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 25 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 25 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 25 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 31 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 32 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 33 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 34 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 34 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 34 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 34 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 34 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 41 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 44 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 45 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 46 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 49 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/konlpy.py | 3 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/markdown.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/python.py | 3 | CODE | |
| LOW | …s/text-splitters/langchain_text_splitters/character.py | 3 | CODE | |
| LOW | …ters/langchain_text_splitters/sentence_transformers.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/spacy.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/latex.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/json.py | 3 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/base.py | 3 | CODE | |
| LOW | …nit_tests/language_models/test_chat_model_v3_stream.py | 3 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …tests/unit_tests/language_models/test_compat_bridge.py | 26 | CODE | |
| LOW | …ore/tests/unit_tests/language_models/test_v1_parity.py | 7 | CODE | |
| LOW | …s/unit_tests/language_models/test_chat_model_stream.py | 3 | CODE | |
| LOW | …s/unit_tests/language_models/test_chat_model_stream.py | 19 | CODE | |
| LOW | …unit_tests/language_models/test_chat_model_streamer.py | 3 | CODE | |
| LOW | …unit_tests/language_models/test_chat_model_streamer.py | 22 | CODE | |
| LOW | …sts/unit_tests/messages/block_translators/test_groq.py | 8 | CODE | |
| LOW | …s/core/tests/unit_tests/callbacks/test_handle_event.py | 11 | CODE | |
| LOW | libs/core/tests/unit_tests/runnables/test_imports.py | 43 | CODE | |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v3.py | 3 | CODE | |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 1 | CODE | |
| LOW | libs/core/tests/unit_tests/runnables/test_config.py | 16 | CODE | |
| LOW | …core/tests/unit_tests/vectorstores/test_vectorstore.py | 7 | CODE | |
| LOW | …ore/tests/unit_tests/tracers/test_async_base_tracer.py | 3 | CODE | |
| LOW | libs/core/tests/unit_tests/tracers/test_base_tracer.py | 3 | CODE | |
| 3517 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/text-splitters/scripts/lint_imports.sh | 5 | # Initialize a variable to keep track of errors | COMMENT |
| MEDIUM | …ts/unit_tests/language_models/chat_models/test_base.py | 652 | # Create a message with v0 format image content | COMMENT |
| MEDIUM | …s/unit_tests/language_models/chat_models/test_cache.py | 321 | # Create a simple fake chat model that we can control | COMMENT |
| MEDIUM | …ore/tests/unit_tests/language_models/llms/test_base.py | 396 | # Create a custom LLM that supports streaming | COMMENT |
| MEDIUM | …ts/unit_tests/callbacks/test_async_callback_manager.py | 179 | """This method is decorated with @shielded in the run manager.""" | STRING |
| MEDIUM | …ts/unit_tests/callbacks/test_async_callback_manager.py | 185 | """This method is decorated with @shielded in the run manager.""" | STRING |
| MEDIUM | …s/core/tests/unit_tests/utils/test_function_calling.py | 1192 | # Define a custom Python class that isn't JSON-serializable | COMMENT |
| MEDIUM | libs/core/tests/unit_tests/runnables/test_history.py | 29 | # This module is the compatibility test suite for `RunnableWithMessageHistory`, | COMMENT |
| MEDIUM | libs/core/tests/unit_tests/runnables/test_graph.py | 645 | # Create a simple graph | COMMENT |
| MEDIUM | libs/core/langchain_core/messages/system.py | 24 | # Define a chat model and invoke it with the messages | STRING |
| MEDIUM | libs/core/langchain_core/messages/content.py | 66 | # Create a text content block with provider-specific fields | STRING |
| MEDIUM | …gchain_core/messages/block_translators/google_genai.py | 82 | # Create a citation for each referenced chunk | COMMENT |
| MEDIUM | libs/core/langchain_core/callbacks/manager.py | 237 | # Create the coroutine | COMMENT |
| MEDIUM | libs/core/langchain_core/callbacks/manager.py | 243 | # Create a task with the captured context to preserve context variables | COMMENT |
| MEDIUM | libs/core/langchain_core/utils/utils.py | 96 | # Create a copy of dt_value. | COMMENT |
| MEDIUM | libs/core/langchain_core/runnables/graph_png.py | 139 | # Create a directed graph | COMMENT |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 4253 | # Create the transform() generator for each step | COMMENT |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 4318 | # Create the transform() generator for each step | COMMENT |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 6393 | # Create a Runnable binding that invokes the chat model with the | STRING |
| MEDIUM | …core/langchain_core/prompts/few_shot_with_templates.py | 146 | # Create the overall prefix. | COMMENT |
| MEDIUM | …core/langchain_core/prompts/few_shot_with_templates.py | 157 | # Create the overall suffix | COMMENT |
| MEDIUM | …core/langchain_core/prompts/few_shot_with_templates.py | 190 | # Create the overall prefix. | COMMENT |
| MEDIUM | …core/langchain_core/prompts/few_shot_with_templates.py | 201 | # Create the overall suffix | COMMENT |
| MEDIUM | libs/core/langchain_core/prompts/few_shot.py | 201 | # Create the overall template. | COMMENT |
| MEDIUM | libs/core/langchain_core/prompts/few_shot.py | 229 | # Create the overall template. | COMMENT |
| MEDIUM | libs/core/langchain_core/prompts/few_shot.py | 362 | # Define the overall prompt. | STRING |
| MEDIUM | libs/core/langchain_core/indexing/api.py | 606 | # Define an asynchronous generator function | COMMENT |
| MEDIUM | libs/core/langchain_core/tracers/langchain.py | 305 | # This method is only really useful for debugging flows, so we will assume | COMMENT |
| MEDIUM | libs/core/scripts/lint_imports.sh | 5 | # Initialize a variable to keep track of errors | COMMENT |
| MEDIUM | …ain/tests/unit_tests/agents/output_parsers/test_xml.py | 41 | # Create an AgentAction with XML tags in the tool name | COMMENT |
| MEDIUM | …/langchain/tests/unit_tests/storage/test_filesystem.py | 13 | # Create a temporary directory for testing | COMMENT |
| MEDIUM | …/langchain/tests/unit_tests/storage/test_filesystem.py | 40 | # Create a temporary directory for testing | COMMENT |
| MEDIUM | …/langchain/tests/unit_tests/storage/test_filesystem.py | 63 | # Create a temporary directory for testing | COMMENT |
| MEDIUM | …bs/langchain/tests/unit_tests/storage/test_lc_store.py | 14 | # Create a temporary directory for testing | COMMENT |
| MEDIUM | libs/langchain/scripts/lint_imports.sh | 5 | # Initialize a variable to keep track of errors | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/serpapi.py | 10 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/cache.py | 25 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/sql_database.py | 10 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/requests.py | 14 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …s/langchain/langchain_classic/chat_loaders/whatsapp.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …s/langchain/langchain_classic/chat_loaders/telegram.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …/langchain/langchain_classic/chat_loaders/langsmith.py | 11 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …s/langchain/langchain_classic/chat_loaders/imessage.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/chat_loaders/gmail.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/chat_loaders/utils.py | 13 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/chat_loaders/slack.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/retrievers/bm25.py | 9 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/retrievers/docarray.py | 9 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …chain/langchain_classic/retrievers/remote_retriever.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …ngchain_classic/retrievers/chatgpt_plugin_retriever.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/retrievers/milvus.py | 9 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …s/langchain/langchain_classic/retrievers/embedchain.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …langchain_classic/retrievers/weaviate_hybrid_search.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/retrievers/pubmed.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …langchain_classic/retrievers/pinecone_hybrid_search.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | libs/langchain/langchain_classic/retrievers/arxiv.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …bs/langchain/langchain_classic/retrievers/chaindesk.py | 8 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …langchain/langchain_classic/retrievers/web_research.py | 12 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …/langchain/langchain_classic/retrievers/llama_index.py | 11 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| MEDIUM | …angchain_classic/retrievers/google_vertex_ai_search.py | 12 | # Create a way to dynamically look up deprecated imports. | COMMENT |
| 879 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | libs/text-splitters/tests/unit_tests/conftest.py | 0 | add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `r | STRING |
| HIGH | libs/core/tests/unit_tests/conftest.py | 0 | add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `r | STRING |
| HIGH | libs/langchain/tests/unit_tests/conftest.py | 0 | add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `r | STRING |
| HIGH | libs/langchain_v1/tests/unit_tests/conftest.py | 0 | add implementations for handling custom markers. at the moment, this adds support for a custom `requires` marker. the `r | STRING |
| HIGH | …text-splitters/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | libs/core/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | libs/langchain/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …s/langchain_v1/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …artners/chroma/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …ners/mistralai/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …ers/openrouter/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …s/partners/exa/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …ners/fireworks/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …/partners/groq/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …tners/deepseek/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …s/partners/xai/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …partners/nomic/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …ers/perplexity/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …artners/qdrant/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …ners/anthropic/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …rs/huggingface/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …artners/ollama/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …artners/openai/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …standard-tests/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | …model-profiles/tests/integration_tests/test_compile.py | 0 | used for compiling integration tests without running any real tests. | STRING |
| HIGH | libs/core/langchain_core/prompt_values.py | 0 | get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]` | STRING |
| HIGH | libs/core/langchain_core/prompts/message.py | 0 | get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]` | STRING |
| HIGH | libs/core/langchain_core/prompts/chat.py | 0 | get the namespace of the langchain object. returns: `["langchain", "prompts", "chat"]` | STRING |
| HIGH | libs/core/langchain_core/stores.py | 0 | async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional val | STRING |
| HIGH | …/langchain/langchain_classic/storage/encoder_backed.py | 0 | async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional val | STRING |
| HIGH | libs/langchain/langchain_classic/storage/file_system.py | 0 | async get the values associated with the given keys. args: keys: a sequence of keys. returns: a sequence of optional val | STRING |
| HIGH | libs/core/langchain_core/stores.py | 0 | async 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.py | 0 | async set the values for the given keys. args: key_value_pairs: a sequence of key-value pairs. | STRING |
| HIGH | libs/langchain/langchain_classic/storage/file_system.py | 0 | async set the values for the given keys. args: key_value_pairs: a sequence of key-value pairs. | STRING |
| HIGH | libs/core/langchain_core/stores.py | 0 | async delete the given keys and their associated values. args: keys: a sequence of keys to delete. | STRING |
| HIGH | …/langchain/langchain_classic/storage/encoder_backed.py | 0 | async delete the given keys and their associated values. args: keys: a sequence of keys to delete. | STRING |
| HIGH | libs/langchain/langchain_classic/storage/file_system.py | 0 | async delete the given keys and their associated values. args: keys: a sequence of keys to delete. | STRING |
| HIGH | libs/core/langchain_core/stores.py | 0 | async 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.py | 0 | async get an iterator over keys that match the given prefix. args: prefix: the prefix to match. yields: keys that match | STRING |
| HIGH | libs/langchain/langchain_classic/storage/file_system.py | 0 | async 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.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …core/langchain_core/messages/block_translators/groq.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …langchain_core/messages/block_translators/anthropic.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …in_core/messages/block_translators/bedrock_converse.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …e/langchain_core/messages/block_translators/bedrock.py | 0 | derive standard content blocks from a chunk with bedrock converse content. args: message: the message chunk to translate | STRING |
| HIGH | …core/langchain_core/messages/block_translators/groq.py | 0 | register the bedrock translator with the central registry. run automatically when the module is imported. | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 0 | register the bedrock translator with the central registry. run automatically when the module is imported. | STRING |
| HIGH | …langchain_core/messages/block_translators/anthropic.py | 0 | register the bedrock translator with the central registry. run automatically when the module is imported. | STRING |
| HIGH | …in_core/messages/block_translators/bedrock_converse.py | 0 | register the bedrock translator with the central registry. run automatically when the module is imported. | STRING |
| HIGH | …e/langchain_core/messages/block_translators/bedrock.py | 0 | register the bedrock translator with the central registry. run automatically when the module is imported. | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 0 | convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not rec | STRING |
| HIGH | …langchain_core/messages/block_translators/anthropic.py | 0 | convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not rec | STRING |
| HIGH | …in_core/messages/block_translators/bedrock_converse.py | 0 | convert bedrock converse format blocks to v1 format. during the `content_blocks` parsing process, we wrap blocks not rec | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 0 | convert a v1 message to the chat completions format. | STRING |
| HIGH | libs/partners/fireworks/langchain_fireworks/_compat.py | 0 | convert a v1 message to the chat completions format. | STRING |
| HIGH | …artners/openai/langchain_openai/chat_models/_compat.py | 0 | convert a v1 message to the chat completions format. | STRING |
| HIGH | libs/core/langchain_core/callbacks/streaming_stdout.py | 0 | callback handler streams to stdout on new llm token. | STRING |
| HIGH | …gchain/langchain_classic/callbacks/streaming_stdout.py | 0 | callback handler streams to stdout on new llm token. | STRING |
| HIGH | …chain_classic/callbacks/streaming_stdout_final_only.py | 0 | callback handler streams to stdout on new llm token. | STRING |
| 321 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | AGENTS.md | 222 | Send an email to a recipient with specified priority. Any additional context about the function can go here. A | STRING |
| HIGH | CLAUDE.md | 222 | Send an email to a recipient with specified priority. Any additional context about the function can go here. A | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/html.py | 209 | Fetch text content from a URL and split it into documents. Args: url: The URL to fetch content from | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/html.py | 253 | Private method that performs a DFS traversal over the DOM and yields. Document objects on-the-fly. This approac | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/html.py | 455 | Split an HTML document into sections based on specified header tags. This method uses BeautifulSoup to parse th | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/html.py | 517 | Convert 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.py | 184 | Retrieve a list of separators specific to the given language. Args: language: The language for whic | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/base.py | 242 | Build a `tiktoken`-based length function. Shared by `from_tiktoken_encoder` on both `TextSplitter` and | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/base.py | 290 | Text splitter that uses `tiktoken` encoder to count length. Args: encoding_name: The name of the ti | STRING |
| HIGH | libs/text-splitters/langchain_text_splitters/base.py | 379 | Text splitter that uses `tiktoken` encoder to count length. Unlike the base implementation, this also seeds the | STRING |
| HIGH | libs/core/langchain_core/retrievers.py | 182 | Invoke the retriever to get relevant documents. Main entry point for synchronous retriever invocations. | STRING |
| HIGH | libs/core/langchain_core/retrievers.py | 243 | Asynchronously invoke the retriever to get relevant documents. Main entry point for asynchronous retriever invo | STRING |
| HIGH | libs/core/langchain_core/_import_utils.py | 9 | Import an attribute from a module located in a package. This utility function is used in custom `__getattr__` metho | STRING |
| HIGH | libs/core/langchain_core/language_models/chat_models.py | 207 | Generate from a stream. Args: stream: Iterator of `ChatGenerationChunk`. Raises: ValueError: I | STRING |
| HIGH | libs/core/langchain_core/language_models/chat_models.py | 2364 | Model wrapper that returns outputs formatted to match the given schema. Args: schema: The output sc | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 82 | Create a retry decorator for a given LLM and provided a list of error types. Args: error_types: List of err | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 164 | Get prompts that are already cached. Args: params: Dictionary of parameters. prompts: List of promp | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 200 | Get prompts that are already cached. Async version. Args: params: Dictionary of parameters. prompts | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 238 | Update the cache and get the LLM output. Args: cache: Cache object. existing_prompts: Dictionary of | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 271 | Update the cache and get the LLM output. Async version. Args: cache: Cache object. existing_prompts | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 864 | Pass a sequence of prompts to a model and return generations. This method should make use of batched calls for | STRING |
| HIGH | libs/core/langchain_core/language_models/llms.py | 1147 | Asynchronously pass a sequence of prompts to a model and return generations. This method should make use of bat | STRING |
| HIGH | libs/core/langchain_core/tools/convert.py | 90 | Convert Python functions and `Runnables` to LangChain tools. Can be used as a decorator with or without arguments t | STRING |
| HIGH | libs/core/langchain_core/tools/structured.py | 148 | Create tool from a given function. A classmethod that helps to create a tool from a function. Args: | STRING |
| HIGH | libs/core/langchain_core/tools/simple.py | 75 | Convert tool input to Pydantic model. Args: tool_input: The input to the tool. tool_cal | STRING |
| HIGH | libs/core/langchain_core/tools/simple.py | 180 | Initialize tool from a function. Args: func: The function to create the tool from. name | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 225 | Check if all Pydantic annotations in a function are from v1. Args: signature: The function signature to che | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 755 | Parse and validate tool input using the args schema. Args: tool_input: The raw input to the tool. | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 941 | Convert tool input to positional and keyword arguments. Args: tool_input: The input to the tool. | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 993 | Run the tool. Args: tool_input: The input to the tool. verbose: Whether to log the tool | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 1121 | Run the tool asynchronously. Args: tool_input: The input to the tool. verbose: Whether | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 1254 | Handle validation errors based on the configured flag. Args: e: The validation error that occurred. | STRING |
| HIGH | libs/core/langchain_core/tools/base.py | 1289 | Convert a `ToolException` into handled tool output content. Args: e: The tool exception that occurred. | STRING |
| HIGH | libs/core/langchain_core/messages/content.py | 1005 | Create an `ImageContentBlock`. Args: url: URL of the image. base64: Base64-encoded image data. | STRING |
| HIGH | libs/core/langchain_core/messages/content.py | 1067 | Create a `VideoContentBlock`. Args: url: URL of the video. base64: Base64-encoded video data. | STRING |
| HIGH | libs/core/langchain_core/messages/content.py | 1133 | Create an `AudioContentBlock`. Args: url: URL of the audio. base64: Base64-encoded audio data. | STRING |
| HIGH | libs/core/langchain_core/messages/content.py | 1199 | Create a `FileContentBlock`. Args: url: URL of the file. base64: Base64-encoded file data. | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 255 | Get the type string for XML message element. Args: m: The message to get the type string for. human | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 298 | Convert a sequence of messages to strings and concatenate them into one string. Args: messages: Messages to | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 602 | Create a message from a `Message` type and content string. Args: message_type: the type of the message (e.g | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 707 | Instantiate a `Message` from a variety of message formats. The message format can be one of the following: - ` | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 868 | Filter messages based on `name`, `type` or `id`. Args: messages: Sequence Message-like objects to filter. | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 1148 | Trim messages to be below a token count. `trim_messages` can be used to reduce the size of a chat history to a spec | STRING |
| HIGH | libs/core/langchain_core/messages/utils.py | 1556 | Convert LangChain messages into OpenAI message dicts. Args: messages: Message-like object or iterable of ob | STRING |
| HIGH | libs/core/langchain_core/messages/base.py | 413 | Message chunks support concatenation with other message chunks. This functionality is useful to combine message | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 23 | Convert `ImageContentBlock` to format expected by OpenAI Chat Completions. Args: block: The image content b | STRING |
| HIGH | …re/langchain_core/messages/block_translators/openai.py | 62 | Format standard data content block to format expected by OpenAI. "Standard data content block" can include old-styl | STRING |
| HIGH | …angchain_core/example_selectors/semantic_similarity.py | 155 | Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on quer | STRING |
| HIGH | …angchain_core/example_selectors/semantic_similarity.py | 199 | Async create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based o | STRING |
| HIGH | …angchain_core/example_selectors/semantic_similarity.py | 288 | Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on Max | STRING |
| HIGH | …angchain_core/example_selectors/semantic_similarity.py | 335 | Create k-shot example selector using example list and embeddings. Reshuffles examples dynamically based on Max | STRING |
| HIGH | libs/core/langchain_core/callbacks/manager.py | 2403 | Configure the callback manager. Args: callback_manager_cls: The callback manager class. inheritable | STRING |
| HIGH | libs/core/langchain_core/_security/_ssrf_protection.py | 47 | Validate a URL for SSRF protection. This function validates URLs to prevent Server-Side Request Forgery (SSRF) atta | STRING |
| HIGH | libs/core/langchain_core/_api/__init__.py | 61 | Dynamically import and return an attribute from a submodule. This function enables lazy loading of API functions fr | STRING |
| HIGH | libs/core/langchain_core/utils/env.py | 61 | Get a value from a dictionary or an environment variable. Args: key: The key to look up in the dictionary. | STRING |
| HIGH | libs/core/langchain_core/utils/formatting.py | 26 | Format a string using only keyword arguments. Overrides the base `vformat` to reject positional arguments, ensu | STRING |
| HIGH | libs/core/langchain_core/utils/_merge.py | 7 | Merge dictionaries. Merge many dicts, handling specific scenarios where a key exists in both dictionaries but h | STRING |
| HIGH | libs/core/langchain_core/utils/_merge.py | 171 | Merge two objects. It handles specific scenarios where a key exists in both dictionaries but has a value of `No | STRING |
| HIGH | libs/core/langchain_core/utils/function_calling.py | 164 | Converts a Pydantic model to a function description for the OpenAI API. Args: model: The Pydantic model to | STRING |
| HIGH | libs/core/langchain_core/utils/function_calling.py | 327 | Format tool into the OpenAI function API. Args: tool: The tool to format. Raises: ValueError: | STRING |
| 212 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …bs/text-splitters/langchain_text_splitters/__init__.py | 51 | __all__ = [ | CODE |
| LOW | libs/text-splitters/langchain_text_splitters/base.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 304 | def _setup(self) -> None: | CODE |
| LOW | libs/core/langchain_core/globals.py | 18 | def set_verbose(value: bool) -> None: # noqa: FBT001 | CODE |
| LOW | libs/core/langchain_core/globals.py | 37 | def set_debug(value: bool) -> None: # noqa: FBT001 | CODE |
| LOW | libs/core/langchain_core/globals.py | 56 | def set_llm_cache(value: Optional["BaseCache"]) -> None: | CODE |
| LOW | libs/core/langchain_core/rate_limiters.py | 253 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/language_models/llms.py | 66 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/core/langchain_core/language_models/_compat_bridge.py | 837 | __all__ = [ | CODE |
| LOW | …s/core/langchain_core/language_models/model_profile.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 238 | def set_start(self, cb: Callable[[], None] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 242 | def set_request_more(self, cb: Callable[[], bool] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 336 | def set_start(self, cb: Callable[[], Awaitable[None]] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 340 | def set_arequest_more(self, cb: Callable[[], Awaitable[bool]] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 547 | def set_message_id(self, message_id: str) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1104 | def set_start(self, cb: Callable[[], None] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1111 | def set_request_more(self, cb: Callable[[], bool]) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1252 | def set_arequest_more(self, cb: Callable[[], Awaitable[bool]] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1273 | def set_start(self, cb: Callable[[], Awaitable[None]] | None) -> None: | CODE |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1435 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/messages/ai.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/messages/utils.py | 65 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/_security/__init__.py | 25 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/utils/html.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/utils/function_calling.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/utils/mustache.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/utils/uuid.py | 57 | __all__ = ["uuid7"] | CODE |
| LOW | libs/core/langchain_core/runnables/graph_png.py | 205 | def update_styles(viz: Any, graph: Graph) -> None: | CODE |
| LOW | libs/core/langchain_core/vectorstores/utils.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/vectorstores/base.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/load/serializable.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/output_parsers/openai_tools.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/output_parsers/__init__.py | 52 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/output_parsers/pydantic.py | 137 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/output_parsers/json.py | 134 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/prompts/loading.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | …s/core/langchain_core/document_loaders/blob_loaders.py | 38 | __all__ = ["Blob", "BlobLoader", "PathLike"] | CODE |
| LOW | libs/core/langchain_core/tracers/evaluation.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/tracers/core.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/tracers/_streaming.py | 50 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/tracers/event_stream.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/core/langchain_core/tracers/schemas.py | 12 | __all__ = [ | CODE |
| LOW | libs/core/langchain_core/tracers/langchain.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | libs/core/langchain_core/tracers/langchain.py | 342 | def _update_run_single(run: Run) -> None: | CODE |
| LOW | libs/core/langchain_core/tracers/base.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/langchain/langchain_classic/serpapi.py | 23 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/text_splitter.py | 29 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/example_generator.py | 5 | __all__ = ["generate_example"] | CODE |
| LOW | libs/langchain/langchain_classic/globals.py | 12 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/cache.py | 55 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/__init__.py | 377 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/formatting.py | 5 | __all__ = ["StrictFormatter", "formatter"] | CODE |
| LOW | libs/langchain/langchain_classic/sql_database.py | 23 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/base_language.py | 7 | __all__ = ["BaseLanguageModel"] | CODE |
| LOW | libs/langchain/langchain_classic/input.py | 10 | __all__ = [ | CODE |
| LOW | libs/langchain/langchain_classic/requests.py | 31 | __all__ = [ | CODE |
| LOW | …n/langchain_classic/chat_loaders/facebook_messenger.py | 32 | __all__ = ["FolderFacebookMessengerChatLoader", "SingleFileFacebookMessengerChatLoader"] | CODE |
| LOW | …s/langchain/langchain_classic/chat_loaders/whatsapp.py | 21 | __all__ = [ | CODE |
| LOW | …s/langchain/langchain_classic/chat_loaders/telegram.py | 21 | __all__ = [ | CODE |
| 1065 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …s/text-splitters/langchain_text_splitters/character.py | 523 | # --------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 143 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 235 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 353 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 355 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 196 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 272 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 274 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 315 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …bs/core/tests/unit_tests/test_ssrf_policy_transport.py | 317 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 43 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 146 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 844 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …tests/unit_tests/language_models/test_compat_bridge.py | 846 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …tests/unit_tests/language_models/test_compat_bridge.py | 1107 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …tests/unit_tests/language_models/test_compat_bridge.py | 1109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 21 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 294 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 296 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/unit_tests/language_models/test_chat_model_stream.py | 789 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/unit_tests/language_models/test_chat_model_stream.py | 791 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/tests/unit_tests/messages/test_utils.py | 2964 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/tests/unit_tests/messages/test_utils.py | 2966 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 149 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 224 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 226 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 462 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 464 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 525 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 527 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 585 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/core/langchain_core/language_models/_compat_bridge.py | 587 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 48 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 213 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 215 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 308 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 310 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 468 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 470 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 1037 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 1039 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 1193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …re/langchain_core/language_models/chat_model_stream.py | 1195 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/langchain_core/_security/_policy.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/langchain_core/_security/_policy.py | 14 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/langchain_core/_security/_policy.py | 97 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/langchain_core/_security/_policy.py | 99 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libs/core/langchain_core/_security/_policy.py | 120 | # --------------------------------------------------------------------------- | COMMENT |
| 182 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/text-splitters/scripts/check_imports.py | 13 | except Exception: # noqa: BLE001 | CODE |
| LOW | libs/core/tests/unit_tests/conftest.py | 92 | except Exception: | CODE |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v1.py | 1556 | except Exception: | CODE |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v1.py | 1673 | except Exception: | CODE |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v2.py | 1513 | except Exception: | CODE |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v2.py | 1630 | except Exception: | CODE |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v2.py | 1975 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/sys_info.py | 96 | except Exception: | CODE |
| LOW | libs/core/langchain_core/sys_info.py | 105 | except Exception: | CODE |
| LOW | libs/core/langchain_core/sys_info.py | 129 | except Exception: | CODE |
| LOW | libs/core/langchain_core/retrievers.py | 227 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/retrievers.py | 288 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/agents.py | 231 | except Exception: | CODE |
| LOW | libs/core/langchain_core/agents.py | 251 | except Exception: | CODE |
| LOW⚡ | libs/core/langchain_core/language_models/chat_models.py | 115 | except Exception: | CODE |
| LOW⚡ | libs/core/langchain_core/language_models/chat_models.py | 118 | except Exception: | CODE |
| LOW⚡ | libs/core/langchain_core/language_models/chat_models.py | 123 | except Exception: | CODE |
| LOW | libs/core/langchain_core/language_models/llms.py | 114 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/language_models/llms.py | 446 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/language_models/llms.py | 492 | except Exception as e: | CODE |
| LOW | …/core/langchain_core/language_models/_compat_bridge.py | 187 | except Exception: | CODE |
| LOW | libs/core/langchain_core/tools/base.py | 928 | except Exception: | CODE |
| LOW | libs/core/langchain_core/tools/base.py | 1450 | except Exception: | CODE |
| LOW | libs/core/langchain_core/tools/base.py | 1467 | except Exception: | CODE |
| LOW | libs/core/langchain_core/messages/ai.py | 328 | except Exception: | CODE |
| LOW | libs/core/langchain_core/messages/ai.py | 568 | except Exception: | CODE |
| LOW | …gchain_core/messages/block_translators/google_genai.py | 413 | except Exception: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 126 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 209 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 340 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 388 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 400 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 442 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/callbacks/manager.py | 2543 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/utils/html.py | 107 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/utils/function_calling.py | 274 | except Exception: | CODE |
| LOW | libs/core/langchain_core/runnables/configurable.py | 185 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/configurable.py | 228 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/router.py | 159 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/router.py | 196 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/base.py | 957 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/base.py | 1028 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/base.py | 1094 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/runnables/base.py | 1166 | except Exception as e: | CODE |
| LOW⚡ | libs/core/langchain_core/load/serializable.py | 78 | except Exception as _: | CODE |
| LOW⚡ | libs/core/langchain_core/load/serializable.py | 81 | except Exception as _: | CODE |
| LOW⚡ | libs/core/langchain_core/load/serializable.py | 84 | except Exception as _: | CODE |
| LOW | libs/core/langchain_core/load/serializable.py | 321 | except Exception as _: | CODE |
| LOW | libs/core/langchain_core/load/serializable.py | 377 | except Exception: | CODE |
| LOW | libs/core/langchain_core/document_loaders/langsmith.py | 182 | except Exception: | CODE |
| LOW | libs/core/langchain_core/indexing/api.py | 216 | except Exception as e: | CODE |
| LOW | libs/core/langchain_core/tracers/evaluation.py | 147 | except Exception: | CODE |
| LOW | libs/core/langchain_core/tracers/core.py | 121 | except Exception: | CODE |
| LOW | libs/core/langchain_core/tracers/stdout.py | 26 | except Exception: | CODE |
| LOW⚡ | libs/core/langchain_core/tracers/langchain.py | 336 | except Exception as e: | CODE |
| LOW⚡ | libs/core/langchain_core/tracers/langchain.py | 348 | except Exception as e: | CODE |
| MEDIUM⚡ | libs/core/scripts/check_version.py | 63 | print(f"Error: {pyproject_path} not found") | CODE |
| MEDIUM⚡ | libs/core/scripts/check_version.py | 67 | print(f"Error: {version_path} not found") | CODE |
| MEDIUM⚡ | libs/core/scripts/check_version.py | 74 | print("Error: Could not find version in pyproject.toml") | CODE |
| MEDIUM⚡ | libs/core/scripts/check_version.py | 78 | print("Error: Could not find VERSION in langchain_core/version.py") | CODE |
| 213 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …text-splitters/tests/unit_tests/test_text_splitters.py | 1092 | else if (age >= 18 && age < 65) | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 31 | proj.push("a") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 32 | proj.push("b") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 38 | proj.push("x") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 132 | proj.push("a") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 142 | proj.push("x") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 144 | proj.push("y") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 162 | proj.push("partial") | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 176 | proj.push(next(deltas)) | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 199 | proj.push(value) | CODE |
| HIGH⚡ | …s/unit_tests/language_models/test_chat_model_stream.py | 215 | proj.push("only") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 51 | proj.push(val) | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 60 | proj.push("partial") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 73 | proj.push("a") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 74 | proj.push("b") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 91 | proj.push("Hello") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 92 | proj.push(" world") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 103 | proj.push("Hi") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 115 | proj.push("x") | CODE |
| HIGH | …s/unit_tests/language_models/test_chat_model_stream.py | 120 | proj.push("hello") | CODE |
| HIGH | …ests/unit_tests/output_parsers/test_pydantic_parser.py | 130 | "additional_fields": null, | CODE |
| HIGH⚡ | …re/langchain_core/language_models/chat_model_stream.py | 785 | self._reasoning_proj.push(full_r) | CODE |
| HIGH⚡ | …re/langchain_core/language_models/chat_model_stream.py | 789 | self._reasoning_proj.push(tail) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 631 | self._text_proj.push(delta_text) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 640 | self._reasoning_proj.push(delta_r) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 660 | self._tool_calls_proj.push(chunk_block) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 690 | self._tool_calls_proj.push(legacy_chunk_block) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 728 | self._tool_calls_proj.push(fallback_chunk_block) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 756 | self._text_proj.push(full_text) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 762 | self._text_proj.push(tail) | CODE |
| HIGH | …re/langchain_core/language_models/chat_model_stream.py | 1420 | self._events_proj.push(cast("MessagesData", event)) | CODE |
| HIGH | libs/core/langchain_core/utils/json_schema.py | 184 | # Case 4: Primitive value (string, number, boolean, null) - return unchanged | COMMENT |
| HIGH⚡ | …s/langchain/langchain_classic/chains/natbot/crawler.py | 101 | "(document.scrollingElement || document.body).scrollTop = " | CODE |
| HIGH⚡ | …s/langchain/langchain_classic/chains/natbot/crawler.py | 102 | "(document.scrollingElement || document.body).scrollTop - " | CODE |
| HIGH⚡ | …s/langchain/langchain_classic/chains/natbot/crawler.py | 107 | "(document.scrollingElement || document.body).scrollTop = " | CODE |
| HIGH⚡ | …s/langchain/langchain_classic/chains/natbot/crawler.py | 108 | "(document.scrollingElement || document.body).scrollTop + " | CODE |
| HIGH | …langchain_v1/langchain/agents/_subagent_transformer.py | 195 | self._log.push(handle) | CODE |
| HIGH | …langchain_v1/langchain/agents/_subagent_transformer.py | 279 | handle._mux.push(event) # noqa: SLF001 | CODE |
| HIGH | libs/partners/groq/langchain_groq/chat_models.py | 1469 | # Groq sends 'null' (JSON null) for tools with no arguments, but we | STRING |
| HIGH | libs/partners/groq/langchain_groq/chat_models.py | 1548 | # Groq sends 'null' (JSON null) for tools with no arguments, but we | STRING |
| HIGH | …rtners/perplexity/tests/unit_tests/test_chat_models.py | 271 | # Empty content alongside tool_calls must be sent as null, not "". | COMMENT |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 453 | DEEPSEEK_STREAM_DATA = """{"id":"d3610c24e6b42518a7883ea57c3ea2c3","choices":[{"index":0,"delta":{"content":"","role":"a | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 454 | {"choices":[{"delta":{"content":"我是","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 455 | {"choices":[{"delta":{"content":"Deep","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 456 | {"choices":[{"delta":{"content":"Seek","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 457 | {"choices":[{"delta":{"content":" Chat","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 458 | {"choices":[{"delta":{"content":",","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 459 | {"choices":[{"delta":{"content":"一个","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 460 | {"choices":[{"delta":{"content":"由","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 461 | {"choices":[{"delta":{"content":"深度","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 462 | {"choices":[{"delta":{"content":"求","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 463 | {"choices":[{"delta":{"content":"索","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 464 | {"choices":[{"delta":{"content":"公司","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 465 | {"choices":[{"delta":{"content":"开发的","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":172 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 466 | {"choices":[{"delta":{"content":"智能","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 467 | {"choices":[{"delta":{"content":"助手","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1721 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 468 | {"choices":[{"delta":{"content":"。","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":17216 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 469 | {"choices":[{"delta":{"content":"","role":null},"finish_reason":"stop","index":0,"logprobs":null}],"created":1721630271, | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 532 | OPENAI_STREAM_DATA = """{"id":"chatcmpl-9nhARrdUiJWEMd5plwV1Gc9NCjb9M","object":"chat.completion.chunk","created":172163 | CODE |
| HIGH⚡ | …tners/openai/tests/unit_tests/chat_models/test_base.py | 533 | {"id":"chatcmpl-9nhARrdUiJWEMd5plwV1Gc9NCjb9M","object":"chat.completion.chunk","created":1721631035,"model":"gpt-5.5"," | CODE |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/text-splitters/tests/unit_tests/conftest.py | 23 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 252 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 428 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 874 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 927 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/markdown.py | 134 | CODE | |
| LOW | …bs/text-splitters/langchain_text_splitters/markdown.py | 372 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/json.py | 85 | CODE | |
| LOW | libs/text-splitters/langchain_text_splitters/base.py | 167 | CODE | |
| LOW | libs/core/tests/unit_tests/conftest.py | 49 | CODE | |
| LOW | libs/core/tests/unit_tests/pydantic_utils.py | 18 | CODE | |
| LOW | libs/core/tests/unit_tests/pydantic_utils.py | 40 | CODE | |
| LOW | libs/core/tests/unit_tests/test_pydantic_imports.py | 7 | CODE | |
| LOW | libs/core/tests/unit_tests/messages/test_utils.py | 593 | CODE | |
| LOW | libs/core/tests/unit_tests/messages/test_utils.py | 605 | CODE | |
| LOW | libs/core/tests/unit_tests/utils/test_utils.py | 190 | CODE | |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 343 | CODE | |
| LOW | …/tests/unit_tests/runnables/test_runnable_events_v2.py | 2156 | CODE | |
| LOW | libs/core/langchain_core/sys_info.py | 11 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 108 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 138 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 715 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 842 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 1864 | CODE | |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 2023 | CODE | |
| LOW | libs/core/langchain_core/language_models/llms.py | 77 | CODE | |
| LOW | libs/core/langchain_core/language_models/llms.py | 135 | CODE | |
| LOW | libs/core/langchain_core/language_models/llms.py | 97 | CODE | |
| LOW | libs/core/langchain_core/language_models/llms.py | 514 | CODE | |
| LOW | …ore/langchain_core/language_models/fake_chat_models.py | 266 | CODE | |
| LOW | …/core/langchain_core/language_models/_compat_bridge.py | 152 | CODE | |
| LOW | …/core/langchain_core/language_models/_compat_bridge.py | 301 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 246 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 422 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 580 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 615 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 793 | CODE | |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 1155 | CODE | |
| LOW | libs/core/langchain_core/language_models/_utils.py | 33 | CODE | |
| LOW | libs/core/langchain_core/language_models/_utils.py | 140 | CODE | |
| LOW | libs/core/langchain_core/tools/structured.py | 133 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 752 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 902 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 977 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 1105 | CODE | |
| LOW | libs/core/langchain_core/messages/ai.py | 243 | CODE | |
| LOW | libs/core/langchain_core/messages/ai.py | 509 | CODE | |
| LOW | libs/core/langchain_core/messages/ai.py | 604 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 287 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 593 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 706 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 857 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 1002 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 1549 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 1965 | CODE | |
| LOW | libs/core/langchain_core/messages/utils.py | 2239 | CODE | |
| LOW | libs/core/langchain_core/messages/tool.py | 92 | CODE | |
| LOW | libs/core/langchain_core/messages/base.py | 366 | CODE | |
| LOW | libs/core/langchain_core/messages/base.py | 200 | CODE | |
| LOW | …gchain_core/messages/block_translators/langchain_v0.py | 46 | CODE | |
| 265 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 345 | run = self.client.beta.threads.runs.submit_tool_outputs(**tool_outputs) | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 362 | _ = self.client.beta.threads.messages.create( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 372 | run = self.client.beta.threads.runs.submit_tool_outputs(**input) | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 477 | run = await self.async_client.beta.threads.runs.submit_tool_outputs( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 495 | _ = await self.async_client.beta.threads.messages.create( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 505 | run = await self.async_client.beta.threads.runs.submit_tool_outputs( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 562 | return self.client.beta.threads.runs.create( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 603 | messages = self.client.beta.threads.messages.list( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 673 | run = self.client.beta.threads.runs.retrieve(run_id, thread_id=thread_id) | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 719 | return await self.async_client.beta.threads.runs.create( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 760 | messages = await self.async_client.beta.threads.messages.list( | CODE |
| CRITICAL | …hain/langchain_classic/agents/openai_assistant/base.py | 826 | run = await self.async_client.beta.threads.runs.retrieve( | CODE |
| CRITICAL⚡ | …plexity/tests/unit_tests/test_chat_models_responses.py | 251 | llm.client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL | …plexity/tests/unit_tests/test_chat_models_responses.py | 185 | llm.client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL | …plexity/tests/unit_tests/test_chat_models_responses.py | 205 | llm.client.chat.completions.create.assert_not_called() | CODE |
| CRITICAL | …s/partners/openai/langchain_openai/chat_models/base.py | 1646 | response_stream = self.root_client.beta.chat.completions.stream( | CODE |
| CRITICAL | …s/partners/openai/langchain_openai/chat_models/base.py | 1710 | self.root_client.chat.completions.with_raw_response.parse(**payload) | CODE |
| CRITICAL | …s/partners/openai/langchain_openai/chat_models/base.py | 1906 | response_stream = self.root_async_client.beta.chat.completions.stream( | CODE |
| CRITICAL | …s/partners/openai/langchain_openai/chat_models/base.py | 1974 | raw_response = await self.root_async_client.chat.completions.with_raw_response.parse( # noqa: E501 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/text-splitters/tests/unit_tests/conftest.py | 58 | # Iterate through the list of required packages | COMMENT |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3512 | # Check if a file exists | COMMENT |
| LOW | …text-splitters/tests/unit_tests/test_text_splitters.py | 3523 | '# Check if a file exists\n$filePath = "C:\\temp\\file.txt"', | STRING |
| LOW | …ers/tests/integration_tests/test_nlp_text_splitters.py | 21 | # Check if en_core_web_sm model is available | COMMENT |
| LOW | …bs/text-splitters/langchain_text_splitters/markdown.py | 193 | # Check if line matches either standard or custom header pattern | COMMENT |
| LOW | libs/core/tests/unit_tests/conftest.py | 84 | # Iterate through the list of required packages | COMMENT |
| LOW | …s/unit_tests/indexing/test_in_memory_record_manager.py | 153 | # Check if the keys exist in the database | COMMENT |
| LOW | …s/unit_tests/indexing/test_in_memory_record_manager.py | 168 | # Check if the keys exist in the database | COMMENT |
| LOW | …s/unit_tests/indexing/test_in_memory_record_manager.py | 262 | # Check if the deleted keys are no longer in the database | COMMENT |
| LOW | …s/unit_tests/indexing/test_in_memory_record_manager.py | 277 | # Check if the deleted keys are no longer in the database | COMMENT |
| LOW | libs/core/langchain_core/language_models/chat_models.py | 550 | # Check if streaming is implemented. | COMMENT |
| LOW | libs/core/langchain_core/tools/base.py | 844 | # Check if field has an explicit default defined in the schema. | COMMENT |
| LOW | libs/core/langchain_core/messages/utils.py | 454 | # Check if this is an AIMessage with tool calls | STRING |
| LOW | libs/core/langchain_core/messages/utils.py | 1978 | # Check if all messages already fit within token limit | STRING |
| LOW | …gchain_core/messages/block_translators/langchain_v0.py | 70 | # Check if this is actually a v0 format block | COMMENT |
| LOW | libs/core/langchain_core/callbacks/file.py | 77 | # Open the file in the specified mode with UTF-8 encoding. | COMMENT |
| LOW | libs/core/langchain_core/utils/pydantic.py | 161 | # Check if allow_population_by_field_name is enabled | COMMENT |
| LOW | libs/core/langchain_core/utils/function_calling.py | 824 | # Check if 'required' is a key at the current level or if the schema is empty, | COMMENT |
| LOW | libs/core/langchain_core/runnables/graph_mermaid.py | 437 | # Check if the background color is a hexadecimal color code using regex | COMMENT |
| LOW | libs/core/langchain_core/load/_validation.py | 88 | # Check if dict needs escaping BEFORE recursing into values. | COMMENT |
| LOW | libs/core/langchain_core/prompts/loading.py | 90 | # Check if template_path exists in config. | COMMENT |
| LOW | libs/langchain/tests/unit_tests/conftest.py | 72 | # Iterate through the list of required packages | COMMENT |
| LOW⚡ | …ngchain/tests/unit_tests/agents/test_agent_iterator.py | 284 | # Check if properties are updated | COMMENT |
| LOW⚡ | …ngchain/tests/unit_tests/agents/test_agent_iterator.py | 292 | # Check if properties are reset | COMMENT |
| LOW⚡ | …ngchain/tests/unit_tests/agents/test_agent_iterator.py | 337 | assert outputs[-1]["output"] # Check if there is an output | CODE |
| LOW | …ngchain/tests/unit_tests/agents/test_agent_iterator.py | 352 | assert len(outputs) == 2 # Check if the custom stopping condition is respected | CODE |
| LOW | …/langchain/tests/unit_tests/storage/test_filesystem.py | 93 | # Check if the deleted key is present | COMMENT |
| LOW | …gchain_classic/callbacks/streaming_aiter_final_only.py | 92 | # Check if the last n tokens match the answer_prefix_tokens list ... | COMMENT |
| LOW | …chain_classic/callbacks/streaming_stdout_final_only.py | 88 | # Check if the last n tokens match the answer_prefix_tokens list ... | COMMENT |
| LOW⚡ | …n/langchain_classic/output_parsers/pandas_dataframe.py | 54 | # Check if the format is [1,3,5] | COMMENT |
| LOW⚡ | …n/langchain_classic/output_parsers/pandas_dataframe.py | 57 | # Check if the format is [1..5] | COMMENT |
| LOW⚡ | …n/langchain_classic/output_parsers/pandas_dataframe.py | 67 | # Check if the format is ["column_name"] | COMMENT |
| LOW | …/langchain_classic/evaluation/comparison/eval_chain.py | 263 | # Check if the model is GPT-4 if not raise a warning | STRING |
| LOW | libs/langchain_v1/langchain/agents/factory.py | 1302 | # Check if any requested tools are unknown CLIENT-SIDE tools | COMMENT |
| LOW⚡ | …angchain_v1/langchain/agents/middleware/model_retry.py | 238 | # Check if we should retry this exception | COMMENT |
| LOW⚡ | …angchain_v1/langchain/agents/middleware/model_retry.py | 243 | # Check if we have more retries left | COMMENT |
| LOW⚡ | …angchain_v1/langchain/agents/middleware/model_retry.py | 288 | # Check if we should retry this exception | COMMENT |
| LOW⚡ | …angchain_v1/langchain/agents/middleware/model_retry.py | 293 | # Check if we have more retries left | COMMENT |
| LOW | …gchain_v1/langchain/agents/middleware/tool_emulator.py | 126 | # Check if this tool should be emulated | COMMENT |
| LOW | …gchain_v1/langchain/agents/middleware/tool_emulator.py | 178 | # Check if this tool should be emulated | COMMENT |
| LOW | …hain_v1/langchain/agents/middleware/tool_call_limit.py | 422 | # Check if there are tool calls to other tools that would continue executing | COMMENT |
| LOW | …langchain_v1/langchain/agents/middleware/tool_retry.py | 308 | # Check if retry should apply to this tool | COMMENT |
| LOW⚡ | …langchain_v1/langchain/agents/middleware/tool_retry.py | 325 | # Check if we should retry this exception | COMMENT |
| LOW⚡ | …langchain_v1/langchain/agents/middleware/tool_retry.py | 330 | # Check if we have more retries left | COMMENT |
| LOW | …langchain_v1/langchain/agents/middleware/tool_retry.py | 370 | # Check if retry should apply to this tool | COMMENT |
| LOW⚡ | …langchain_v1/langchain/agents/middleware/tool_retry.py | 387 | # Check if we should retry this exception | COMMENT |
| LOW⚡ | …langchain_v1/langchain/agents/middleware/tool_retry.py | 392 | # Check if we have more retries left | COMMENT |
| LOW | …ain_v1/langchain/agents/middleware/model_call_limit.py | 189 | # Check if any limits will be exceeded after the next call | COMMENT |
| LOW | libs/langchain_v1/tests/unit_tests/conftest.py | 124 | # Iterate through the list of required packages | COMMENT |
| LOW | …perplexity/tests/integration_tests/test_chat_models.py | 45 | # Check if any chunk has reasoning_steps | COMMENT |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1715 | # Check if the vector configuration has the same dimensionality. | COMMENT |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1882 | # Check if the vector configuration has the same dimensionality. | COMMENT |
| LOW | …/partners/anthropic/langchain_anthropic/chat_models.py | 1652 | # Assign citations to a list if present | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 443 | # Read file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 493 | # Read file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 568 | # Read file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 898 | # Read file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 935 | # Write file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 962 | # Read file | COMMENT |
| LOW | …opic/langchain_anthropic/middleware/anthropic_tools.py | 999 | # Read file | COMMENT |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …plitters/tests/integration_tests/test_text_splitter.py | 88 | text = "Lorem ipsum" | CODE |
| LOW⚡ | …plitters/tests/integration_tests/test_text_splitter.py | 104 | text = "lorem ipsum" | CODE |
| LOW | …plitters/tests/integration_tests/test_text_splitter.py | 151 | text = "lorem ipsum" | CODE |
| LOW | …/tests/unit_tests/example_selectors/test_similarity.py | 36 | return ["dummy_id"] | CODE |
| LOW | …e/tests/unit_tests/output_parsers/test_openai_tools.py | 1109 | "street": "123 Main St", | CODE |
| LOW | …e/tests/unit_tests/output_parsers/test_openai_tools.py | 1125 | assert result_v1[0].address.street == "123 Main St" # type: ignore[attr-defined,unused-ignore] | CODE |
| LOW | libs/core/tests/unit_tests/examples/example-utf8.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | CODE |
| LOW | libs/core/tests/unit_tests/examples/example-utf8.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | CODE |
| LOW⚡ | libs/core/tests/unit_tests/prompts/test_chat.py | 1093 | prompt = ChatPromptTemplate([("placeholder", "{convo}")]) | CODE |
| LOW⚡ | libs/core/tests/unit_tests/prompts/test_chat.py | 1101 | optional_prompt = ChatPromptTemplate([("placeholder", ["{convo}", False])]) | CODE |
| LOW⚡ | libs/core/tests/unit_tests/prompts/test_chat.py | 1110 | prompt = ChatPromptTemplate([{"role": "placeholder", "content": "{convo}"}]) | CODE |
| LOW⚡ | libs/core/tests/unit_tests/prompts/test_chat.py | 1119 | [{"role": "placeholder", "content": ["{convo}", False]}] | CODE |
| LOW | libs/core/tests/unit_tests/prompts/test_chat.py | 1203 | assert dumpd(MessagesPlaceholder("bar")) == snapshot(name="placeholder") | CODE |
| LOW | libs/core/tests/unit_tests/prompts/test_chat.py | 1256 | ("placeholder", "{chat_history}"), | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 9 | uid="123", page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 9 | uid="123", page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 18 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 18 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 23 | assert hashed_doc.page_content == "Lorem ipsum dolor sit amet" | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 23 | assert hashed_doc.page_content == "Lorem ipsum dolor sit amet" | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 30 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 30 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "value"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 61 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "like a duck"} | CODE |
| LOW⚡ | …core/tests/unit_tests/indexing/test_hashed_document.py | 61 | page_content="Lorem ipsum dolor sit amet", metadata={"key": "like a duck"} | CODE |
| LOW | libs/core/langchain_core/prompts/chat.py | 842 | ("placeholder", "{conversation}"), | STRING |
| LOW | libs/core/langchain_core/prompts/chat.py | 1371 | elif message_type == "placeholder": | CODE |
| LOW | …s/langchain/tests/unit_tests/examples/example-utf8.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | CODE |
| LOW | …s/langchain/tests/unit_tests/examples/example-utf8.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | CODE |
| LOW | …hain/tests/unit_tests/evaluation/qa/test_eval_chain.py | 27 | example = {"query": "What's my name", "answer": "John Doe"} | CODE |
| LOW | …hain/tests/unit_tests/evaluation/qa/test_eval_chain.py | 28 | prediction = {"result": "John Doe"} | CODE |
| LOW | …hain/tests/unit_tests/evaluation/qa/test_eval_chain.py | 48 | prediction = {"result": "John Doe"} | CODE |
| LOW | …in/langchain_classic/agents/tool_calling_agent/base.py | 53 | ("placeholder", "{chat_history}"), | STRING |
| LOW | …in/langchain_classic/agents/tool_calling_agent/base.py | 55 | ("placeholder", "{agent_scratchpad}"), | STRING |
| LOW | …s/langchain/langchain_classic/chains/natbot/crawler.py | 341 | attributes[index], ["type", "placeholder", "aria-label", "title", "alt"] | CODE |
| LOW | …s/agents/middleware/implementations/test_shell_tool.py | 133 | assert "user@example.com" not in message | CODE |
| LOW | …it_tests/agents/middleware/implementations/test_pii.py | 283 | assert "user@example.com" not in content | CODE |
| LOW⚡ | …artners/fireworks/tests/unit_tests/test_chat_models.py | 83 | llm = ChatFireworks(model="foo", api_key="fake-key") # type: ignore[arg-type] | CODE |
| LOW⚡ | …artners/fireworks/tests/unit_tests/test_chat_models.py | 86 | 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.py | 124 | os.environ.setdefault("FIREWORKS_API_KEY", "fake-key") | CODE |
| LOW | …artners/fireworks/tests/unit_tests/test_chat_models.py | 48 | defaults: dict[str, Any] = {"model": MODEL_NAME, "api_key": "fake-key"} | CODE |
| LOW | …artners/fireworks/tests/unit_tests/test_chat_models.py | 625 | api_key="fake-key", # type: ignore[arg-type] | CODE |
| LOW | …artners/fireworks/tests/unit_tests/test_chat_models.py | 1809 | ChatFireworks(model=MODEL_NAME, api_key="fake-key") # type: ignore[arg-type] | CODE |
| LOW | …artners/fireworks/tests/unit_tests/test_chat_models.py | 1830 | api_key="fake-key", # type: ignore[arg-type] | CODE |
| LOW | libs/partners/groq/tests/unit_tests/test_chat_models.py | 36 | os.environ["GROQ_API_KEY"] = "fake-key" | CODE |
| LOW⚡ | …ers/perplexity/tests/unit_tests/test_output_parsers.py | 199 | text = '{"name": "John Doe", "age": 30, "email": "john@example.com"}' | CODE |
| LOW⚡ | …ers/perplexity/tests/unit_tests/test_output_parsers.py | 203 | assert result.name == "John Doe" | CODE |
| LOW⚡ | …ers/perplexity/tests/unit_tests/test_output_parsers.py | 213 | object</think>{"name": "John Doe", "age": 30}' | CODE |
| LOW⚡ | …ers/perplexity/tests/unit_tests/test_output_parsers.py | 217 | assert result.name == "John Doe" | CODE |
| LOW⚡ | …tegration_tests/qdrant_vector_store/test_from_texts.py | 26 | ["Lorem ipsum dolor sit amet", "Ipsum dolor sit amet"], | CODE |
| LOW⚡ | …tegration_tests/qdrant_vector_store/test_from_texts.py | 26 | ["Lorem ipsum dolor sit amet", "Ipsum dolor sit amet"], | CODE |
| LOW⚡ | …openai/tests/integration_tests/chat_models/conftest.py | 105 | fake_token = chatgpt_oauth._ChatGPTToken( | CODE |
| LOW⚡ | …openai/tests/integration_tests/chat_models/conftest.py | 115 | return fake_token | CODE |
| LOW⚡ | …openai/tests/integration_tests/chat_models/conftest.py | 120 | return fake_token | CODE |
| LOW⚡ | …openai/tests/integration_tests/chat_models/conftest.py | 125 | return fake_token.access_token | CODE |
| LOW⚡ | …openai/tests/integration_tests/chat_models/conftest.py | 130 | return fake_token.access_token | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …s/partners/mistralai/langchain_mistralai/embeddings.py | 68 | export MISTRAL_API_KEY="your-api-key" | STRING |
| HIGH | …artners/openrouter/langchain_openrouter/chat_models.py | 120 | export OPENROUTER_API_KEY="your-api-key" | STRING |
| HIGH | libs/partners/exa/langchain_exa/tools.py | 29 | export EXA_API_KEY="your-api-key" | CODE |
| HIGH | …s/partners/fireworks/langchain_fireworks/embeddings.py | 18 | export FIREWORKS_API_KEY="your-api-key" | STRING |
| HIGH | libs/partners/groq/langchain_groq/chat_models.py | 141 | export GROQ_API_KEY="your-api-key" | CODE |
| HIGH | …bs/partners/deepseek/langchain_deepseek/chat_models.py | 56 | export DEEPSEEK_API_KEY="your-api-key" | STRING |
| HIGH | libs/partners/xai/langchain_xai/chat_models.py | 72 | export XAI_API_KEY="your-api-key" | CODE |
| HIGH | …artners/perplexity/langchain_perplexity/chat_models.py | 605 | export PPLX_API_KEY=your_api_key | STRING |
| HIGH | …partners/perplexity/langchain_perplexity/embeddings.py | 32 | export PPLX_API_KEY=your_api_key | STRING |
| HIGH | …/partners/anthropic/langchain_anthropic/chat_models.py | 890 | # export ANTHROPIC_API_KEY="your-api-key" | STRING |
| HIGH | …ners/openai/tests/unit_tests/chat_models/test_azure.py | 207 | api_key=SecretStr("your_api_key"), | CODE |
| HIGH | …ners/openai/tests/unit_tests/chat_models/test_azure.py | 227 | api_key=SecretStr("your_api_key"), | CODE |
| HIGH | …s/partners/openai/langchain_openai/embeddings/azure.py | 35 | export AZURE_OPENAI_API_KEY="your-api-key" | STRING |
| HIGH | …bs/partners/openai/langchain_openai/embeddings/base.py | 94 | export OPENAI_API_KEY="your-api-key" | STRING |
| HIGH | …/partners/openai/langchain_openai/chat_models/azure.py | 50 | export AZURE_OPENAI_API_KEY="your-api-key" | CODE |
| HIGH | …s/partners/openai/langchain_openai/chat_models/base.py | 2637 | export OPENAI_API_KEY="your-api-key" | CODE |
| HIGH | libs/partners/openai/langchain_openai/llms/base.py | 65 | export OPENAI_API_KEY="your-api-key" | STRING |
| HIGH | libs/partners/openai/langchain_openai/llms/base.py | 795 | export OPENAI_API_KEY="your-api-key" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/core/langchain_core/language_models/_compat_bridge.py | 621 | continue | COMMENT |
| LOW | …re/langchain_core/language_models/chat_model_stream.py | 881 | # Backfill the wire index onto the finalized block when the | COMMENT |
| LOW | libs/core/langchain_core/tools/convert.py | 361 | # @tool | COMMENT |
| LOW | libs/core/langchain_core/callbacks/manager.py | 361 | # running coroutine, which we cannot interrupt to run this one. | COMMENT |
| LOW | libs/core/langchain_core/utils/_merge.py | 41 | f'additional_kwargs["{right_k}"] already exists in this message,' | COMMENT |
| LOW | libs/core/langchain_core/prompts/chat.py | 821 | # messages=[ | COMMENT |
| LOW | …gchain/tests/unit_tests/agents/test_structured_chat.py | 181 | """, # noqa: E501 | COMMENT |
| LOW | …chain_v1/langchain/agents/middleware/model_fallback.py | 241 | # `_llm_type` values that indicate a model speaks an Anthropic-compatible API | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 1 | # import dataclasses | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 21 | # from langchain_core.tools import BaseTool, InjectedToolCallId, ToolException | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 41 | # ) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 61 | # ) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 81 | # assert saved.pending_writes == [] | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 101 | # } | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 121 | # agent = create_agent(FakeToolCallingModel(), [], system_prompt=prompt) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 141 | # async def prompt(state): | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 161 | # assert response == expected_response | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 181 | # model = FakeToolCallingModel() | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 201 | # assert response["messages"][-1].content == "foo-hi" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 221 | # model = FakeToolCallingModel() | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 241 | # model = FakeToolCallingModel(tool_style=tool_style) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 261 | # "allowed_tools": [ | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 281 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 301 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 321 | # expected = (ValueError,) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 341 | # _infer_handled_types(handler) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 361 | # """Get the weather""" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 381 | # "ai", # "What's the weather?" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 401 | # sync_checkpointer: BaseCheckpointSaver, | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 421 | # system_msg = f"User name is {user_name}" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 441 | # tool_message: ToolMessage = response["messages"][-2] | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 461 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 481 | # ) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 501 | # assert message_types == [ | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 521 | # def tool1( | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 541 | # store=store, | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 561 | # """A normal tool.""" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 581 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 601 | # model = FakeToolCallingModel(tool_calls=[second_tool_call, []]) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 621 | # ), | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 641 | # content="Normal result: Test both normal", | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 661 | # assert _get_state_args(foo) == {"a": None, "b": "bar"} | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 681 | # def add(state): | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 701 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 721 | # model, | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 741 | # content="6", | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 761 | # [{"args": {"city": "Tokyo"}, "id": "1", "name": "get_weather"}], | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 781 | # stream_mode="messages", | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 801 | # assert "assistant" in str(result["messages"][1]) | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 821 | # for event in compiled_workflow.stream( | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 841 | # def get_weather(city: str) -> str: | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 861 | # """Node that runs the React agent and collects streaming output.""" | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 881 | COMMENT | |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 901 | # {"messages": [("user", "What is the weather in Tokyo?")]}, | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 921 | # assert msg.content.startswith("You are a helpful travel assistant") | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 941 | # ToolCall(name="tool_interrupt", args={"some_val": 0}, id="1"), | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 961 | # "name": "tool_interrupt", | COMMENT |
| LOW | …ngchain_v1/tests/unit_tests/agents/test_react_agent.py | 981 | # assert task.name == "tools" | COMMENT |
| LOW | …tners/groq/tests/integration_tests/test_chat_models.py | 801 | "server_tool_call", | COMMENT |
| LOW | …/partners/anthropic/langchain_anthropic/chat_models.py | 121 | COMMENT | |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/text-splitters/langchain_text_splitters/html.py | 619 | CODE | |
| LOW | libs/core/langchain_core/tools/convert.py | 18 | CODE | |
| LOW | libs/core/langchain_core/tools/convert.py | 32 | CODE | |
| LOW | libs/core/langchain_core/tools/convert.py | 48 | CODE | |
| LOW | libs/core/langchain_core/tools/convert.py | 63 | CODE | |
| LOW | libs/core/langchain_core/tools/convert.py | 77 | CODE | |
| LOW | libs/core/langchain_core/tools/structured.py | 133 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 977 | CODE | |
| LOW | libs/core/langchain_core/tools/base.py | 1105 | CODE | |
| LOW | libs/core/langchain_core/messages/content.py | 1255 | CODE | |
| LOW | libs/core/langchain_core/callbacks/manager.py | 2390 | CODE | |
| LOW | libs/core/langchain_core/callbacks/manager.py | 1683 | CODE | |
| LOW | libs/core/langchain_core/callbacks/manager.py | 2212 | CODE | |
| LOW | libs/core/langchain_core/_api/deprecation.py | 120 | CODE | |
| LOW | libs/core/langchain_core/_api/deprecation.py | 480 | CODE | |
| LOW | libs/core/langchain_core/_api/deprecation.py | 190 | CODE | |
| LOW | libs/core/langchain_core/utils/mustache.py | 468 | CODE | |
| LOW | libs/core/langchain_core/runnables/graph_mermaid.py | 277 | CODE | |
| LOW | libs/core/langchain_core/runnables/graph.py | 632 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1225 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1242 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1258 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1331 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1356 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1603 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1662 | CODE | |
| LOW | libs/core/langchain_core/runnables/base.py | 1687 | CODE | |
| LOW | libs/core/langchain_core/document_loaders/langsmith.py | 40 | CODE | |
| LOW | libs/core/langchain_core/tracers/log_stream.py | 235 | CODE | |
| LOW | libs/langchain/langchain_classic/chat_models/base.py | 961 | CODE | |
| LOW | libs/langchain/langchain_classic/chat_models/base.py | 978 | CODE | |
| LOW | libs/langchain/langchain_classic/chat_models/base.py | 995 | CODE | |
| LOW | libs/langchain/langchain_classic/chat_models/base.py | 1026 | CODE | |
| LOW | …chain/langchain_classic/agents/structured_chat/base.py | 122 | CODE | |
| LOW | …gchain/langchain_classic/agents/conversational/base.py | 121 | CODE | |
| LOW | …n/langchain_classic/chains/question_answering/chain.py | 102 | CODE | |
| LOW | …n/langchain_classic/chains/question_answering/chain.py | 186 | CODE | |
| LOW | …/langchain/langchain_classic/chains/summarize/chain.py | 68 | CODE | |
| LOW | …in/langchain_classic/chains/qa_with_sources/loading.py | 83 | CODE | |
| LOW | libs/langchain_v1/langchain/chat_models/base.py | 927 | CODE | |
| LOW | libs/langchain_v1/langchain/chat_models/base.py | 945 | CODE | |
| LOW | libs/langchain_v1/langchain/chat_models/base.py | 962 | CODE | |
| LOW | libs/langchain_v1/langchain/chat_models/base.py | 993 | CODE | |
| LOW | libs/langchain_v1/langchain/agents/factory.py | 740 | CODE | |
| LOW | libs/langchain_v1/langchain/agents/factory.py | 762 | CODE | |
| LOW | libs/langchain_v1/langchain/agents/factory.py | 786 | CODE | |
| LOW | libs/langchain_v1/langchain/agents/factory.py | 808 | CODE | |
| LOW | libs/langchain_v1/langchain/agents/middleware/types.py | 105 | CODE | |
| LOW | …langchain_v1/langchain/agents/middleware/tool_retry.py | 129 | CODE | |
| LOW | …langchain_v1/langchain/agents/middleware/shell_tool.py | 537 | CODE | |
| LOW | libs/partners/chroma/langchain_chroma/vectorstores.py | 302 | CODE | |
| LOW | libs/partners/chroma/langchain_chroma/vectorstores.py | 1273 | CODE | |
| LOW | libs/partners/chroma/langchain_chroma/vectorstores.py | 1375 | CODE | |
| LOW | libs/partners/exa/langchain_exa/tools.py | 101 | CODE | |
| LOW | libs/partners/exa/langchain_exa/tools.py | 183 | CODE | |
| LOW | …partners/deepseek/tests/unit_tests/test_chat_models.py | 26 | CODE | |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1193 | CODE | |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1373 | CODE | |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1430 | CODE | |
| LOW | libs/partners/qdrant/langchain_qdrant/vectorstores.py | 1614 | CODE | |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/core/langchain_core/embeddings/fake.py | 3 | # Please do not add additional fake embedding model implementations here. | COMMENT |
| MEDIUM⚡ | …sts/unit_tests/examples/test_specs/zapier/apispec.json | 6 | "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## Hel | CODE |
| MEDIUM | …hain_classic/memory/vectorstore_token_buffer_memory.py | 173 | # that will overflow the context window | COMMENT |
| MEDIUM | …ngchain/langchain_classic/agents/mrkl/output_parser.py | 48 | # if final answer is before the hallucination, return final answer | COMMENT |
| MEDIUM | …angchain_classic/chains/elasticsearch_database/base.py | 166 | # improvement of few shot prompt seeds | COMMENT |
| MEDIUM | …ain/langchain_classic/chains/constitutional_ai/base.py | 27 | "https://docs.langchain.com/oss/python/langchain/guardrails" | CODE |
| MEDIUM | libs/langchain_v1/README.md | 23 | We recommend you use LangChain if you want to quickly build agents and autonomous applications. Use [LangGraph](https:// | CODE |
| MEDIUM | libs/langchain_v1/langchain/agents/middleware/pii.py | 329 | # Reasoning content (chain-of-thought from extended-thinking | COMMENT |
| MEDIUM | …/anthropic/tests/integration_tests/test_chat_models.py | 1338 | image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/images | CODE |
| MEDIUM | …penai/tests/integration_tests/chat_models/test_base.py | 748 | image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/images | CODE |
| MEDIUM | …tests/langchain_tests/integration_tests/chat_models.py | 2913 | image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/im | CODE |
| MEDIUM | …tests/langchain_tests/integration_tests/chat_models.py | 3021 | image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/im | CODE |
| MEDIUM | …tests/langchain_tests/integration_tests/chat_models.py | 3260 | image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/sr | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …s/core/tests/unit_tests/utils/test_function_calling.py | 421 | def my_function(arg1: NestedV2) -> None: | CODE |
| LOW⚡ | …s/core/tests/unit_tests/utils/test_function_calling.py | 434 | def my_function(arg1: Nested) -> None: | CODE |
| LOW | …s/core/tests/unit_tests/utils/test_function_calling.py | 392 | def my_function(_: str) -> str: | CODE |
| LOW | …s/core/tests/unit_tests/utils/test_function_calling.py | 471 | def my_function(arg1: Nested) -> None: | CODE |
| LOW | …s/core/tests/unit_tests/utils/test_function_calling.py | 514 | def my_function(my_arg: NestedA | NestedB | NestedC) -> None: | CODE |
| LOW | …s/core/tests/unit_tests/utils/test_function_calling.py | 1132 | def my_function(arg1: dict[str, Any], arg2: dict[str, Any] | None) -> None: | CODE |
| LOW⚡ | libs/core/tests/unit_tests/runnables/test_runnable.py | 3542 | def my_function(_: Any, **kwargs: Any) -> int: | CODE |
| LOW⚡ | libs/core/tests/unit_tests/runnables/test_runnable.py | 3552 | def my_function(_: Any, **kwargs: Any) -> int: | CODE |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 73 | def my_function(a: int) -> int: | CODE |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 145 | def my_function(a: int) -> int: | CODE |
| LOW | …re/tests/unit_tests/runnables/test_tracing_interops.py | 222 | async def my_function(a: int) -> int: | CODE |
| LOW | libs/core/langchain_core/_security/_transport.py | 144 | def handle_request( | CODE |
| LOW | …hropic/tests/unit_tests/middleware/test_file_search.py | 40 | "content": ["def helper(): pass"], | CODE |
| LOW | …partners/openai/tests/unit_tests/test_chatgpt_oauth.py | 927 | def handle_request(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | libs/core/langchain_core/utils/aiter.py | 76 | # all methods of the iterator protocol. In this implementation | COMMENT |
| HIGH⚡ | …sts/unit_tests/examples/test_specs/zapier/apispec.json | 6 | "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## Hel | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/core/langchain_core/runnables/fallbacks.py | 65 | # And you can also use fallbacks at the level of a chain. | STRING |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 3099 | Here is a simple example that uses simple functions to illustrate the use of | STRING |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 3864 | Here is a simple example that uses functions to illustrate the use of | STRING |
| MEDIUM⚡ | …sts/unit_tests/examples/test_specs/zapier/apispec.json | 6 | "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## Hel | CODE |
| MEDIUM | libs/langchain/langchain_classic/memory/prompt.py | 5 | You 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.py | 3 | Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-d | CODE |
| MEDIUM | …s/langchain/langchain_classic/agents/json_chat/base.py | 96 | topics. As a language model, Assistant is able to generate human-like text based on | CODE |
| MEDIUM | …hain/langchain_classic/agents/conversational/prompt.py | 3 | Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-d | CODE |
| LOW | libs/partners/ollama/langchain_ollama/chat_models.py | 427 | content="It's been a blast chatting with you! Say goodbye to the world for me, and don't forget to come | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …sts/unit_tests/output_parsers/test_openai_functions.py | 17 | """Test the JSON output function parser is configured with robust defaults.""" | STRING |
| LOW | libs/core/langchain_core/tools/base.py | 929 | # If we can't get annotations, just use FILTERED_ARGS | COMMENT |
| LOW | libs/core/langchain_core/utils/mustache.py | 376 | # Then just return the current scope | COMMENT |
| LOW | libs/core/langchain_core/tracers/event_stream.py | 231 | # otherwise just pass through | COMMENT |
| LOW | libs/core/langchain_core/tracers/event_stream.py | 281 | # otherwise just pass through | COMMENT |
| MEDIUM⚡ | …sts/unit_tests/examples/test_specs/zapier/apispec.json | 6 | "description": "<img src=\"https://cdn.zappy.app/945f9bf9e44126873952ec5113949c3f.png\" width=\"100\" />\n\n## Hel | CODE |
| LOW | …hain/langchain_classic/callbacks/streamlit/__init__.py | 59 | # This is the official handler, so we can just return it. | COMMENT |
| LOW | libs/langchain/langchain_classic/agents/agent.py | 967 | # we just return the full output | COMMENT |
| LOW | …in/langchain_classic/chains/history_aware_retriever.py | 62 | # If no chat history, then we just pass input to retriever | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/core/tests/unit_tests/runnables/test_runnable.py | 3830 | CODE | |
| MEDIUM | libs/core/langchain_core/runnables/base.py | 5719 | CODE | |
| MEDIUM | …artners/fireworks/tests/unit_tests/test_chat_models.py | 1731 | CODE | |
| MEDIUM | …artners/fireworks/tests/unit_tests/test_chat_models.py | 726 | CODE | |
| MEDIUM | …artners/fireworks/tests/unit_tests/test_chat_models.py | 878 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …gchain/tests/unit_tests/chains/test_qa_with_sources.py | 54 | # The following text was generated by gpt-3.5-turbo | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/core/langchain_core/utils/pydantic.py | 107 | # Before we can use issubclass on the cls we need to check if it is a class | COMMENT |
| LOW | .github/workflows/check_release_deps.yml | 88 | # Step 1: detect packages whose own version is bumped by this PR. Their | COMMENT |
| LOW | .github/workflows/check_release_deps.yml | 151 | # Step 2: rebuild a resolver-equivalent manifest that drops only the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/core/langchain_core/tracers/core.py | 206 | # WARNING: This is valid ONLY for streaming_events. | COMMENT |
| LOW | .github/workflows/check_release_deps.yml | 88 | # Step 1: detect packages whose own version is bumped by this PR. Their | COMMENT |
| LOW | .github/workflows/check_release_deps.yml | 151 | # Step 2: rebuild a resolver-equivalent manifest that drops only the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …gchain_classic/chains/conversational_retrieval/base.py | 327 | # Usage: | COMMENT |
| LOW | libs/partners/openai/scripts/record_codex_cassettes.sh | 6 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/core/langchain_core/language_models/chat_models.py | 399 | # TODO: consider adding a `_model_identifier` property on BaseChatModel | STRING |
| LOW | …ngchain/langchain_classic/callbacks/streaming_aiter.py | 57 | # TODO: implement the other methods | COMMENT |