check_input_key() — langchain Function Reference
Architecture documentation for the check_input_key() function in combined.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b56e91a8_d5f7_4641_02fb_dee7ba998eee["check_input_key()"] e7b5b56d_2836_1021_bdd4_75c127a0aa35["CombinedMemory"] b56e91a8_d5f7_4641_02fb_dee7ba998eee -->|defined in| e7b5b56d_2836_1021_bdd4_75c127a0aa35 style b56e91a8_d5f7_4641_02fb_dee7ba998eee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/memory/combined.py lines 37–47
def check_input_key(cls, value: list[BaseMemory]) -> list[BaseMemory]:
"""Check that if memories are of type BaseChatMemory that input keys exist."""
for val in value:
if isinstance(val, BaseChatMemory) and val.input_key is None:
warnings.warn(
"When using CombinedMemory, "
"input keys should be so the input is known. "
f" Was not set on {val}",
stacklevel=5,
)
return value
Domain
Subdomains
Source
Frequently Asked Questions
What does check_input_key() do?
check_input_key() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/memory/combined.py.
Where is check_input_key() defined?
check_input_key() is defined in libs/langchain/langchain_classic/memory/combined.py at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free