input_variables() — langchain Function Reference
Architecture documentation for the input_variables() function in dict.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a5f1df93_8834_6c58_c037_0fc392a9835a["input_variables()"] 99b61388_a110_30d7_e5b6_3ec6b66bc790["DictPromptTemplate"] a5f1df93_8834_6c58_c037_0fc392a9835a -->|defined in| 99b61388_a110_30d7_e5b6_3ec6b66bc790 ba3d4a7e_fdfb_0cd0_f5dc_63e1eaf33b20["_get_input_variables()"] a5f1df93_8834_6c58_c037_0fc392a9835a -->|calls| ba3d4a7e_fdfb_0cd0_f5dc_63e1eaf33b20 style a5f1df93_8834_6c58_c037_0fc392a9835a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/prompts/dict.py lines 30–32
def input_variables(self) -> list[str]:
"""Template input variables."""
return _get_input_variables(self.template, self.template_format)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does input_variables() do?
input_variables() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/dict.py.
Where is input_variables() defined?
input_variables() is defined in libs/core/langchain_core/prompts/dict.py at line 30.
What does input_variables() call?
input_variables() calls 1 function(s): _get_input_variables.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free