Home / Function/ _prompt_type() — langchain Function Reference

_prompt_type() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  31aa1efb_a6d7_52a2_6789_023efffeea80["_prompt_type()"]
  6be4a9a5_5fe4_e64f_c374_e63767576bf6["ChatPromptTemplate"]
  31aa1efb_a6d7_52a2_6789_023efffeea80 -->|defined in| 6be4a9a5_5fe4_e64f_c374_e63767576bf6
  style 31aa1efb_a6d7_52a2_6789_023efffeea80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/chat.py lines 1304–1306

    def _prompt_type(self) -> str:
        """Name of prompt type. Used for serialization."""
        return "chat"

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free