Home / Function/ pretty_print() — langchain Function Reference

pretty_print() — langchain Function Reference

Architecture documentation for the pretty_print() function in chat.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  418ca2f5_d22d_00d9_07a1_bc3639de0847["pretty_print()"]
  93017235_36b7_3b85_820e_aa7d145183e5["BaseChatPromptTemplate"]
  418ca2f5_d22d_00d9_07a1_bc3639de0847 -->|defined in| 93017235_36b7_3b85_820e_aa7d145183e5
  47fe42aa_c8e0_87b2_ad04_4343c7ef26cb["pretty_repr()"]
  418ca2f5_d22d_00d9_07a1_bc3639de0847 -->|calls| 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb
  8b62d957_2f91_a1a5_4cc0_40e77c03366e["pretty_repr()"]
  418ca2f5_d22d_00d9_07a1_bc3639de0847 -->|calls| 8b62d957_2f91_a1a5_4cc0_40e77c03366e
  style 418ca2f5_d22d_00d9_07a1_bc3639de0847 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/chat.py lines 774–776

    def pretty_print(self) -> None:
        """Print a human-readable representation."""
        print(self.pretty_repr(html=is_interactive_env()))  # noqa: T201

Subdomains

Frequently Asked Questions

What does pretty_print() do?
pretty_print() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/chat.py.
Where is pretty_print() defined?
pretty_print() is defined in libs/core/langchain_core/prompts/chat.py at line 774.
What does pretty_print() call?
pretty_print() calls 2 function(s): pretty_repr, pretty_repr.

Analyze Your Own Codebase

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

Try Supermodel Free