LangChain Plugin: Memory
Overview
Section titled “Overview”FlotorchLangChainMemory
is a LangChain BaseMemory
that persists turns to FloTorch Memory and exposes a single history string for prompts.
from flotorch.langchain.memory import FlotorchLangChainMemory
API_KEY = "<your_api_key>"BASE_URL = "https://gateway.flotorch.cloud"PROVIDER = "<flotorch_memory_provider>"USER_ID = "user_123"APP_ID = "app_123"
external_memory = FlotorchLangChainMemory( name=PROVIDER, api_key=API_KEY, base_url=BASE_URL, user_id=USER_ID, app_id=APP_ID,)
- Memory key is
longterm_history
- Ensure provider is configured in FloTorch Console