langchain-ai/langchain
core: docstrings shouldn't inherit from parents
オープン
#32,066 opened on 2025/07/16
corehelp wantedinternalv1
Repository metrics
- Stars
- (136,758 個のスター)
- PR merge metrics
- (平均マージ 10d 2h) (30d で 288 merged PRs)
説明
from langchain_core.tools import tool from pydantic import BaseModel class MyTool(BaseModel): """Parent Tool""" foo: str @tool class ChildTool(MyTool): bar: strFor 0.4 release we could consider updating the behavior so that doc-strings are not inherited from their parents. It's fairly odd that doc-strings are inherited for BaseModels as in general the descriptions need to be different
Originally posted by @eyurtsev in #31606