Home / Function/ check_blob_is_valid() — langchain Function Reference

check_blob_is_valid() — langchain Function Reference

Architecture documentation for the check_blob_is_valid() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  8fb39201_3ed0_1cbe_189d_79e589c5ac31["check_blob_is_valid()"]
  3557cb87_7ae6_78b3_0aa2_bbb7f023fdce["Blob"]
  8fb39201_3ed0_1cbe_189d_79e589c5ac31 -->|defined in| 3557cb87_7ae6_78b3_0aa2_bbb7f023fdce
  style 8fb39201_3ed0_1cbe_189d_79e589c5ac31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/documents/base.py lines 151–156

    def check_blob_is_valid(cls, values: dict[str, Any]) -> Any:
        """Verify that either data or path is provided."""
        if "data" not in values and "path" not in values:
            msg = "Either data or path must be provided"
            raise ValueError(msg)
        return values

Subdomains

Frequently Asked Questions

What does check_blob_is_valid() do?
check_blob_is_valid() is a function in the langchain codebase, defined in libs/core/langchain_core/documents/base.py.
Where is check_blob_is_valid() defined?
check_blob_is_valid() is defined in libs/core/langchain_core/documents/base.py at line 151.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free