AI Slop Code RIsk Monitor

langroid/langroid

Harness LLMs with Multi-Agent Programming

26.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for langroid/langroid, a Python project with 4,113 GitHub stars. SynthScan examined 145,502 lines of code across 695 source files, recording 2553 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 26.6 (Elevated pattern signal); it is not an authorship estimate.

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

26.6
Adjusted Signal
26.6
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.1K
Stars
Python
Language
145.5K
Lines of Code
695
Files
2.6K
Pattern Hits
2026-10-12
Scan Date
0.32
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 49.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 11.4/100 · LOW

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

Agent Over-Engineering Ratio 60.6/100 · HIGH

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

PR Review Velocity Impact 76.5/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 221MEDIUM 281LOW 2051

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1254 hits · 1163 pts
SeverityFileLineSnippetContext
LOW…ugins/langroid/skills/patterns/mcp-tool-integration.md32async def setup_agent_with_all_tools():CODE
LOWtests/conftest.py90def pytest_runtest_makereport(item, call):STRING
LOWtests/conftest.py154def pytest_collection_modifyitems(config, items):STRING
LOWtests/main/test_qdrant_lock_release.py13def test_qdrant_explicit_close():CODE
LOWtests/main/test_qdrant_lock_release.py43def test_qdrant_context_manager():CODE
LOWtests/main/test_qdrant_lock_release.py67def test_qdrant_context_manager_with_exception():CODE
LOWtests/main/test_qdrant_lock_release.py94def test_qdrant_multiple_sequential_operations():CODE
LOWtests/main/test_qdrant_lock_release.py115def test_qdrant_no_close_creates_new_directory():CODE
LOWtests/main/test_docx_parser.py40def test_markitdown_docx_parser():CODE
LOWtests/main/test_string_search.py46def test_return_correct_number_of_matches(STRING
LOWtests/main/test_string_search.py65def test_fuzzy_matches_return_corresponding_documents(STRING
LOWtests/main/test_string_search.py94def test_find_match_with_surrounding_words(STRING
LOWtests/main/test_string_search.py124def test_fuzzy_default_threshold_excludes_low_scores(threshold_docs):STRING
LOWtests/main/test_string_search.py148def test_fuzzy_score_threshold_filtering(threshold_docs, score_threshold, expected_ids):CODE
LOWtests/main/test_string_search.py167def test_fuzzy_non_finite_threshold_yields_no_matches(threshold_docs, bad_threshold):CODE
LOW⚡tests/main/test_string_search.py200def test_preprocess_lowercase():CODE
LOW⚡tests/main/test_string_search.py205def test_preprocess_remove_punctuation():CODE
LOW⚡tests/main/test_string_search.py211def test_preprocess_remove_stopwords():CODE
LOW⚡tests/main/test_string_search.py220def test_preprocess_lemmatization():CODE
LOWtests/main/test_string_search.py272def test_get_context_respects_word_boundaries(text, before, after, expected):CODE
LOWtests/main/test_string_search.py276def test_fuzzy_match_with_zero_neighbor_words():CODE
LOWtests/main/test_string_search.py315def test_get_context_match_start_word_mapping(CODE
LOWtests/main/test_function_call_names.py25def test_function_names_are_preserved_for_agent_dispatch(CODE
LOWtests/main/test_function_call_names.py54def test_stray_function_prefix_is_still_repaired(name: str, tools_api: bool) -> None:CODE
LOWtests/main/test_function_call_names.py65def test_explicit_request_still_overrides_function_name(tools_api: bool) -> None:CODE
LOWtests/main/test_doc_chat_relevance.py175def test_doc_chat_rerank_diversity(test_settings: Settings, vecdb):CODE
LOWtests/main/test_doc_chat_relevance.py213def test_doc_chat_rerank_periphery(test_settings: Settings, vecdb):CODE
LOW⚡tests/main/test_tool_origin_taint.py58def test_to_chatdocument_user_string_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py64def test_agent_authored_string_not_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py70def test_agent_response_not_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py75def test_create_user_response_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py80def test_interactive_user_response_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py88def test_system_user_response_not_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py97def test_task_init_user_string_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py106def test_root_task_user_chatdocument_input_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py126def test_deepcopy_propagates_taint() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py134def test_donepass_repackage_propagates_taint() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py239def test_parsed_tools_stamped_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py268def test_filter_vetoes_tainted_tool_on_untainted_doc() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py300def test_handler_string_result_carries_taint_end_to_end() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py340def test_send_tool_reemission_carries_taint() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py388def test_no_tool_done_fallback_repackage_carries_taint() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py413def test_task_tool_seed_doc_carries_taint(CODE
LOW⚡tests/main/test_tool_origin_taint.py458def test_from_llm_message_user_role_is_tainted() -> None:CODE
LOW⚡tests/main/test_tool_origin_taint.py650def test_task_tool_self_taint_seeds_subtask(CODE
LOW⚡tests/main/test_tool_origin_taint.py859def test_any_tool_recovery_propagates_wrapper_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py148def test_donepass_repackage_of_llm_message_not_tainted() -> None:CODE
LOWtests/main/test_tool_origin_taint.py179def test_filter_vetoes_tainted_handoff() -> None:CODE
LOWtests/main/test_tool_origin_taint.py189def test_tainted_handoff_does_not_dispatch_handle_only_tool() -> None:CODE
LOWtests/main/test_tool_origin_taint.py251def test_tool_taint_survives_chatdocument_deepcopy() -> None:CODE
LOWtests/main/test_tool_origin_taint.py322def test_to_chatdocument_threads_source_doc_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py352def test_agent_send_tool_reemission_carries_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py369def test_done_tool_reemission_carries_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py503def test_tainted_usable_tool_result_is_tainted_end_to_end() -> None:CODE
LOWtests/main/test_tool_origin_taint.py528async def test_tainted_usable_tool_result_is_tainted_async() -> None:CODE
LOWtests/main/test_tool_origin_taint.py550def test_tool_message_handler_result_stamped_when_trigger_tainted() -> None:CODE
LOWtests/main/test_tool_origin_taint.py596def test_tainted_handler_result_tool_is_not_executed() -> None:CODE
LOWtests/main/test_tool_origin_taint.py621def test_tainted_donepass_task_completes_with_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py712def test_fallback_returned_tool_inherits_doc_taint() -> None:CODE
LOWtests/main/test_tool_origin_taint.py731async def test_fallback_returned_tool_inherits_doc_taint_async() -> None:CODE
1194 more matches not shown…
Cross-File Repetition135 hits · 675 pts
SeverityFileLineSnippetContext
HIGHREADME.md0you will be given a number n. if it is odd, return (n*3+1), say nothing else. if it is even, say -10STRING
HIGHtests/main/test_recipient_tool_async.py0you will be given a number n. if it is odd, return (n*3+1), say nothing else. if it is even, say -10STRING
HIGHexamples/quick-start/three-agent-chat-num-router.py0you will be given a number n. if it is odd, return (n*3+1), say nothing else. if it is even, say -10STRING
HIGHREADME.md0to find how many numbers in my list are less than or equal to the <number> you specify.STRING
HIGHexamples/langdb/langdb_chat_agent_tool.py0to find how many numbers in my list are less than or equal to the <number> you specify.STRING
HIGHexamples/quick-start/chat-agent-tool.py0to find how many numbers in my list are less than or equal to the <number> you specify.STRING
HIGHREADME.md0done! successfully extracted lease info: {message.terms}STRING
HIGHexamples/chainlit/multi-extract.py0done! successfully extracted lease info: {message.terms}STRING
HIGHexamples/docqa/chat_multi_extract.py0done! successfully extracted lease info: {message.terms}STRING
HIGHtests/main/test_doc_chat_relevance.py0test window retrieval of relevant doc-chunks. check that we are retrieving 2 neighbors around each match.STRING
HIGHtests/main/test_doc_chat_agent.py0test window retrieval of relevant doc-chunks. check that we are retrieving 2 neighbors around each match.STRING
HIGHtests/extras/test_doc_chat_agent_llamacpp.py0test window retrieval of relevant doc-chunks. check that we are retrieving 2 neighbors around each match.STRING
HIGHtests/main/test_multi_agent_complex_async.py0you are a calculator. you will be given a multiplication problem. you simply reply with the answer, say nothing else.STRING
HIGHtests/main/test_multi_agent.py0you are a calculator. you will be given a multiplication problem. you simply reply with the answer, say nothing else.STRING
HIGHtests/main/test_multi_agent_complex.py0you are a calculator. you will be given a multiplication problem. you simply reply with the answer, say nothing else.STRING
HIGHtests/main/test_doc_chat_agent.py0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHtests/extras/test_doc_chat_agent_llamacpp.py0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHdocs/notes/weaviate.md0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHdocs/notes/pgvector.md0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHdocs/quick-start/chat-agent-docs.md0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHexamples/langdb/langdb_chat_agent_docs.py0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHexamples/quick-start/chat-agent-docs.py0in the year 2050, gpt10 was released. in 2057, paperclips were seen all over the world. global warming was solved in 206STRING
HIGHtests/main/test_doc_chat_agent.py0check we can ingest from a dataframe and run queries.STRING
HIGHtests/main/test_retriever_agent.py0check we can ingest from a dataframe and run queries.STRING
HIGHtests/extras/test_doc_chat_agent_llamacpp.py0check we can ingest from a dataframe and run queries.STRING
HIGHtests/main/test_tool_messages_async.py0test whether llm is able to generate message (tool) in required format, and the agent handles the message correctly. argSTRING
HIGHtests/main/test_stateless_tool_messages.py0test whether llm is able to generate message (tool) in required format, and the agent handles the message correctly. argSTRING
HIGHtests/main/test_tool_messages.py0test whether llm is able to generate message (tool) in required format, and the agent handles the message correctly. argSTRING
HIGHtests/main/test_tool_messages_azure.py0test whether llm is able to generate message (tool) in required format, and the agent handles the message correctly. argSTRING
HIGHdocs/FAQ.md0important: you must include an actual query in the `query` field,STRING
HIGHexamples/chainlit/chat-search-rag.py0important: you must include an actual query in the `query` field,STRING
HIGHexamples/docqa/chat_search.py0important: you must include an actual query in the `query` field,STRING
HIGHexamples/docqa/chat-search-filter.py0important: you must include an actual query in the `query` field,STRING
HIGHdocs/FAQ.md0------------------------------ ask me questions one by one, to fill in the fields of the `lease_info` function/tool. firSTRING
HIGHexamples/chainlit/multi-extract-3.py0------------------------------ ask me questions one by one, to fill in the fields of the `lease_info` function/tool. firSTRING
HIGHexamples/docqa/chat-multi-extract-3.py0------------------------------ ask me questions one by one, to fill in the fields of the `lease_info` function/tool. firSTRING
HIGHdocs/notes/weaviate.md0we are living in an alternate universe where germany has occupied the usa, and the capital of usa is berlin. charlie chaSTRING
HIGHdocs/notes/pgvector.md0we are living in an alternate universe where germany has occupied the usa, and the capital of usa is berlin. charlie chaSTRING
HIGHdocs/quick-start/chat-agent-docs.md0we are living in an alternate universe where germany has occupied the usa, and the capital of usa is berlin. charlie chaSTRING
HIGHexamples/langdb/langdb_chat_agent_docs.py0we are living in an alternate universe where germany has occupied the usa, and the capital of usa is berlin. charlie chaSTRING
HIGHexamples/quick-start/chat-agent-docs.py0we are living in an alternate universe where germany has occupied the usa, and the capital of usa is berlin. charlie chaSTRING
HIGHdocs/examples/agent-tree.md0this is a stateless tool (i.e. does not use any agent member vars), so we can define the handler right here, instead of STRING
HIGHexamples/basic/chat-tree-structured.py0this is a stateless tool (i.e. does not use any agent member vars), so we can define the handler right here, instead of STRING
HIGHexamples/basic/chat-tree.py0this is a stateless tool (i.e. does not use any agent member vars), so we can define the handler right here, instead of STRING
HIGHexamples/chainlit/chat-tree-chainlit.py0this is a stateless tool (i.e. does not use any agent member vars), so we can define the handler right here, instead of STRING
HIGHdocs/quick-start/chat-agent-tool.md0i have a list of numbers between 1 and 20. your job is to find the smallest of them. to help with this, you can give me STRING
HIGHexamples/langdb/langdb_chat_agent_tool.py0i have a list of numbers between 1 and 20. your job is to find the smallest of them. to help with this, you can give me STRING
HIGHexamples/quick-start/chat-agent-tool.py0i have a list of numbers between 1 and 20. your job is to find the smallest of them. to help with this, you can give me STRING
HIGHexamples/portkey/portkey_multi_provider.py0check if environment variable is set and return its value.STRING
HIGHexamples/portkey/portkey_advanced_features.py0check if environment variable is set and return its value.STRING
HIGHexamples/portkey/portkey_basic_chat.py0check if environment variable is set and return its value.STRING
HIGHexamples/chainlit/chat-search-rag.py0get docs/extracts relevant to the query, from vecdbSTRING
HIGHexamples/docqa/chat_search.py0get docs/extracts relevant to the query, from vecdbSTRING
HIGHexamples/docqa/chat-search-filter.py0get docs/extracts relevant to the query, from vecdbSTRING
HIGHexamples/chainlit/chat-search-rag.py0no extracts found! you can try doing a web search with the `relevant_search_extracts` tool/function-call.STRING
HIGHexamples/docqa/chat_search.py0no extracts found! you can try doing a web search with the `relevant_search_extracts` tool/function-call.STRING
HIGHexamples/docqa/chat-search-filter.py0no extracts found! you can try doing a web search with the `relevant_search_extracts` tool/function-call.STRING
HIGHexamples/chainlit/chat-search-rag.py0get docs/extracts relevant to the query, from a web searchSTRING
HIGHexamples/docqa/chat_search.py0get docs/extracts relevant to the query, from a web searchSTRING
HIGHexamples/docqa/chat-search-filter.py0get docs/extracts relevant to the query, from a web searchSTRING
75 more matches not shown…
Decorative Section Separators101 hits · 378 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/main/test_tool_origin_taint.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py121# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py234# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py236# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py262# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py265# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py288# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py291# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py333# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py337# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py381# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py385# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py407# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py410# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py452# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py455# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py468# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py473# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py644# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py647# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py852# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_origin_taint.py856# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py203# ===========================================================================COMMENT
MEDIUMtests/main/test_tool_origin_taint.py208# ===========================================================================COMMENT
MEDIUMtests/main/test_tool_origin_taint.py569# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py573# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py691# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py695# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py782# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_tool_origin_taint.py789# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/main/test_md_parser.py760# ----------------------------------------------------------------STRING
MEDIUMtests/main/test_md_parser.py762# ----------------------------------------------------------------STRING
MEDIUM⚡tests/main/test_context_truncation.py141# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_context_truncation.py143# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_vertexai_isolation.py142# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_vertexai_isolation.py144# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_vertexai_isolation.py812# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_vertexai_isolation.py814# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py81# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py83# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py92# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py94# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py148# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py150# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py273# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_tool_taint_laundering.py275# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py54# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py56# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py89# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py120# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_handle_message_security.py122# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_md_html_parser.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_md_html_parser.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_md_html_parser.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/main/test_md_html_parser.py61# ---------------------------------------------------------------------------COMMENT
41 more matches not shown…
Self-Referential Comments112 hits · 310 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/main/test_md_parser.py603 # Define a header and content.STRING
MEDIUM⚡tests/main/test_md_parser.py609 # Create a sample Markdown document with a header and content.STRING
MEDIUMtests/main/test_md_parser.py537 # Create a long text consisting of 200 repeated tokens ("word")STRING
MEDIUM⚡tests/main/test_tool_handler.py309 # Create a tool messageCOMMENT
MEDIUM⚡tests/main/test_tool_handler.py312 # Create a ChatDocument with the tool messageCOMMENT
MEDIUM⚡tests/main/test_tool_handler.py345 # Create a tool messageCOMMENT
MEDIUM⚡tests/main/test_tool_handler.py360 # Create a tool messageCOMMENT
MEDIUM⚡tests/main/test_tool_handler.py378 # Create a tool messageCOMMENT
MEDIUMtests/main/test_tool_handler.py292 # Create a tool messageCOMMENT
MEDIUMtests/main/test_tool_handler.py328 # Create a tool messageCOMMENT
MEDIUMtests/main/test_tool_handler.py398 # Create a tool messageCOMMENT
MEDIUMtests/main/test_task.py1034 # Create a mock LLM that always responds with a tool in JSON formatCOMMENT
MEDIUMtests/main/test_task.py1104 # Create an agentCOMMENT
MEDIUMtests/main/test_llm.py781 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUM⚡tests/main/test_llm.py827 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUM⚡tests/main/test_llm.py833 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUMtests/main/test_chat_agent.py224 # Create a FileAttachment from the PDF fileSTRING
MEDIUMtests/main/test_mcp_tools.py947 # Create a mock server that returns image contentCOMMENT
MEDIUMtests/main/test_mcp_tools.py966 # Create a mock agentCOMMENT
MEDIUMtests/main/test_mcp_tools.py995 # Create a mock CallToolResult with text and text resourceCOMMENT
MEDIUMtests/main/test_mcp_tools.py1041 # Create a mock CallToolResult with text and blob resourceCOMMENT
MEDIUMtests/main/test_mcp_tools.py1169 # Create a real MCP serverCOMMENT
MEDIUMtests/main/test_mcp_tools.py1181 # Create a Tool with the problematic schemaCOMMENT
MEDIUMtests/main/test_mcp_tools.py1238 # Create a real MCP serverCOMMENT
MEDIUMtests/main/test_openai_params_subclass.py39 # Create an instance - note we can't pass custom fields to constructorCOMMENT
MEDIUMtests/main/test_openai_params_subclass.py68 # Create an instance with custom fieldsCOMMENT
MEDIUMtests/main/test_tool_messages_async.py108# Define the range of values each variable can haveCOMMENT
MEDIUMtests/main/test_table_chat_agent.py128 # Create a list of statesCOMMENT
MEDIUMtests/main/test_table_chat_agent.py381 # Create a simple dataframe with data that needs cleaningCOMMENT
MEDIUMtests/main/test_prep_llm_message.py43 # Create a mock parser that counts tokens as characters for simplicityCOMMENT
MEDIUMtests/main/test_prep_llm_message.py56 # Create a mock LLM that returns a fixed context lengthCOMMENT
MEDIUMtests/main/test_prep_llm_message.py150 # Create a mock parser that counts tokens as characters for simplicityCOMMENT
MEDIUMtests/main/test_prep_llm_message.py163 # Create a mock LLM that returns a fixed context lengthCOMMENT
MEDIUMtests/main/test_retriever_agent.py23 # Create a list of statesCOMMENT
MEDIUMtests/main/test_stateless_tool_messages.py53# Define the range of values each variable can haveSTRING
MEDIUMtests/main/test_llm_async.py184 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUM⚡tests/main/test_llm_async.py232 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUM⚡tests/main/test_llm_async.py238 # Create a FileAttachment from the PDF fileCOMMENT
MEDIUMtests/main/test_llm_async.py283 # Create the LLM instanceSTRING
MEDIUMtests/main/test_task_optional_logger.py14 # Create a simple mock agentCOMMENT
MEDIUMtests/main/test_task_optional_logger.py46 # Create a simple mock agentCOMMENT
MEDIUM⚡tests/main/test_task_optional_logger.py65 # Create a simple mock agentCOMMENT
MEDIUMtests/main/test_task_optional_logger.py77 # Create a test messageCOMMENT
MEDIUMtests/main/test_task_tool.py56 # Create main task that stops after handling the task_toolSTRING
MEDIUMtests/main/test_task_tool.py186 # Create a main agent with multiple tools availableSTRING
MEDIUMtests/main/test_task_tool.py276 # Create a main agent that delegates with no toolsSTRING
MEDIUM⚡tests/main/test_pydantic_utils.py25 # Create an instance of TestModel with nested DetailsModelCOMMENT
MEDIUMtests/main/test_html_logger.py40 # Create a user messageCOMMENT
MEDIUMtests/main/test_tool_messages.py2262 # Create a ChatDocument containing ToolB (which only AgentB knows about)COMMENT
MEDIUMtests/main/test_tool_messages.py157# Define the range of values each variable can haveSTRING
MEDIUMtests/main/test_file_tools.py164 # Create a test fileSTRING
MEDIUMtests/main/test_global_settings.py201 # Define a temporary override that forces quiet=True.COMMENT
MEDIUMtests/main/test_token_usage.py35# Define the configurationsCOMMENT
MEDIUMtests/main/sql_chat/test_sql_chat_agent.py56 # Create an in-memory SQLite databaseCOMMENT
MEDIUMtests/extras/test_csv_kg_chat.py14# Create a dummy DataFrameCOMMENT
MEDIUMtests/extras/test_csv_kg_chat.py43 # Create a mock PandasToKGTool objectCOMMENT
MEDIUMexamples/langdb/langdb_chat_agent_tool.py72 # Create a LangDB model configurationSTRING
MEDIUMexamples/langdb/langdb_custom_headers.py23 # Create a LangDB model configurationCOMMENT
MEDIUMexamples/langdb/langdb_custom_headers.py34 # Create the modelCOMMENT
MEDIUMexamples/langdb/langdb_chat_agent_docs.py77 # Create a LangDB model configurationSTRING
52 more matches not shown…
Unused Imports241 hits · 224 pts
SeverityFileLineSnippetContext
LOWtests/main/test_arangodb_chat_agent.py8CODE
LOWtests/main/test_rich_file_logger.py1CODE
LOWexamples/multi-agent-debate/chainlit_utils.py6CODE
LOWexamples/basic/fn-call-local-simple.py28CODE
LOWexamples/basic/planner-workflow-spawn.py31CODE
LOWexamples/mcp/claude-code-mcp-single.py23CODE
LOWlangroid/__init__.py5CODE
LOWlangroid/__init__.py6CODE
LOWlangroid/__init__.py8CODE
LOWlangroid/__init__.py9CODE
LOWlangroid/__init__.py10CODE
LOWlangroid/__init__.py12CODE
LOWlangroid/__init__.py13CODE
LOWlangroid/__init__.py15CODE
LOWlangroid/__init__.py16CODE
LOWlangroid/__init__.py18CODE
LOWlangroid/__init__.py18CODE
LOWlangroid/__init__.py23CODE
LOWlangroid/__init__.py23CODE
LOWlangroid/__init__.py23CODE
LOWlangroid/__init__.py29CODE
LOWlangroid/__init__.py29CODE
LOWlangroid/__init__.py29CODE
LOWlangroid/__init__.py35CODE
LOWlangroid/__init__.py39CODE
LOWlangroid/__init__.py39CODE
LOWlangroid/__init__.py44CODE
LOWlangroid/__init__.py44CODE
LOWlangroid/__init__.py47CODE
LOWlangroid/__init__.py47CODE
LOWlangroid/__init__.py47CODE
LOWlangroid/__init__.py53CODE
LOWlangroid/__init__.py54CODE
LOWlangroid/embedding_models/__init__.py1CODE
LOWlangroid/embedding_models/__init__.py2CODE
LOWlangroid/embedding_models/__init__.py3CODE
LOWlangroid/embedding_models/__init__.py5CODE
LOWlangroid/embedding_models/__init__.py5CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py9CODE
LOWlangroid/embedding_models/__init__.py20CODE
LOWlangroid/embedding_models/__init__.py20CODE
LOWlangroid/language_models/__init__.py1CODE
LOWlangroid/language_models/__init__.py2CODE
LOWlangroid/language_models/__init__.py3CODE
LOWlangroid/language_models/__init__.py4CODE
LOWlangroid/language_models/__init__.py5CODE
LOWlangroid/language_models/__init__.py6CODE
LOWlangroid/language_models/__init__.py7CODE
LOWlangroid/language_models/__init__.py9CODE
LOWlangroid/language_models/__init__.py9CODE
LOWlangroid/language_models/__init__.py9CODE
LOWlangroid/language_models/__init__.py9CODE
181 more matches not shown…
Empty Error Handlers42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py197except Exception:CODE
HIGHtests/utils.py28except ValueError:CODE
HIGHtests/main/test_qdrant_lock_release.py83except ValueError:CODE
HIGHtests/main/test_batch_concurrency.py504except error:CODE
HIGHtests/main/test_quiet_mode.py35except Exception:CODE
HIGHtests/main/test_llm.py263except catch_errors:CODE
HIGHtests/main/test_llm.py271except catch_errors:CODE
HIGHtests/main/test_openai_http_client.py355except Exception:CODE
HIGHtests/main/test_mcp_tools.py1122except Exception:CODE
HIGHtests/main/test_task_tool.py261except Exception:CODE
HIGHtests/main/test_rate_limiter.py721except Exception:CODE
HIGHexamples/mcp/claude-code-mcp-single.py102except Exception:CODE
HIGHlangroid/__init__.py105except ImportError:CODE
HIGHlangroid/embedding_models/base.py35except Exception:CODE
HIGHlangroid/language_models/client_cache.py438except Exception:CODE
HIGHlangroid/language_models/openai_gpt.py782except Exception:CODE
HIGHlangroid/language_models/openai_gpt.py2785except StopIteration:CODE
HIGHlangroid/language_models/openai_gpt.py2889except StopAsyncIteration:CODE
HIGHlangroid/agent/task.py2121except Exception:CODE
HIGHlangroid/agent/task.py2131except Exception:CODE
HIGHlangroid/agent/xml_tool_message.py16except ImportError:CODE
HIGHlangroid/agent/tools/mcp/fastmcp_client.py898except Exception:CODE
HIGHlangroid/agent/tools/mcp/fastmcp_client.py295except Exception:CODE
HIGHlangroid/agent/tools/mcp/fastmcp_client.py302except Exception:CODE
HIGHlangroid/agent/tools/mcp/fastmcp_client.py325except Exception:CODE
HIGHlangroid/agent/tools/mcp/fastmcp_client.py333except Exception:CODE
HIGHlangroid/agent/special/__init__.py58except ImportError:CODE
HIGHlangroid/agent/special/doc_chat_agent.py156except Exception:CODE
HIGHlangroid/agent/special/doc_chat_agent.py907except Exception:CODE
HIGHlangroid/agent/special/sql/__init__.py16except ImportError:CODE
HIGHlangroid/vector_store/qdrantdb.py42except Exception:CODE
HIGHlangroid/vector_store/qdrantdb.py399except ValueError:CODE
HIGHlangroid/vector_store/chromadb.py182except Exception:CODE
HIGHlangroid/vector_store/__init__.py73except ImportError:CODE
HIGHlangroid/parsing/url_loader.py158except ImportError:CODE
HIGHlangroid/parsing/__init__.py57except ImportError:CODE
HIGHlangroid/parsing/parse_json.py60except json.JSONDecodeError:CODE
HIGHlangroid/parsing/parse_json.py68except (ValueError, SyntaxError):CODE
HIGHlangroid/parsing/parse_json.py169except Exception:CODE
HIGHlangroid/parsing/parse_json.py81except yaml.YAMLError:CODE
HIGHlangroid/parsing/parse_json.py108except yaml.YAMLError:CODE
HIGHlangroid/parsing/document_parser.py243except Exception:CODE
Excessive Try-Catch Wrapping159 hits · 152 pts
SeverityFileLineSnippetContext
LOWplugins/langroid/skills/patterns/run-batch-tasks.md160 except Exception as e:CODE
LOW…groid/skills/patterns/agent-tool-handler-with-state.md67 except Exception as e:CODE
LOW…groid/skills/patterns/agent-tool-handler-with-state.md127 except Exception as e:CODE
LOWtests/conftest.py197 except Exception:CODE
LOWtests/main/test_quiet_mode.py35 except Exception:CODE
LOWtests/main/test_concurrent_rag_simple.py281 except Exception as e:CODE
LOWtests/main/test_concurrent_rag_simple.py289 except Exception as e:CODE
LOWtests/main/test_arangodb_chat_agent.py31 except Exception:CODE
LOWtests/main/test_arangodb_chat_agent.py151 except Exception as e:CODE
MEDIUMtests/main/test_arangodb_chat_agent.py152 print(f"Error inserting data: {e}")CODE
LOWtests/main/test_arangodb_chat_agent.py452 except Exception as e:STRING
LOWtests/main/test_openai_http_client.py266 except Exception as e:CODE
LOWtests/main/test_openai_http_client.py307 except Exception as e:CODE
LOWtests/main/test_openai_http_client.py334 except Exception as e:CODE
LOWtests/main/test_openai_http_client.py355 except Exception:CODE
LOWtests/main/test_mcp_tools.py1122 except Exception:CODE
LOWtests/main/test_mcp_tools.py838 except Exception as e:STRING
LOWtests/main/test_md_html_parser.py318 except Exception:CODE
LOWtests/main/test_vertexai_adc.py149 except Exception as e: # noqa: BLE001CODE
MEDIUMtests/main/test_vertexai_adc.py146def worker() -> None:CODE
LOWtests/main/test_web_search_tools.py80 except Exception as e:CODE
LOWtests/main/test_vector_stores.py496 except Exception as exc:CODE
MEDIUMtests/main/test_openai_gpt_client_cache.py222def get_client():CODE
LOWtests/main/test_openai_gpt_client_cache.py625 except Exception as e:CODE
LOWtests/main/test_task_tool.py261 except Exception:STRING
LOWtests/main/test_neo4j_chat_agent.py28 except Exception:CODE
LOWtests/main/test_neo4j_chat_agent.py64 except Exception as e:CODE
LOWtests/main/test_neo4j_chat_agent.py91 except Exception as e:CODE
LOWtests/main/test_rate_limiter.py721 except Exception:CODE
LOWtests/main/test_global_settings.py109 except Exception as e:CODE
LOWtests/main/mcp/weather-server-python/weather.py22 except Exception:CODE
LOWtests/main/mcp/weather-server-python/weather.py44 except Exception:CODE
LOWdocs/notes/portkey.md277 except Exception:CODE
LOWexamples/portkey/portkey_multi_provider.py81 except Exception as e:CODE
LOWexamples/portkey/portkey_multi_provider.py144 except Exception as e:CODE
LOW⚡examples/portkey/portkey_multi_provider.py174 except Exception as e:CODE
LOW⚡examples/portkey/portkey_multi_provider.py184 except Exception as e:CODE
LOW⚡examples/portkey/portkey_multi_provider.py194 except Exception as e:CODE
LOWexamples/portkey/portkey_advanced_features.py166 except Exception as e:CODE
LOWexamples/portkey/portkey_advanced_features.py203 except Exception as e:CODE
LOWexamples/portkey/portkey_basic_chat.py58 except Exception as e:CODE
LOWexamples/portkey/portkey_basic_chat.py107 except Exception as e:CODE
LOWexamples/chainlit/dependency_chatbot.py194 except Exception as e:STRING
MEDIUM⚡examples/docqa/crawl4ai_examples.py95 print("Error: Failed to parse the extracted content as JSON.")CODE
MEDIUMexamples/docqa/crawl4ai_examples.py281 print(f"Error parsing LLM output JSON: {e}")CODE
LOWexamples/multi-agent-debate/models.py65 except Exception as e:CODE
LOWexamples/multi-agent-debate/chainlit_utils.py173 except Exception as e:CODE
LOW⚡examples/basic/done_sequences_example.py47 except Exception as e:CODE
MEDIUMexamples/basic/done_sequences_example.py43def handle(self) -> str:CODE
LOWexamples/basic/python-code-exec-tool.py47 except Exception as e:CODE
MEDIUMexamples/basic/python-code-exec-tool.py48 print(f"Error: {str(e)}")CODE
LOWexamples/mcp/claude-code-mcp-single.py102 except Exception:CODE
LOWexamples/kg-chat/dependency_chatbot.py202 except Exception as e:STRING
LOWlangroid/embedding_models/base.py35 except Exception:CODE
LOWlangroid/language_models/rate_limiter.py605 except Exception:CODE
LOWlangroid/language_models/utils.py96 except Exception as e:CODE
LOWlangroid/language_models/utils.py178 except Exception as e:CODE
LOWlangroid/language_models/client_cache.py438 except Exception:CODE
LOWlangroid/language_models/openai_gpt.py782 except Exception:CODE
LOWlangroid/language_models/openai_gpt.py1915 except Exception as e:CODE
99 more matches not shown…
Docstring Block Structure25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHexamples/multi-agent-debate/config.py51 Creates an LLM (Language Learning Model) configuration based on the selected model. This function uses the useSTRING
HIGHexamples/multi-agent-debate/models.py35Load and validate system messages from a JSON file. Reads the JSON file containing system messages, maps each entrySTRING
HIGHexamples/multi-agent-debate/utils.py141Prompt the user to select a debate topic and sets up the respective side. This function handles the user interactioSTRING
HIGHexamples/multi-agent-debate/chainlit_utils.py254 Prompt the user to select a debate topic and sets up the respective side. Args: system_messages (SystemSTRING
HIGHexamples/basic/drug-outcomes.py59 Extracts an integer from a string that contains a number. Args: x (str): The input string containing tSTRING
HIGHexamples/data-qa/sql-chat/sql_chat.py55 Create an empty descriptions JSON file for SQLAlchemy tables. This function inspects the database, generates aSTRING
HIGHissues/issue-919-llamacpp-embeddings.md131 Extract embedding vector from llama.cpp response. Handles multiple response formats: 1. Native /embedding:STRING
HIGHlangroid/embedding_models/models.py490 Extract embedding vector from llama.cpp response. Handles multiple response formats: 1. NativeSTRING
HIGHlangroid/language_models/openai_gpt.py463Validate a GCP project id or region before it is spliced into a URL. Applied at every entry point -- the `VertexAICSTRING
HIGHlangroid/utils/system.py214 Resolve ``user_path`` relative to ``base_dir`` and ensure the result stays within ``base_dir`` (a path-traversaSTRING
HIGHlangroid/utils/system.py296 Read the contents of a file. Args: path (str): The path to the file to be read. line_numbers (STRING
HIGHlangroid/agent/xml_tool_message.py147 Extracts field values from an XML-formatted string. Args: formatted_string (str): The XML-STRING
HIGHlangroid/agent/done_sequence_parser.py22Parse a string pattern or return existing DoneSequence unchanged. Args: sequence: Either a DoneSequence objSTRING
HIGHlangroid/agent/done_sequence_parser.py48Parse a string pattern into a list of AgentEvent objects. Pattern format: - Single letter codes: T, A, L, USTRING
HIGHlangroid/agent/done_sequence_parser.py116Parse a single event token into an AgentEvent. Args: token: Single event token (e.g., "T", "T[calc]", "C[quSTRING
HIGHlangroid/agent/special/neo4j/neo4j_chat_agent.py389 Retrieves the schema of a Neo4j graph database. Args: msg (GraphSchemaTool): An instance oSTRING
HIGHlangroid/vector_store/lancedb.py149 NOTE: NOT USED, but leaving it here as it may be useful. Create a subclass of LanceModel with fields: STRING
HIGHlangroid/parsing/repo_loader.py237 Get the file type of a file name. Args: name: name of file, can be "a", "a.b", or ".b" STRING
HIGHlangroid/parsing/url_loader.py258Create a crawler instance based on configuration type. Args: config: Configuration for the crawler STRING
HIGHlangroid/parsing/url_loader.py621Load pages, retaining successful results when another page fails. Args: urls: Page URLs, or seed URSTRING
HIGHlangroid/parsing/url_loader.py753Crawl the given URLs using Exa SDK. Args: urls: List of URLs to crawl Returns: STRING
HIGHlangroid/parsing/table_loader.py8 Reads tabular data from a file or URL and returns a pandas DataFrame. The separator is auto-detected if not speSTRING
HIGHlangroid/parsing/urls.py20 Fetch content from the given URL and save it to a temporary local file. Args: url (str): The URL of thSTRING
HIGHlangroid/parsing/document_url.py48Fetch a URL with timeouts and bounded streamed consumption. Args: url: HTTP(S) document URL. connecSTRING
HIGHlangroid/parsing/file_attachment.py119Create a FileAttachment from either a local file path or a URL. Args: path: Path to the file or URLSTRING
Modern Structural Boilerplate107 hits · 104 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py11logger = logging.getLogger(__name__)CODE
LOWtests/extras/test_doc_chat_agent_llamacpp.py129logger = logging.getLogger(__name__)STRING
LOWexamples/chainlit/chat-search-rag.py46logger = logging.getLogger(__name__)CODE
LOWexamples/chainlit/chat-search.py35logger = logging.getLogger(__name__)CODE
LOWexamples/docqa/chat_search.py54logger = logging.getLogger(__name__)CODE
LOWexamples/multi-agent-debate/chainlit_utils.py12logger = logging.getLogger(__name__)CODE
LOWexamples/basic/multi-agent-medical.py41logger = logging.getLogger(__name__)CODE
LOWexamples/basic/chat-persist.py41logger = logging.getLogger(__name__)CODE
LOWexamples/basic/planner-workflow-spawn.py34logger = logging.getLogger(__name__)CODE
LOWexamples/basic/planner-workflow.py28logger = logging.getLogger(__name__)CODE
LOWexamples/basic/planner-workflow-simple.py37logger = logging.getLogger(__name__)CODE
LOWexamples/kg-chat/chat-arangodb.py52logger = logging.getLogger(__name__)CODE
LOWexamples/kg-chat/chat-arangodb-igvf.py46logger = logging.getLogger(__name__)CODE
LOWexamples/extract/pdf-json.py39logger = logging.getLogger(__name__)CODE
LOWexamples/extract/pdf-json-flex.py37logger = logging.getLogger(__name__)CODE
LOWexamples/extract/pdf-json-no-parse.py44logger = logging.getLogger(__name__)CODE
LOWexamples/data-qa/sql-chat/utils.py9logger = logging.getLogger(__name__)CODE
LOWexamples/data-qa/sql-chat/sql_chat.py48logger = logging.getLogger(__name__)CODE
LOWlangroid/__init__.py56__all__ = [CODE
LOWlangroid/embedding_models/__init__.py26__all__ = [CODE
LOWlangroid/language_models/rate_limiter.py46logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/__init__.py37__all__ = [CODE
LOWlangroid/language_models/azure_openai.py21logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/utils.py12logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/model_info.py9logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/httpx_compat.py63__all__ = ["HTTPX_MODULE_NAME", "Timeout", "import_httpx", "missing_httpx_message"]CODE
LOWlangroid/language_models/base.py33logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/prompt_formatter/__init__.py9__all__ = [CODE
LOW…d/language_models/prompt_formatter/llama2_formatter.py8logger = logging.getLogger(__name__)CODE
LOW…groid/language_models/prompt_formatter/hf_formatter.py18logger = logging.getLogger(__name__)CODE
LOWlangroid/language_models/prompt_formatter/base.py8logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/configuration.py70def update_global_settings(cfg: BaseSettings, keys: List[str]) -> None:CODE
LOWlangroid/utils/configuration.py88def set_global(key_vals: Settings) -> None:CODE
LOWlangroid/utils/configuration.py134def set_env(settings_instance: BaseSettings) -> None:CODE
LOWlangroid/utils/system.py15logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/globals.py42 def set_values(cls: Type[T], **kwargs: Dict[str, Any]) -> None:CODE
LOWlangroid/utils/pydantic_utils.py22logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/__init__.py10__all__ = [CODE
LOWlangroid/utils/types.py19logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/git_utils.py12logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/algorithms/__init__.py3__all__ = ["graph"]CODE
LOWlangroid/utils/output/citations.py6logger = logging.getLogger(__name__)CODE
LOWlangroid/utils/output/__init__.py12__all__ = [CODE
LOWlangroid/utils/output/status.py11logger = logging.getLogger(__name__)CODE
LOWlangroid/agent/task.py66logger = logging.getLogger(__name__)CODE
LOWlangroid/agent/task.py537 def _set_alive(self) -> None:CODE
LOWlangroid/agent/task.py1453 def _update_no_answer_vars(self, result: ChatDocument) -> None:CODE
LOWlangroid/agent/task.py2321 def set_color_log(self, enable: bool = True) -> None:CODE
LOWlangroid/agent/__init__.py22__all__ = [CODE
LOWlangroid/agent/base.py73logger = logging.getLogger(__name__)CODE
LOWlangroid/agent/base.py255 def update_dialog(self, prompt: str, output: str) -> None:CODE
LOWlangroid/agent/chat_agent.py66logger = logging.getLogger(__name__)CODE
LOWlangroid/agent/chat_agent.py197 def _set_fn_or_tools(self) -> None:CODE
LOWlangroid/agent/chat_agent.py431 def set_system_message(self, msg: str) -> None:CODE
LOWlangroid/agent/chat_agent.py437 def set_user_message(self, msg: str) -> None:CODE
LOWlangroid/agent/chat_agent.py495 def update_history(self, message: str, response: str) -> None:CODE
LOWlangroid/agent/chat_agent.py820 def update_last_message(self, message: str, role: str = Role.USER) -> None:CODE
LOW⚡langroid/agent/chat_agent.py1102 def _update_tool_instructions(self) -> None:STRING
LOWlangroid/agent/tools/__init__.py20__all__ = [CODE
LOWlangroid/agent/tools/mcp/__init__.py13__all__ = [CODE
47 more matches not shown…
Deep Nesting109 hits · 95 pts
SeverityFileLineSnippetContext
LOWtests/main/test_no_shared_default_config.py68CODE
LOWtests/main/test_task_tool.py182CODE
LOWtests/main/test_tool_messages.py857CODE
LOWexamples/docqa/crawl4ai_examples.py405CODE
LOWexamples/docqa/chat_search.py107CODE
LOWexamples/docqa/rag-concurrent.py132CODE
LOW…amples/basic/multi-agent-search-critic-no-orch/main.py56CODE
LOW…amples/basic/multi-agent-search-critic-no-orch/main.py93CODE
LOWexamples/kg-chat/csv-chat.py48CODE
LOWlangroid/embedding_models/remote_embeds.py71CODE
LOWlangroid/embedding_models/remote_embeds.py84CODE
LOWlangroid/embedding_models/models.py611CODE
LOWlangroid/embedding_models/models.py118CODE
LOWlangroid/embedding_models/models.py487CODE
LOWlangroid/embedding_models/base.py40CODE
LOWlangroid/language_models/client_cache.py422CODE
LOWlangroid/language_models/base.py297CODE
LOWlangroid/language_models/base.py443CODE
LOWlangroid/language_models/openai_gpt.py795CODE
LOWlangroid/language_models/openai_gpt.py1515CODE
LOWlangroid/language_models/openai_gpt.py1680CODE
LOWlangroid/language_models/openai_gpt.py1848CODE
LOWlangroid/language_models/openai_gpt.py2719CODE
LOWlangroid/language_models/openai_gpt.py2815CODE
LOWlangroid/utils/logging.py200CODE
LOWlangroid/utils/system.py251CODE
LOWlangroid/utils/pydantic_utils.py104CODE
LOWlangroid/utils/pydantic_utils.py165CODE
LOWlangroid/utils/types.py24CODE
LOWlangroid/utils/types.py98CODE
LOWlangroid/utils/html_logger.py516CODE
LOWlangroid/utils/git_utils.py42CODE
LOWlangroid/utils/algorithms/graph.py11CODE
LOWlangroid/utils/algorithms/graph.py53CODE
LOWlangroid/utils/output/citations.py49CODE
LOWlangroid/agent/task.py613CODE
LOWlangroid/agent/task.py695CODE
LOWlangroid/agent/task.py794CODE
LOWlangroid/agent/task.py983CODE
LOWlangroid/agent/task.py1808CODE
LOWlangroid/agent/task.py2406CODE
LOWlangroid/agent/task.py2453CODE
LOWlangroid/agent/xml_tool_message.py330CODE
LOWlangroid/agent/xml_tool_message.py482CODE
LOWlangroid/agent/xml_tool_message.py530CODE
LOWlangroid/agent/xml_tool_message.py343CODE
LOWlangroid/agent/xml_tool_message.py493CODE
LOWlangroid/agent/batch.py84CODE
LOWlangroid/agent/batch.py243CODE
LOWlangroid/agent/batch.py347CODE
LOWlangroid/agent/batch.py386CODE
LOWlangroid/agent/chat_document.py259CODE
LOWlangroid/agent/chat_document.py459CODE
LOWlangroid/agent/tool_message.py65CODE
LOWlangroid/agent/tool_message.py337CODE
LOWlangroid/agent/done_sequence_parser.py45CODE
LOWlangroid/agent/done_sequence_parser.py113CODE
LOWlangroid/agent/base.py264CODE
LOWlangroid/agent/base.py325CODE
LOWlangroid/agent/base.py772CODE
49 more matches not shown…
Modern AI Meta-Vocabulary45 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py44 # real key, and this suite drives multi-agent pipelines with manyCOMMENT
MEDIUM⚡tests/main/test_context_truncation.py149 # Use a context window large enough for the buffer but small enough to needCOMMENT
MEDIUMtests/main/test_vector_stores.py437 # Test context window retrievalCOMMENT
MEDIUMtests/main/test_vector_stores.py575 # Test context window retrievalCOMMENT
MEDIUMtests/main/test_vector_stores.py580 # single window. The third Giraffe-match context window will not overlap withCOMMENT
MEDIUMdocs/FAQ.md309## How can I improve `DocChatAgent` (RAG) latency?STRING
MEDIUMdocs/blog/posts/langroid-lancedb.md134## Retrieval Augmented Generation (RAG) and Vector DatabasesSTRING
MEDIUMdocs/blog/posts/multi-agent-debate.md60#### RAG Q&A Agent:COMMENT
MEDIUMdocs/notes/tool-origin-taint.md16Issue #1035 identified the remaining *laundering* hole: orchestration code thatCODE
MEDIUMdocs/notes/tool-origin-taint.md116- PR #1034: `tools_from_agent` preserves multi-agent handoffsCODE
MEDIUMdocs/notes/chunking.md113 # Configure context windowCOMMENT
MEDIUMdocs/notes/llama-cpp-embeddings.md44 dims=768, # Match the dimensions of your embedding modelCODE
MEDIUMdocs/examples/guide.md59### Document-chat examples, or RAG (Retrieval Augmented Generation)COMMENT
MEDIUMdocs/quick-start/two-agent-chat-num.md114## Logs of multi-agent interactionsSTRING
MEDIUMdocs/quick-start/chat-agent-tool.md83 # Compiled to few-shot examples sent along with the tool instructions.STRING
MEDIUMdocs/tutorials/langroid-tour.md125## Chat with a document (RAG)STRING
MEDIUMexamples/langdb/README.md16### 1. LangDB Chat Agent with Document RAG (`langdb_chat_agent_docs.py`)COMMENT
MEDIUMexamples/chainlit/.chainlit/config.toml65# Hide the chain of thought details from the user in the UI.COMMENT
MEDIUMexamples/docqa/rag-local-simple.py60 # using SentenceTransformers/BAAI/bge-large-en-v1.5 embedding modelCOMMENT
MEDIUMexamples/docqa/chat.py128 dims=768, # Change this to match the dimensions of your embedding modelCODE
MEDIUMexamples/docqa/chat-multi-extract-local.py245 # (2) RAG AGENT: try to answer a given question based on documentsSTRING
MEDIUMexamples/docqa/chat-multi-extract-local.py277 # from the RAG agentSTRING
MEDIUMexamples/docqa/chat-multi-extract-local.py329 # Questions -> Answers using RAGSTRING
MEDIUMexamples/basic/fn-call-local-numerical.py83 # Used to provide few-shot examples in the system promptCOMMENT
MEDIUMexamples/basic/fn-call-local-numerical.py207 # and few-shot examples into the system messageSTRING
MEDIUMexamples/basic/fn-call-local-simple.py73 # Used to provide few-shot examples in the system promptCOMMENT
MEDIUMexamples/basic/fn-call-local-simple.py138 # and few-shot examples (specified in the tool defn above) into the system messageSTRING
MEDIUMexamples/basic/1-agent-3-tools.py27 # Examples that will be compiled into few-shot examples for the LLM.COMMENT
MEDIUMexamples/basic/text-to-structured.py85 # Used to provide few-shot examples in the system promptSTRING
MEDIUMexamples/basic/text-to-structured.py133 # and few-shot examples (specified in the tool defn above) into the system messageSTRING
MEDIUMexamples/basic/1-agent-3-tools-address-user.py30 # Examples that will be compiled into few-shot examples for the LLM.COMMENT
MEDIUM.chainlit/config.toml65# Hide the chain of thought details from the user in the UI.COMMENT
MEDIUMissues/issue-919-llamacpp-embeddings.md223 dims=768, # Match your embedding model dimensionsCODE
MEDIUMissues/issue-919-llamacpp-embeddings.md238# For dedicated embedding model (RECOMMENDED)COMMENT
MEDIUMissues/20251010-concurrent-rag-status.md1# Concurrent DocChat RAG – Current Status (2025-10-10)COMMENT
MEDIUMlangroid/mytypes.py52 window_ids: List[str] = [] # for RAG: ids of chunks around this oneCODE
MEDIUMlangroid/language_models/model_info.py165 max_cot_tokens: int = 0 # max chain of thought (thinking) tokens where applicableCODE
MEDIUMlangroid/agent/chat_document.py61 # multi-agent handoff (a Task then relabels sender -> USER). Lets handle-onlyCOMMENT
MEDIUMlangroid/agent/base.py1389 # across a multi-agent handoff), not raw user input -- safe toSTRING
MEDIUMlangroid/agent/base.py1717 # check whether there are multiple orchestration-tools (e.g. DoneTool etc),STRING
MEDIUMlangroid/agent/base.py1772 # Cannot support multi-tool results containing orchestration strings!STRING
MEDIUMlangroid/agent/base.py1818 # agent's or, in multi-agent setups, another agent's), not by raw userSTRING
MEDIUMlangroid/agent/special/doc_chat_agent.py299 rerank_after_adding_context: bool = True # rerank after adding context window?STRING
MEDIUMlangroid/agent/special/doc_chat_agent.py1392 # Do not add context window when there are other fields besides justSTRING
MEDIUMlangroid/agent/special/lance_rag/query_planner_agent.py195 # since this Agent seeks feedback only after receiving RAG answer.COMMENT
Cross-Language Confusion14 hits · 78 pts
SeverityFileLineSnippetContext
HIGHtests/main/test_openai_json_arguments.py19 '{"enabled": true, "value": null}',CODE
HIGHtests/main/test_mcp_tools.py1956 # Optional[int] (anyOf including null) -> Union[int, None]COMMENT
HIGHtests/main/test_mcp_nullable_payloads.py49 # null, which is what `exclude_none=True` always did.COMMENT
HIGHtests/main/test_mcp_nullable_payloads.py98 # A cycle and a dangling $ref both fall back to dropping the null,COMMENT
HIGHtests/main/test_mcp_nullable_payloads.py123 await tool.model_validate_json('{"value": null}').handle_async() == "null"CODE
HIGHtests/main/test_json.py118 ('{"key": null}', {"key": None}),CODE
HIGHtests/main/test_json.py137 "null": null,STRING
HIGH⚡tests/main/test_json.py235 '{"key": undefined}', # JavaScript-style undefined (gets repaired)CODE
HIGH⚡tests/main/test_json.py239 '{"key": null, "key2": }', # Trailing comma with no valueCODE
HIGHtests/main/test_lance_doc_chat_agent.py381 That reply is accepted when non-null, and because `llm_response` setsSTRING
HIGHtests/extras/test_csv_kg_chat.py64 assert nodes_query_df.equals(df)CODE
HIGHlangroid/utils/html_logger.py434 if (savedState !== null) {{CODE
HIGHlangroid/utils/html_logger.py453 if (contentElement && toggleElement) {{CODE
HIGHlangroid/agent/special/lance_rag/query_planner_agent.py241 non-null, and since `llm_response` above sets `expecting_query_plan`CODE
Redundant / Tautological Comments43 hits · 50 pts
SeverityFileLineSnippetContext
LOWtests/main/test_task.py1143 # Set caller to simulate subtask scenarioCOMMENT
LOWtests/main/test_openai_http_client.py15# Check if the httpx family matching the installed openai SDK is availableCOMMENT
LOWtests/main/test_git_utils.py92 # Check if the file was actually committedCOMMENT
LOWtests/main/test_task_optional_logger.py26 # Check if loggers were createdCOMMENT
LOW⚡tests/main/test_task_optional_logger.py58 # Check if loggers were NOT createdCOMMENT
LOWtests/main/test_task_tool.py248 # Check if current message is from TaskToolSTRING
LOWtests/main/test_pdf_utils.py16 # Check if the pages are split correctlyCOMMENT
LOW⚡tests/main/test_file_tools.py71 # Check if the file was createdSTRING
LOW⚡tests/main/test_file_tools.py75 # Check if the content was written correctlySTRING
LOW⚡tests/main/test_file_tools.py79 # Check if the file was committed to the git repoSTRING
LOWtests/main/test_file_tools.py118 # Check if all files are in the repoSTRING
LOWtests/main/test_file_tools.py213 # Check if each line of content is in the result, ignoring line numbersSTRING
LOWexamples/chainlit/dependency_chatbot.py133 # Check if node has been added beforeSTRING
LOWexamples/docqa/rag-concurrent.py377 # Display resultsCOMMENT
LOWexamples/kg-chat/dependency_chatbot.py141 # Check if node has been added beforeSTRING
LOWlangroid/embedding_models/models.py187 # Check if using LangDBCOMMENT
LOWlangroid/embedding_models/models.py514 # Check if it's [floats]COMMENT
LOWlangroid/embedding_models/models.py538 # Check if it's [floats]COMMENT
LOWlangroid/embedding_models/models.py542 # Check if it's [[floats]]COMMENT
LOWlangroid/language_models/utils.py75 # Increment retriesCOMMENT
LOWlangroid/language_models/utils.py78 # Check if max retries has been reachedCOMMENT
LOWlangroid/language_models/utils.py158 # Increment retriesCOMMENT
LOWlangroid/language_models/utils.py161 # Check if max retries has been reachedCOMMENT
LOWlangroid/language_models/client_cache.py430 # Check if close is a coroutine function (async)COMMENT
LOWlangroid/utils/pydantic_utils.py478 # Check if metadata_cols is emptyCOMMENT
LOWlangroid/utils/git_utils.py103 # Check if we're on the master branchCOMMENT
LOWlangroid/agent/task.py2063 # Check if task should be done if message contains a toolCOMMENT
LOWlangroid/agent/batch.py677 # Check if the method is asyncCOMMENT
LOWlangroid/agent/chat_agent.py1436 # Check if tool class was attached to the exceptionSTRING
LOWlangroid/agent/chat_agent.py2477 # Check if callback accepts 'reasoning' param or **kwargsSTRING
LOWlangroid/agent/special/doc_chat_agent.py201 # Check if module exists in sys.pathSTRING
LOWlangroid/agent/special/table_chat_agent.py265 # Return the resultSTRING
LOWlangroid/agent/special/neo4j/neo4j_chat_agent.py259 # Check if query contains database/collection creation patternsSTRING
LOWlangroid/agent/special/arangodb/arangodb_agent.py231 # Check if any non-system collection has dataSTRING
LOWlangroid/vector_store/weaviatedb.py296 # Check if the name now meets the criteriaSTRING
LOWlangroid/parsing/md_parser.py93 # Check if the line is a headingCOMMENT
LOWlangroid/parsing/md_parser.py369 # Check if this is a header-only node.COMMENT
LOWlangroid/parsing/md_parser.py437 # Check if this is a header node (content matches last item in path)COMMENT
LOWlangroid/parsing/md_parser.py471 # Check if the node is "heading-only" and has childrenCOMMENT
LOWlangroid/parsing/md_parser.py494 # Check if we can roll up everything (node + children) in a single chunkCOMMENT
LOWlangroid/parsing/urls.py77 # Check if the user wants to exit the loop.COMMENT
LOWlangroid/parsing/document_parser.py240 # Check if the MIME type is not a text typeCOMMENT
LOWlangroid/parsing/file_attachment.py139 # Check if it's a URLCOMMENT
Over-Commented Block53 hits · 48 pts
SeverityFileLineSnippetContext
LOWpyproject.toml341 "mkdocs-section-index<1.0.0,>=0.3.5",COMMENT
LOWtests/main/test_tool_origin_taint.py781COMMENT
LOWtests/main/test_md_parser.py941 ), f"Found repeated overlap in chunk {i+2} that belonged to chunk {i}!"COMMENT
LOWtests/main/test_task_lineage_rewind.py161COMMENT
LOWtests/main/test_task_lineage_rewind.py321 )COMMENT
LOWtests/main/test_vertexai_isolation.py701 leak. Every field must therefore be either dropped or listed here asCOMMENT
LOWtests/main/test_task_run_polymorphic.py201 assert result[0].answer == 6COMMENT
LOWtests/main/test_tool_messages.py1481 # Strict fallback disables the default arguments, but the LLMCOMMENT
LOWtests/main/test_pandas_utils.py81@pytest.mark.parametrize("expr,msg", BLOCK_WITH_MSG)COMMENT
LOWexamples/portkey/requirements.txt1# Requirements for Portkey examplesCOMMENT
LOWexamples/chainlit/.chainlit/config.toml61COMMENT
LOWexamples/chainlit/.chainlit/config.toml81COMMENT
LOWexamples/docqa/rag-local-simple.py41 )COMMENT
LOWexamples/summarize/summ.py41 # Create the llm config object.COMMENT
LOWexamples/basic/chat-local.py21# Notes:COMMENT
LOWexamples/basic/fn-call-local-simple.py101 timeout=45,COMMENT
LOWexamples/kg-chat/chat-arangodb.py181COMMENT
LOWexamples/kg-chat/chat-arangodb-igvf.py141 # You can have this in a loop with the user, like so:COMMENT
LOWscripts/fix-pydantic-imports.sh1#!/bin/bashCOMMENT
LOW.github/workflows/pytest.yml1name: PytestCOMMENT
LOW.github/workflows/pytest.yml241 # path: ~/.localCOMMENT
LOW.github/workflows/pytest-subset.yml1name: Pytest subset (manual)COMMENT
LOW.chainlit/config.toml61COMMENT
LOW.chainlit/config.toml81COMMENT
LOWlangroid/language_models/rate_limiter.py201 enabled: bool = FalseCOMMENT
LOWlangroid/language_models/openai_gpt.py541# Fields that must NOT be carried over from an `OPENAI_`-prefixed config ontoCOMMENT
LOWlangroid/language_models/openai_gpt.py661 "meant for Vertex AI.",COMMENT
LOWlangroid/language_models/openai_gpt.py861 # falls through to the generic branch and quietly talks toCOMMENT
LOWlangroid/language_models/openai_gpt.py881 # prefix and slipped past both branches -- then the split turned itCOMMENT
LOWlangroid/language_models/openai_gpt.py921 # replaced self.config above, and the original still holds theCOMMENT
LOWlangroid/language_models/openai_gpt.py2761 limiter.observe_rate_limit_error(headers)COMMENT
LOWlangroid/language_models/openai_gpt.py3081 reasoning = message.get("reasoning_content", "")COMMENT
LOWlangroid/utils/pydantic_utils.py581 metadata (List[str]): A list of column names containing metadata;COMMENT
LOWlangroid/agent/task.py1281 and not self.human_triedCOMMENT
LOWlangroid/agent/task.py1481 # pending_sender is of type Responder,COMMENT
LOWlangroid/agent/task.py2021 m = indices[-1] if indices.size > 0 else -1COMMENT
LOWlangroid/agent/chat_document.py61 # multi-agent handoff (a Task then relabels sender -> USER). Lets handle-onlyCOMMENT
LOWlangroid/agent/chat_document.py81 cached: bool = FalseCOMMENT
LOWlangroid/agent/chat_document.py161 # (e.g. <thinking>...</thinking>). Only populated when reasoning wasCOMMENT
LOWlangroid/agent/chat_document.py481 # inline thought signatures (e.g. <thinking>...</thinking>) inCOMMENT
LOWlangroid/agent/tool_message.py141 # JSON, and it survives copy.deepcopy (hence ChatDocument.deepcopy).COMMENT
LOWlangroid/agent/base.py1801 tools = self.get_tool_messages(msg)COMMENT
LOWlangroid/agent/base.py1961 # "request": "square",COMMENT
LOWlangroid/agent/base.py2101 # LLM-AUTHORED tool results (e.g. a custom llm_response returning aCOMMENT
LOWlangroid/agent/chat_agent.py281 # This variable is not None and equals a `ToolMessage` T, if and only if:COMMENT
LOWlangroid/agent/chat_agent.py2001 # Account for the warning that truncate_message appendsCOMMENT
LOWlangroid/agent/chat_agent.py2041 # as much content as possible instead of beingCOMMENT
LOWlangroid/agent/tools/recipient_tool.py41 "to clarify who the message is intended for."COMMENT
LOWlangroid/agent/special/doc_chat_agent.py241 # helps LLM fix citation errors and improve accuracy of follow-up questions.COMMENT
LOWlangroid/agent/special/doc_chat_agent.py1561 # different retrieval methods (semantic, bm25, fuzzy), where theCOMMENT
LOWlangroid/agent/special/sql/sql_chat_agent.py121# access, or other escapes from the database engine. Matched against the rawCOMMENT
LOWlangroid/agent/special/sql/sql_chat_agent.py321 use_schema_tools: bool = FalseCOMMENT
LOWlangroid/parsing/urls.py261 # made conditional:COMMENT
Fake / Example Data28 hits · 32 pts
SeverityFileLineSnippetContext
LOWtests/main/test_mcp_tools.py411 recipient__="John Doe",CODE
LOWtests/main/test_mcp_tools.py418 assert msg.recipient__ == "John Doe"CODE
LOW⚡tests/main/test_neo4j_chat_agent.py170 CREATE (p:Person {name: 'John Doe', age: 30})CODE
LOW⚡tests/main/test_neo4j_chat_agent.py176 MATCH (p:Person {name: 'John Doe'})CODE
LOW⚡tests/main/test_neo4j_chat_agent.py183 MATCH (p:Person {name: 'John Doe'})CODE
LOW⚡tests/main/test_pydantic_utils.py27 name="John Doe", age=30, details=DetailsModel(height=180.5, weight=75.0)CODE
LOW⚡tests/main/test_pydantic_utils.py32 assert result == {"name": "John Doe"}CODE
LOW⚡tests/main/test_pydantic_utils.py36 assert result == {"name": "John Doe", "age": 30, "weight": 75.0}CODE
LOWtests/main/test_vecstore_env_prefix.py277 monkeypatch.setenv(name, "placeholder")CODE
LOWtests/main/test_vecstore_env_prefix.py302 monkeypatch.setenv("SOME_FIELD", "placeholder")CODE
LOW⚡tests/main/test_object_registry.py102 ObjectRegistry.registry["dummy_id"] = NoneCODE
LOW⚡tests/main/test_object_registry.py103 # Ensure "dummy_id" is in the registry before cleanupCOMMENT
LOW⚡tests/main/test_object_registry.py104 assert "dummy_id" in ObjectRegistry.registryCODE
LOW⚡tests/main/test_object_registry.py107 # "dummy_id" should be removed post cleanupCOMMENT
LOW⚡tests/main/test_object_registry.py108 assert "dummy_id" not in ObjectRegistry.registryCODE
LOW⚡tests/main/test_xml_tool_message.py361 name="John Doe",STRING
LOW⚡tests/main/test_xml_tool_message.py364 street="123 Main St", city="Anytown", country="USA"STRING
LOW⚡tests/main/test_xml_tool_message.py371 name="Jane Doe",STRING
LOW⚡tests/main/test_xml_tool_message.py402 name="Jane Doe",STRING
LOW⚡tests/main/test_xml_tool_message.py410 name="John Doe",STRING
LOW⚡tests/main/test_xml_tool_message.py412 address=Address(street="123 Main St", city="Anytown", country="USA"),STRING
LOW⚡tests/main/test_xml_tool_message.py491 assert parsed.person.name == "John Doe"STRING
LOW⚡tests/main/test_xml_tool_message.py494 assert parsed.person.address.street == "123 Main St"STRING
LOWtests/main/test_xml_tool_message.py562 name="Jane Doe",STRING
LOWexamples/chainlit/.chainlit/translations/pt-BR.json53 "placeholder": "Digite sua mensagem aqui..."CODE
LOWexamples/chainlit/.chainlit/translations/en-US.json53 "placeholder": "Ask, respond, give feedback, or just 'c' for continue..."CODE
LOW.chainlit/translations/pt-BR.json53 "placeholder": "Digite sua mensagem aqui..."CODE
LOW.chainlit/translations/en-US.json53 "placeholder": "Ask, respond, give feedback, or just 'c' for continue..."CODE
AI Structural Patterns36 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/main/test_table_chat_agent.py152CODE
LOWtests/main/test_seltz_search.py30CODE
LOWexamples/chainlit/multi-agent-nested-tool.py47CODE
LOW…mples/chainlit/non-callback/chat-search-no-callback.py31CODE
LOW…mples/chainlit/non-callback/chat-search-no-callback.py38CODE
LOWexamples/chainlit/non-callback/chat-tool-no-callback.py38CODE
LOWexamples/docqa/chat.py53CODE
LOWexamples/docqa/rag-concurrent.py132CODE
LOWexamples/docqa/doc-chunk-enrich.py263CODE
LOWexamples/basic/fn-call-local-numerical.py106CODE
LOW…amples/basic/multi-agent-search-critic/search_agent.py130CODE
LOW…asic/multi-agent-search-critic-no-orch/search_agent.py130CODE
LOWlangroid/embedding_models/protoc/embeddings_pb2_grpc.py53CODE
LOWlangroid/language_models/openai_gpt.py1515CODE
LOWlangroid/language_models/openai_gpt.py1680CODE
LOWlangroid/language_models/openai_gpt.py2155CODE
LOWlangroid/agent/task.py211CODE
LOWlangroid/agent/task.py766CODE
LOWlangroid/agent/task.py780CODE
LOWlangroid/agent/task.py794CODE
LOWlangroid/agent/task.py955CODE
LOWlangroid/agent/task.py969CODE
LOWlangroid/agent/task.py983CODE
LOWlangroid/agent/task.py1585CODE
LOWlangroid/agent/batch.py446CODE
LOWlangroid/agent/batch.py558CODE
LOWlangroid/agent/batch.py698CODE
LOWlangroid/agent/base.py615CODE
LOWlangroid/agent/base.py882CODE
LOWlangroid/agent/base.py935CODE
LOWlangroid/agent/base.py1128CODE
LOWlangroid/agent/tools/task_tool.py221CODE
LOWlangroid/agent/tools/task_tool.py261CODE
LOWlangroid/agent/tools/mcp/fastmcp_client.py195CODE
LOWlangroid/agent/special/relevance_extractor_agent.py87CODE
LOWlangroid/agent/special/relevance_extractor_agent.py118CODE
Structural Annotation Overuse11 hits · 23 pts
SeverityFileLineSnippetContext
LOWdocs/blog/posts/malade.md111### Step 2: Identifying Drug-Outcome Associations (`DrugOutcomeInfoAgent`)COMMENT
LOWdocs/blog/posts/malade.md129### Step 3: Labeling Drug Category-Outcome Associations (`CategoryOutcomeRiskAgent`)COMMENT
LOW⚡docs/notes/portkey.md433# Step 1: Basic PortkeyCOMMENT
LOW⚡docs/notes/portkey.md438# Step 2: Add cachingCOMMENT
LOW⚡docs/notes/portkey.md446# Step 3: Add observabilityCOMMENT
LOW⚡issues/html-logger-implementation.md43#### Step 1: Create HTML Logger FoundationCOMMENT
LOW⚡issues/html-logger-implementation.md48#### Step 2: Integrate with Task SystemCOMMENT
LOW⚡issues/html-logger-implementation.md53#### Step 3: Implement HTML GenerationCOMMENT
LOW⚡issues/html-logger-implementation.md58#### Step 4: Add JavaScript FunctionalityCOMMENT
LOW⚡langroid/parsing/url_loader.py847 # Step 1: Separate URLs into documents and web pagesCOMMENT
LOW⚡langroid/parsing/url_loader.py855 # Step 2: Process web page URLs asynchronouslyCOMMENT
AI Slop Vocabulary19 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/main/test_doc_chat_agent.py277 # to just use ChatAgent's LLM response - this ensures that the system msgSTRING
MEDIUMtests/main/test_mcp_tools.py736 # Add timeout and robust skipping similar to npx testSTRING
MEDIUMtests/main/test_rate_limiter.py489 # chat_model="" switches off the test harness's global `--m` modelCOMMENT
LOW⚡tests/main/test_json.py230 # Test cases that should not crash, just return ""COMMENT
LOW⚡tests/main/test_json.py244 # Should never crash, just return empty string or found valueCOMMENT
LOWtests/extras/test_doc_chat_agent_llamacpp.py335 # to just use ChatAgent's LLM response - this ensures that the system msgSTRING
MEDIUMexamples/docqa/rag-concurrent.py34# Use Langroid's built-in run_batch_tasks harness instead of the custom oneSTRING
LOWexamples/basic/schedule-extract.py112 # from the input text. For this example, we'll just return a placeholder.STRING
LOWlangroid/mytypes.py96 # If parsing fails, just use the original dateCOMMENT
LOWlangroid/language_models/openai_gpt.py940 # so we can just use `openai.*` methods directly,STRING
LOWlangroid/agent/base.py2239 Copy-on-stamp (#1035): a tool object the framework did not just createCODE
LOWlangroid/agent/chat_agent.py925 # Otherwise just return `no_tool_option` as is:COMMENT
LOWlangroid/agent/tools/mcp/fastmcp_client.py819 # Otherwise, just return the text contentCOMMENT
LOWlangroid/agent/special/doc_chat_agent.py814 # no filter, so just use the docs passed inSTRING
LOWlangroid/agent/special/doc_chat_agent.py1756 # no relevance extraction: simply return passagesSTRING
LOWlangroid/parsing/utils.py189 # just add them to the last sentence and breakCOMMENT
LOWlangroid/parsing/md_parser.py314 # we just add it anyway to avoid creating a tiny final chunk.COMMENT
LOWlangroid/parsing/md_parser.py546 # Pure text, no hierarchy, so just use recursive_chunkCOMMENT
LOWlangroid/parsing/urls.py156 # no need to crawl, just return the original listSTRING
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHdocs/notes/weaviate.md28 WEAVIATE_API_KEY=<your_api_key>CODE
HIGHdocs/notes/tavily_search.md22 TAVILY_API_KEY=<your_api_key>CODE
HIGHdocs/notes/serpapi_search.md8SERPAPI_API_KEY=<your_api_key>CODE
HIGHdocs/notes/seltz_search.md22 SELTZ_API_KEY=<your_api_key>CODE
Slop Phrases9 hits · 17 pts
SeverityFileLineSnippetContext
LOWexamples/chainlit/dependency_chatbot.py232 DON'T forget to include the package name in your questions.CODE
MEDIUMexamples/docqa/rag-local-simple.py44 # Once this works, then you can try the DocChatAgentCOMMENT
MEDIUMexamples/summarize/summ-batch.py56 # Once this works, then you can try the DocChatAgentCOMMENT
MEDIUMexamples/summarize/summ.py54 # Once this works, then you can try the DocChatAgentCOMMENT
MEDIUMexamples/basic/fn-call-local-numerical.py152 # Once this works, then you can try the rest of the example.STRING
MEDIUMexamples/basic/fn-call-local-simple.py105 # Once this works, then you can try the rest of the example.COMMENT
LOWexamples/kg-chat/dependency_chatbot.py255 DON'T forget to include the package name in your questions.CODE
LOWlangroid/agent/xml_tool_message.py476 Make sure to replace the placeholders with actual valuesCODE
MEDIUMlangroid/parsing/md_parser.py566 # (you can adjust chunk_size, overlap_tokens, variation_percent)STRING
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHlangroid/language_models/base.py168 Represents a single tool call in a list of tool calls generated by OpenAI LLM API.CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡langroid/parsing/url_loader.py847 # Step 1: Separate URLs into documents and web pagesCOMMENT
LOW⚡langroid/parsing/url_loader.py855 # Step 2: Process web page URLs asynchronouslyCOMMENT
Example Usage Blocks2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlangroid/parsing/md_parser.py557 # Example usage:COMMENT
LOWlangroid/parsing/urls.py331 # Example usageSTRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlangroid/embedding_models/models.py43 # TODO: Add auth support for Azure OpenAI via AzureADTokenProviderCOMMENT