mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
- Add HeadroomChatModel wrapper with auto provider detection (OpenAI, Anthropic, Google) - Add HeadroomChatMessageHistory for automatic conversation compression - Add HeadroomDocumentCompressor for retriever integration - Add wrap_tools_with_headroom() for agent tool output compression - Add async support (ainvoke, astream) - Add LangSmith integration for observability - Restructure integrations package into nested langchain/ and mcp/ subpackages - Fix Pydantic v2 deprecation warning - Add comprehensive docs/langchain.md guide with real-world examples - Update README with LangChain quickstart and framework integrations Bump version to 0.2.3
2.1 KiB
2.1 KiB
Headroom Documentation
Welcome to the Headroom documentation.
Getting Started
| Guide | Description |
|---|---|
| Quickstart | 5-minute setup |
| SDK Guide | Python SDK usage |
| Proxy Guide | Proxy server deployment |
Framework Integrations
| Framework | Description |
|---|---|
| LangChain | Chat models, memory, retrievers, agents, streaming |
| MCP | See CCR Guide for tool compression |
Core Concepts
| Topic | Description |
|---|---|
| Transforms | How compression works |
| CCR | Reversible compression architecture |
| Configuration | All configuration options |
Advanced
| Topic | Description |
|---|---|
| Text Compression | Opt-in utilities for search/logs |
| LLMLingua | ML-based compression |
| Metrics | Monitoring and observability |
| Errors | Error handling |
Reference
| Topic | Description |
|---|---|
| API Reference | Complete API docs |
| Architecture | Internal design |
| Troubleshooting | Common issues |
Overview
Headroom is the Context Optimization Layer for LLM applications. It reduces your LLM costs by 50-90% through intelligent context compression.
How It Works
- SmartCrusher — Compresses JSON tool outputs, keeping errors, anomalies, and relevant items
- CacheAligner — Stabilizes message prefixes so provider caching works
- RollingWindow — Manages context limits without breaking tool call pairs
- CCR — Caches original data so compression is reversible
Safety Guarantees
- Never removes human content
- Never breaks tool call ordering
- Parse failures pass through unchanged
- LLM can always retrieve original data
Getting Help
- GitHub Issues — Bug reports
- GitHub Discussions — Questions