Home / Function/ _get_partial() — langchain Function Reference

_get_partial() — langchain Function Reference

Architecture documentation for the _get_partial() function in mustache.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  7c39b038_3cb9_2f80_cba3_175369a814de["_get_partial()"]
  88ae0419_8f6b_8b31_dd8f_a3bc6bbcb7b6["mustache.py"]
  7c39b038_3cb9_2f80_cba3_175369a814de -->|defined in| 88ae0419_8f6b_8b31_dd8f_a3bc6bbcb7b6
  0d68eb8b_8003_f5a3_d717_126f0919d1af["render()"]
  0d68eb8b_8003_f5a3_d717_126f0919d1af -->|calls| 7c39b038_3cb9_2f80_cba3_175369a814de
  style 7c39b038_3cb9_2f80_cba3_175369a814de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/utils/mustache.py lines 445–455

def _get_partial(name: str, partials_dict: Mapping[str, str]) -> str:
    """Load a partial.

    Returns:
        The partial.
    """
    try:
        # Maybe the partial is in the dictionary
        return partials_dict[name]
    except KeyError:
        return ""

Domain

Subdomains

Called By

Frequently Asked Questions

What does _get_partial() do?
_get_partial() is a function in the langchain codebase, defined in libs/core/langchain_core/utils/mustache.py.
Where is _get_partial() defined?
_get_partial() is defined in libs/core/langchain_core/utils/mustache.py at line 445.
What calls _get_partial()?
_get_partial() is called by 1 function(s): render.

Analyze Your Own Codebase

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

Try Supermodel Free