Avatar for the langchain-ai user
langchain-ai
langchain
BlogDocsChangelog

Performance History

Latest Results

stop overriding caller's ls_integration in ls trace
hariharish/ls_integration
1 minute ago
fix(langchain): avoid orphan ToolMessages in summarization cutoff Co-authored-by: Cursor <cursoragent@cursor.com>
Chessing234:Chessing234/langchain/summarization-orphan-tool-cutoff
5 hours ago
fix(core): `_parse_google_docstring` mishandling continuation lines with colons (#35680) ## Description `_parse_google_docstring` incorrectly parses multi-line argument descriptions when a continuation line contains a colon. The continuation line is treated as a new argument definition instead of being appended to the current argument's description. ### Example ```python def search(query: str, top_k: int = 5) -> str: """Search the knowledge base. Args: query: The search query to use for finding things: important ones top_k: Number of results to return """ ``` **Before (broken):** The parser creates 3 args: `query`, `for finding things`, `top_k` **After (fixed):** The parser correctly creates 2 args: `query` (with full description including "for finding things: important ones"), `top_k` ### Root Cause The parser used `if ":" in line` to detect new argument lines without considering indentation. In Google-style docstrings, continuation lines have deeper indentation than argument definition lines. ### Fix Detect the base indentation level from the first argument line and treat any line with deeper indentation as a continuation of the current argument's description, regardless of whether it contains a colon. ## Issue Fixes #35679 ## Dependencies None. ## Testing Added 4 unit tests in `test_function_calling.py::TestParseGoogleDocstring`: - `test_continuation_line_with_colon` — the core bug scenario - `test_simple_args_still_work` — regression check for basic args - `test_continuation_line_without_colon` — multi-line descriptions without colons - `test_multiple_continuation_lines_with_colons` — multiple continuation lines each containing colons All tests pass locally with Python 3.12. --------- Co-authored-by: gambletan <ethanchang32@gmail.com> Co-authored-by: Mason Daugherty <github@mdrxy.com>
master
1 day ago
cr
alvinttang:fix/parse-docstring-continuation-colon-v2
1 day ago

Latest Branches

CodSpeed Performance Gauge
0%
fix(core): don't override a caller-supplied `ls_integration`#38438
8 minutes ago
d7bca50
hariharish/ls_integration
CodSpeed Performance Gauge
0%
fix(langchain): avoid orphan ToolMessages in summarization cutoff#38435
5 hours ago
2db5701
Chessing234:Chessing234/langchain/summarization-orphan-tool-cutoff
CodSpeed Performance Gauge
0%
5 hours ago
34bd453
Chessing234:Chessing234/core/fix-multimodal-token-counting
© 2026 CodSpeed Technology
Home Terms Privacy Docs