Home / Function/ pretty_repr() — langchain Function Reference

pretty_repr() — langchain Function Reference

Architecture documentation for the pretty_repr() function in message.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  293acfa4_ffe6_fead_11c8_dc1bf6692a1c["pretty_repr()"]
  dc7b97b4_cc8c_6ff7_fc8f_16fbbcf08799["BaseMessagePromptTemplate"]
  293acfa4_ffe6_fead_11c8_dc1bf6692a1c -->|defined in| dc7b97b4_cc8c_6ff7_fc8f_16fbbcf08799
  c07785db_734c_056f_000d_2757edad7d1e["pretty_print()"]
  c07785db_734c_056f_000d_2757edad7d1e -->|calls| 293acfa4_ffe6_fead_11c8_dc1bf6692a1c
  style 293acfa4_ffe6_fead_11c8_dc1bf6692a1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/message.py lines 66–78

    def pretty_repr(
        self,
        html: bool = False,  # noqa: FBT001,FBT002
    ) -> str:
        """Human-readable representation.

        Args:
            html: Whether to format as HTML.

        Returns:
            Human-readable representation.
        """
        raise NotImplementedError

Domain

Subdomains

Called By

Frequently Asked Questions

What does pretty_repr() do?
pretty_repr() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/message.py.
Where is pretty_repr() defined?
pretty_repr() is defined in libs/core/langchain_core/prompts/message.py at line 66.
What calls pretty_repr()?
pretty_repr() is called by 1 function(s): pretty_print.

Analyze Your Own Codebase

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

Try Supermodel Free