base.py — langchain Source File
Architecture documentation for base.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 47276f46_caeb_aefd_a61e_746ff8a04e6d["base.py"] b9f9a99f_aaea_6efd_1322_fc2c11bdc4b4["langchain_core.prompt_values"] 47276f46_caeb_aefd_a61e_746ff8a04e6d --> b9f9a99f_aaea_6efd_1322_fc2c11bdc4b4 435e49bf_bb2e_2016_ead7_0afb9d57ad71["langchain_core.prompts"] 47276f46_caeb_aefd_a61e_746ff8a04e6d --> 435e49bf_bb2e_2016_ead7_0afb9d57ad71 63c0f54d_151f_9725_3a6b_4790a2ff15b4["langchain_core.prompts.string"] 47276f46_caeb_aefd_a61e_746ff8a04e6d --> 63c0f54d_151f_9725_3a6b_4790a2ff15b4 style 47276f46_caeb_aefd_a61e_746ff8a04e6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_core.prompt_values import StringPromptValue
from langchain_core.prompts import (
BasePromptTemplate,
StringPromptTemplate,
check_valid_template,
get_template_variables,
jinja2_formatter,
validate_jinja2,
)
from langchain_core.prompts.string import _get_jinja2_variables_from_template
__all__ = [
"BasePromptTemplate",
"StringPromptTemplate",
"StringPromptValue",
"_get_jinja2_variables_from_template",
"check_valid_template",
"get_template_variables",
"jinja2_formatter",
"validate_jinja2",
]
Dependencies
- langchain_core.prompt_values
- langchain_core.prompts
- langchain_core.prompts.string
Source
Frequently Asked Questions
What does base.py do?
base.py is a source file in the langchain codebase, written in python.
What does base.py depend on?
base.py imports 3 module(s): langchain_core.prompt_values, langchain_core.prompts, langchain_core.prompts.string.
Where is base.py in the architecture?
base.py is located at libs/langchain/langchain_classic/prompts/base.py (directory: libs/langchain/langchain_classic/prompts).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free