amset() — langchain Function Reference
Architecture documentation for the amset() function in encoder_backed.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bd24b34c_3d2b_3a51_25b5_d7a011e75003["amset()"] 735a81c9_6f78_0114_db70_cd34c4599651["EncoderBackedStore"] bd24b34c_3d2b_3a51_25b5_d7a011e75003 -->|defined in| 735a81c9_6f78_0114_db70_cd34c4599651 style bd24b34c_3d2b_3a51_25b5_d7a011e75003 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/storage/encoder_backed.py lines 118–128
async def amset(self, key_value_pairs: Sequence[tuple[K, V]]) -> None:
"""Async set the values for the given keys.
Args:
key_value_pairs: A sequence of key-value pairs.
"""
encoded_pairs = [
(self.key_encoder(key), self.value_serializer(value))
for key, value in key_value_pairs
]
await self.store.amset(encoded_pairs)
Domain
Subdomains
Source
Frequently Asked Questions
What does amset() do?
amset() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/storage/encoder_backed.py.
Where is amset() defined?
amset() is defined in libs/langchain/langchain_classic/storage/encoder_backed.py at line 118.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free