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 Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
dependencies community[minor]: Add glue catalog loader (#20220) 2024-04-16 11:39:23 -04:00
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 core[minor]: moved fake llms and embeddings to core (#19226) 2024-03-18 10:01:26 -07:00
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 core:adds tests for partial_variables (#15427) 2024-01-02 15:00:06 -08:00
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 core[patch]: fix ChatGeneration.text with content blocks (#20294) 2024-04-10 15:54:06 -07:00
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 Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
conftest.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
prompt_file.txt Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
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 Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
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 REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
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 core(minor): Add a way to print out system information for debugging purposes. (#15718) 2024-01-08 12:20:18 -08:00
test_tools.py refactor: improve docstring parsing logic for Google style (#28730) 2024-12-18 09:35:19 -05:00