Skip to main content
Integrating sovseal with LangChain gives your agents persistent, local-first memory without changing your chain architecture. store/recall on sovseal-sdk (Python) and @sovseal/sdk (Node) talk to the local ONEBRAIN engine over framed IPC — 0 network round-trips, so recall latency stays under 10 ms. Wrap them as a LangChain tool in Python, or as a custom BaseChatMemory subclass in TypeScript.

Install dependencies

Expose store/recall as LangChain tools

The example below wraps sovseal-sdk’s AgentStateClient.store()/.recall() directly as two @tool-decorated functions and runs them inside an OpenAI functions agent. No MCP server or third-party client wrapper is needed — the SDK talks to the local native host itself.
agent.py
store/recall require the native host launcher at ~/.sovseal/native-host/run.sh. Run npx -y @sovseal/mcp-server once to provision it — see SDK Reference: Overview.