The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
chore(core): clean up docstring mismatch and redundant logic in langchain-core (#35064)
Varun Chawlaa5f22e7cb18a
diff --git a/libs/core/langchain_core/documents/base.py b/libs/core/langchain_core/documents/base.pyindex 1dc9661c06..969ee49a17 100644--- a/libs/core/langchain_core/documents/base.py+++ b/libs/core/langchain_core/documents/base.py@@ -234,7 +234,7 @@ class Blob(BaseMedia):`Blob` instance"""if mime_type is None and guess_type:- mimetype = mimetypes.guess_type(path)[0] if guess_type else None+ mimetype = mimetypes.guess_type(path)[0]else:mimetype = mime_type# We do not load the data immediately, instead we treat the blob as adiff --git a/libs/core/langchain_core/utils/mustache.py b/libs/core/langchain_core/utils/mustache.pyindex 54674c262f..e8282b0f38 100644--- a/libs/core/langchain_core/utils/mustache.py+++ b/libs/core/langchain_core/utils/mustache.py@@ -481,14 +481,6 @@ def render(Args:template: A file-like object or a string containing the template.data: A python dictionary with your data scope.- partials_path: The path to where your partials are stored.-- If set to None, then partials won't be loaded from the file system-- Defaults to `'.'`.- partials_ext: The extension that you want the parser to look for-- Defaults to `'mustache'`.partials_dict: A python dictionary which will be search for partialsbefore the filesystem is.