get_input_schema() — langchain Function Reference
Architecture documentation for the get_input_schema() function in prompt.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 54e1afa0_d939_cd1a_1097_5beaa9428528["get_input_schema()"] b38b43f8_5be7_5b6c_b01e_36ed41e70435["PromptTemplate"] 54e1afa0_d939_cd1a_1097_5beaa9428528 -->|defined in| b38b43f8_5be7_5b6c_b01e_36ed41e70435 style 54e1afa0_d939_cd1a_1097_5beaa9428528 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/prompts/prompt.py lines 128–140
def get_input_schema(self, config: RunnableConfig | None = None) -> type[BaseModel]:
"""Get the input schema for the prompt.
Args:
config: The runnable configuration.
Returns:
The input schema for the prompt.
"""
if self.template_format != "mustache":
return super().get_input_schema(config)
return mustache_schema(self.template)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does get_input_schema() do?
get_input_schema() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/prompt.py.
Where is get_input_schema() defined?
get_input_schema() is defined in libs/core/langchain_core/prompts/prompt.py at line 128.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free