conftest_store.py — langchain Source File
Architecture documentation for conftest_store.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 07ae76a3_cdea_0c99_753d_786807ef4b62["conftest_store.py"] cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7["collections.abc"] 07ae76a3_cdea_0c99_753d_786807ef4b62 --> cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7 69e1d8cc_6173_dcd0_bfdf_2132d8e1ce56["contextlib"] 07ae76a3_cdea_0c99_753d_786807ef4b62 --> 69e1d8cc_6173_dcd0_bfdf_2132d8e1ce56 8b8be3aa_f5da_ad38_c12d_3cc292ffab59["langgraph.store.base"] 07ae76a3_cdea_0c99_753d_786807ef4b62 --> 8b8be3aa_f5da_ad38_c12d_3cc292ffab59 0ce19084_69d6_888b_8608_f4049087d337["langgraph.store.memory"] 07ae76a3_cdea_0c99_753d_786807ef4b62 --> 0ce19084_69d6_888b_8608_f4049087d337 style 07ae76a3_cdea_0c99_753d_786807ef4b62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from collections.abc import AsyncIterator, Iterator
from contextlib import asynccontextmanager, contextmanager
from langgraph.store.base import BaseStore
from langgraph.store.memory import InMemoryStore
@contextmanager
def _store_memory() -> Iterator[BaseStore]:
store = InMemoryStore()
yield store
@asynccontextmanager
async def _store_memory_aio() -> AsyncIterator[BaseStore]:
store = InMemoryStore()
yield store
# Placeholder functions for other store types that aren't available
@contextmanager
def _store_postgres() -> Iterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
@contextmanager
def _store_postgres_pipe() -> Iterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
@contextmanager
def _store_postgres_pool() -> Iterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
@asynccontextmanager
async def _store_postgres_aio() -> AsyncIterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
@asynccontextmanager
async def _store_postgres_aio_pipe() -> AsyncIterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
@asynccontextmanager
async def _store_postgres_aio_pool() -> AsyncIterator[BaseStore]:
# Fallback to memory for now
store = InMemoryStore()
yield store
Domain
Subdomains
Functions
Dependencies
- collections.abc
- contextlib
- langgraph.store.base
- langgraph.store.memory
Source
Frequently Asked Questions
What does conftest_store.py do?
conftest_store.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in conftest_store.py?
conftest_store.py defines 8 function(s): _store_memory, _store_memory_aio, _store_postgres, _store_postgres_aio, _store_postgres_aio_pipe, _store_postgres_aio_pool, _store_postgres_pipe, _store_postgres_pool.
What does conftest_store.py depend on?
conftest_store.py imports 4 module(s): collections.abc, contextlib, langgraph.store.base, langgraph.store.memory.
Where is conftest_store.py in the architecture?
conftest_store.py is located at libs/langchain_v1/tests/unit_tests/agents/conftest_store.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/langchain_v1/tests/unit_tests/agents).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free