Skip to content

FloTorch LangChain Plugin Overview

The FloTorch LangChain Plugin integrates FloTorch-configured agents, memory, and sessions with LangChain. It supports custom tools and dual-memory setups.

Exports:

  • FlotorchLangChainAgent – builds a LangChain agent from Console config
  • FlotorchLangChainLLM – LangChain BaseChatModel backed by FloTorch
  • FlotorchLangChainSession – short-term session memory
  • FlotorchLangChainMemory – long-term memory

Terminal window
pip install flotorch[langchain]

Terminal window
export FLOTORCH_API_KEY="<your_api_key>"
export FLOTORCH_BASE_URL="https://gateway.flotorch.cloud"

  • See Agent, LLM, Memory, and Session pages