Home / Function/ pretty_print() — langchain Function Reference

pretty_print() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  02fe17e5_5037_fda4_3044_50c8e47385c5["pretty_print()"]
  a3097815_cadb_7ebc_b29a_72117ccf6e27["StringPromptTemplate"]
  02fe17e5_5037_fda4_3044_50c8e47385c5 -->|defined in| a3097815_cadb_7ebc_b29a_72117ccf6e27
  02fe17e5_5037_fda4_3044_50c8e47385c5["pretty_print()"]
  02fe17e5_5037_fda4_3044_50c8e47385c5 -->|calls| 02fe17e5_5037_fda4_3044_50c8e47385c5
  51f6ea54_b5f1_f3c0_e18c_2e8f1d74f2a8["pretty_repr()"]
  02fe17e5_5037_fda4_3044_50c8e47385c5 -->|calls| 51f6ea54_b5f1_f3c0_e18c_2e8f1d74f2a8
  02fe17e5_5037_fda4_3044_50c8e47385c5["pretty_print()"]
  02fe17e5_5037_fda4_3044_50c8e47385c5 -->|calls| 02fe17e5_5037_fda4_3044_50c8e47385c5
  style 02fe17e5_5037_fda4_3044_50c8e47385c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/string.py lines 369–371

    def pretty_print(self) -> None:
        """Print a pretty representation of the prompt."""
        print(self.pretty_repr(html=is_interactive_env()))  # noqa: T201

Subdomains

Called By

Frequently Asked Questions

What does pretty_print() do?
pretty_print() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/string.py.
Where is pretty_print() defined?
pretty_print() is defined in libs/core/langchain_core/prompts/string.py at line 369.
What does pretty_print() call?
pretty_print() calls 2 function(s): pretty_print, pretty_repr.
What calls pretty_print()?
pretty_print() 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