Skip to content

Add Async Context Managers to NullDriftLangGraphStore #95

@CodNoob100

Description

@CodNoob100

The LangGraph store (NullDriftLangGraphStore in nulldrift_agents.py) uses httpx.AsyncClient(), but it never explicitly closes the client when the script finishes, which can lead to unclosed socket warnings. Implement __aenter__ and __aexit__ asynchronous context managers so the store can be safely used inside an async with block, automatically calling await self.client.aclose().

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededpythonPull requests that update python code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions