langchain/libs/core/langchain_core
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: deprecation doc removal (#28553) 2024-12-05 15:35:28 -08:00
beta core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
callbacks core[patch]: Update doc-strings in callbacks (#28073) 2024-11-13 11:07:15 -05:00
document_loaders core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
documents core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
embeddings core: Add various ruff rules (#26836) 2024-10-07 22:30:27 +00: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
indexing core[patch]: throw exception indexing code if deletion fails in vectorstore (#28103) 2024-12-13 16:14:27 -05:00
language_models anthropic[major]: support python 3.13 (#27916) 2024-11-12 14:31:07 -05:00
load partners: add xAI chat integration (#28032) 2024-11-12 15:11:29 -05:00
messages core[patch]: return ToolMessage from tool (#28605) 2024-12-10 09:59:38 +00:00
output_parsers core: xml output parser tags docstring (#28745) 2024-12-16 18:25:16 +00:00
outputs core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
prompts core: deprecate PipelinePromptTemplate (#28644) 2024-12-10 03:56:48 +00:00
pydantic_v1 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
runnables core[patch]: Fixed trim functions, and added corresponding unit test for the solved issue (#28429) 2024-12-08 20:45:28 -08:00
tools core[patch]: export InjectedToolCallId (#28772) 2024-12-17 19:29:20 +00:00
tracers core,langchain,community[patch]: allow langsmith 0.2 (#28598) 2024-12-10 18:50:58 +00:00
utils refactor: improve docstring parsing logic for Google style (#28730) 2024-12-18 09:35:19 -05:00
vectorstores core: add kwargs support to VectorStore (#25934) 2024-12-16 18:57:57 +00:00
__init__.py
agents.py multiple: update docs urls to latest 2 (#26837) 2024-09-30 17:37:07 -07:00
caches.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
chat_history.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
chat_loaders.py core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
chat_sessions.py core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
env.py
exceptions.py core: add space at end of error message link (#28270) 2024-11-21 22:19:59 +00:00
globals.py
memory.py core/langchain: fix version used in deprecation (#26724) 2024-09-20 16:47:18 -04:00
prompt_values.py core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
py.typed
rate_limiters.py core[patch]: Ignore ASYNC110 to upgrade to newest ruff version (#27229) 2024-10-09 11:25:58 -04:00
retrievers.py core, tests: more tolerant _aget_relevant_documents function (#28462) 2024-12-06 00:49:30 +00:00
stores.py core[patch]: Add ruff rules for flake8-simplify (SIM) (#26848) 2024-09-27 20:13:23 +00:00
structured_query.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00
sys_info.py core[minor]: Add other langgraph packages to sys_info (#28190) 2024-11-19 09:20:25 -05:00