Home / Function/ langchain_core() — langchain Function Reference

langchain_core() — langchain Function Reference

Architecture documentation for the langchain_core() function in __init__.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  520336d1_4f26_f1bd_0f08_e396192008c4["langchain_core()"]
  4480eb3f_7f4f_a7f7_0adb_e427ac3adfec["__init__.py"]
  520336d1_4f26_f1bd_0f08_e396192008c4 -->|defined in| 4480eb3f_7f4f_a7f7_0adb_e427ac3adfec
  style 520336d1_4f26_f1bd_0f08_e396192008c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/__init__.py lines 12–42

    from langchain_core.prompts.base import (
        BasePromptTemplate,
        aformat_document,
        format_document,
    )
    from langchain_core.prompts.chat import (
        AIMessagePromptTemplate,
        BaseChatPromptTemplate,
        ChatMessagePromptTemplate,
        ChatPromptTemplate,
        HumanMessagePromptTemplate,
        MessagesPlaceholder,
        SystemMessagePromptTemplate,
    )
    from langchain_core.prompts.dict import DictPromptTemplate
    from langchain_core.prompts.few_shot import (
        FewShotChatMessagePromptTemplate,
        FewShotPromptTemplate,
    )
    from langchain_core.prompts.few_shot_with_templates import (
        FewShotPromptWithTemplates,
    )
    from langchain_core.prompts.loading import load_prompt
    from langchain_core.prompts.prompt import PromptTemplate
    from langchain_core.prompts.string import (
        StringPromptTemplate,
        check_valid_template,
        get_template_variables,
        jinja2_formatter,
        validate_jinja2,
    )

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free