Python integrations
Output that fits your existing stack.
Drop LLMSlim into a LangChain, LlamaIndex or Haystack pipeline, let it fit a gptme, Hermes Agent or Pydantic AI history into a token budget, or pass its output straight into the model client you already use. Provider calls stay in your application.
LLM Provider
- SarvamStartup Program memberAdaptive context planning meets Sarvam’s Indic language models and language tools.
- OpenAIPython integrationCompress Python application context before an OpenAI SDK request.
- AnthropicPython integrationPrepare long Python-managed context before an Anthropic SDK request.
- Google GeminiPython integrationCompress retrieved Python context before a Gemini SDK request.
Framework
- LangChainDocument compressorA BaseDocumentCompressor for ContextualCompressionRetriever. Use it where you would use LLMLinguaCompressor.
- LlamaIndexNode postprocessorA BaseNodePostprocessor for query engines. Use it where you would use LongLLMLinguaPostprocessor.
- HaystackPipeline componentA Haystack 2.x and 3 component that compresses retrieved documents between the retriever and the prompt builder.
- gptmeContext providerA gptme context provider for automatic compaction and /compact trim. Older tool output is compressed instead of being replaced by a stub.
- Hermes AgentContext engineA Hermes Agent context engine that compresses older turns locally instead of asking a model for a summary, so prompt caches keep hitting.
- Pydantic AIHistory processorA Pydantic AI history processor that fits the message history into a token budget before every model request. Tool calls and returns stay paired.
- Vercel AI SDKMemory toolsLong-term memory for AI SDK agents as tools, with no LLM writing your memory and nothing injected into the prompt.
- MastraMemory toolsLong-term memory for Mastra agents as tools and an output processor, with no LLM writing your memory and nothing injected into the prompt.
Local & Edge
- MCP: Claude, Cursor and moreMCP serverLong-term memory for Claude Desktop, Claude Code, Cursor and any MCP client, with no model in the loop.
- Claude CodeCoding agent proxyRun Claude Code through a local proxy that shrinks long tool output once and resends the same bytes every turn, so prompt caching and thinking keep working.
Backend Services
- ZohoEnterprise contextBounded, read-only CRM and WorkDrive context for planning.
- MongoDBMemory & retrievalExplicit persistent context, Atlas retrieval, and hosted quota accounting.
- ExaWeb search contextLive web search results as bounded, untrusted context for planning.
- Neo4jGraph memoryTemporal agent memory where newer facts supersede old ones, with an audit trail.
