langchain/libs/core/tests/unit_tests
Satyam Kumar 90f7713399
refactor: improve docstring parsing logic for Google style (#28730)
Thank you for contributing to LangChain!

- [x] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core, etc. is
being modified. Use "docs: ..." for purely docs changes, "infra: ..."
for CI changes.
  - Example: "community: add foobar LLM"


Description:  
Improved the `_parse_google_docstring` function in `langchain/core` to
support parsing multi-paragraph descriptions before the `Args:` section
while maintaining compliance with Google-style docstring guidelines.
This change ensures better handling of docstrings with detailed function
descriptions.

Issue:  
Fixes #28628

Dependencies:  
None.

Twitter handle:  
@isatyamks

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-12-18 09:35:19 -05:00
..
_api core: fix path test (#28584) 2024-12-06 20:05:18 +00:00
caches core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
callbacks core[patch]: Update AsyncCallbackManager to honor run_inline attribute and prevent context loss (#26885) 2024-10-07 14:59:29 -04:00
chat_history core: Add various ruff rules (#26836) 2024-10-07 22:30:27 +00:00
data
dependencies
document_loaders core: Add ruff rules for comprehensions (C4) (#26829) 2024-09-25 09:34:17 -04:00
documents multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
embeddings
example_selectors core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
examples
fake core: fix batch race condition in FakeListChatModel (#26924) 2024-10-03 23:14:31 +00:00
indexing core[patch]: throw exception indexing code if deletion fails in vectorstore (#28103) 2024-12-13 16:14:27 -05:00
language_models core: Add various ruff rules (#26836) 2024-10-07 22:30:27 +00:00
load core[patch]: fix repr and str for Serializable (#26786) 2024-10-24 08:36:35 -07:00
messages fix: Handle response metadata in merge_messages_runs (#28453) 2024-12-02 13:56:23 -08:00
output_parsers core: fix CommaSeparatedListOutputParser to handle columns that may contain commas in it (#26365) 2024-11-01 22:42:24 +00:00
outputs
prompts core[patch]: Compat pydantic 2.10 (#28308) 2024-11-22 21:44:55 -05:00
rate_limiters core[minor]: Add BaseModel.rate_limiter, RateLimiter abstraction and in-memory implementation (#24669) 2024-07-26 03:03:34 +00:00
runnables core,langchain,community[patch]: allow langsmith 0.2 (#28598) 2024-12-10 18:50:58 +00:00
stores standard-tests: rename langchain_standard_tests to langchain_tests, release 0.3.2 (#28203) 2024-11-18 19:10:39 -08:00
tracers core[patch]: Add ruff rules for flake8-simplify (SIM) (#26848) 2024-09-27 20:13:23 +00:00
utils Core: google docstring parsing fix (#28404) 2024-12-10 00:27:25 +00:00
vectorstores multiple: combine sync/async vector store standard test suites (#28580) 2024-12-06 14:55:06 -05:00
__init__.py
conftest.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
prompt_file.txt
pydantic_utils.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
stubs.py core: Add various ruff rules (#26836) 2024-10-07 22:30:27 +00:00
test_globals.py
test_imports.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
test_messages.py core: Add various ruff rules (#26836) 2024-10-07 22:30:27 +00:00
test_outputs.py
test_prompt_values.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_pydantic_serde.py core: Add N(naming) ruff rules (#25362) 2024-09-19 05:09:39 +00:00
test_retrievers.py core, tests: more tolerant _aget_relevant_documents function (#28462) 2024-12-06 00:49:30 +00:00
test_sys_info.py
test_tools.py refactor: improve docstring parsing logic for Google style (#28730) 2024-12-18 09:35:19 -05:00