Framework Adapters
AG-Kit provides framework-specific adapter packages that enable integration with popular agent frameworks. Each adapter package is independently installable, allowing you to include only the frameworks you need in your project.Available Adapters
LangGraph Adapter
LangGraph workflow integration with state management and checkpointing
LangChain Adapter
LangChain createAgent runtime integration
LlamaIndex Adapter
LlamaIndex TS workflow system integration
Mastra Adapter
Mastra Agent integration for AG-Kit
Installation
Each adapter requires the core@ag-kit/agents package plus the specific adapter:
Design Philosophy
The adapter packages are designed to:- Reduce bundle size - Install only the frameworks you need
- Independent versioning - Each adapter has its own version lifecycle
- Clear dependencies - Explicit framework dependencies per adapter
- Easy migration - Consistent API with previous subpath exports
Core Package
The@ag-kit/agents core package provides:
- Core Agent implementation
- Abstract interfaces (
AbstractAgent,AgentConfig) - AG-UI integration
- Storage functionality (memory, long-term memory)
- Model providers