pretty_repr() — langchain Function Reference
Architecture documentation for the pretty_repr() function in chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb["pretty_repr()"] 93017235_36b7_3b85_820e_aa7d145183e5["BaseChatPromptTemplate"] 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb -->|defined in| 93017235_36b7_3b85_820e_aa7d145183e5 418ca2f5_d22d_00d9_07a1_bc3639de0847["pretty_print()"] 418ca2f5_d22d_00d9_07a1_bc3639de0847 -->|calls| 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb 4a22eaf2_c4cb_6f2f_6204_f7dbd1279a87["pretty_repr()"] 4a22eaf2_c4cb_6f2f_6204_f7dbd1279a87 -->|calls| 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb a7370f78_d6a3_5fb0_404d_3cd84faa406a["pretty_repr()"] a7370f78_d6a3_5fb0_404d_3cd84faa406a -->|calls| 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb 9774ca51_c1fb_c680_32ab_554a3b7f3c21["pretty_repr()"] 9774ca51_c1fb_c680_32ab_554a3b7f3c21 -->|calls| 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb 9774ca51_c1fb_c680_32ab_554a3b7f3c21["pretty_repr()"] 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb -->|calls| 9774ca51_c1fb_c680_32ab_554a3b7f3c21 style 47fe42aa_c8e0_87b2_ad04_4343c7ef26cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/prompts/chat.py lines 760–772
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
Defined In
Calls
Source
Frequently Asked Questions
What does pretty_repr() do?
pretty_repr() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/chat.py.
Where is pretty_repr() defined?
pretty_repr() is defined in libs/core/langchain_core/prompts/chat.py at line 760.
What does pretty_repr() call?
pretty_repr() calls 1 function(s): pretty_repr.
What calls pretty_repr()?
pretty_repr() is called by 4 function(s): pretty_print, pretty_repr, pretty_repr, pretty_repr.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free