Home / Function/ get_lc_namespace() — langchain Function Reference

get_lc_namespace() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  114cc3be_4177_d553_18c3_035fad3ef785["get_lc_namespace()"]
  dc7b97b4_cc8c_6ff7_fc8f_16fbbcf08799["BaseMessagePromptTemplate"]
  114cc3be_4177_d553_18c3_035fad3ef785 -->|defined in| dc7b97b4_cc8c_6ff7_fc8f_16fbbcf08799
  style 114cc3be_4177_d553_18c3_035fad3ef785 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/message.py lines 25–31

    def get_lc_namespace(cls) -> list[str]:
        """Get the namespace of the LangChain object.

        Returns:
            `["langchain", "prompts", "chat"]`
        """
        return ["langchain", "prompts", "chat"]

Domain

Subdomains

Frequently Asked Questions

What does get_lc_namespace() do?
get_lc_namespace() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/message.py.
Where is get_lc_namespace() defined?
get_lc_namespace() is defined in libs/core/langchain_core/prompts/message.py at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free