AmritaCore is a lightweight agent framework with infrastructure-level positioning, serving as the foundational building block for intelligent agent development. AmritaCore is designed to be interactive-first, enabling real-time, responsive agent applications through its native async streaming architecture. Think of it as providing the essential "operating system" capabilities for AI agents – offering core primitives and abstractions that enable robust, production-ready agent applications without the overhead of heavyweight frameworks.
AmritaCore is not a replacement for existing frameworks like LangChain or LlamaIndex. Instead, it is a lightweight, infrastructure-focused agent framework designed to provide the essential building blocks for AI agent development. Built with modern Python technologies, it delivers fundamental components needed for AI-powered applications with features like event-driven architecture, tool integration, and multi-modal support – all while maintaining minimal dependencies and maximum performance.
The mission of AmritaCore is to provide a lightweight yet powerful foundation for agent development that prioritizes simplicity, performance, and flexibility. Our core value propositions include:
- Stream-based Design: All message outputs are designed as asynchronous streams for real-time responses
- Security: Built-in cookie security detection to ensure session safety
- Vendor Agnostic: Data types and conversation management are independent of specific providers, offering high portability
- Extensibility: Integrated MCP client in extension mechanisms for enhanced system scalability
- Every is a Stream: All message outputs are asynchronous stream-based designs supporting real-time responses
- Cookie Security Detection: Built-in cookie security detection functionality to protect session security
- Provider Independent Mechanism: Data types and conversation management are independent of specific vendors, with high portability
- MCP Client Support: Extension mechanisms integrate MCP clients, enhancing system expansion capabilities
- Event-Driven Architecture: Comprehensive event system for flexible and reactive agent behavior
- Tool Integration Framework: Robust system for integrating external tools and services
- Advanced Memory Management: Sophisticated context handling with automatic summarization and token optimization
- High-Performance: Lightweight and efficient, with high performance.
Please view Docs for more information.
To quickly start using AmritaCore, check out the examples in the demo directory. The basic example demonstrates how to initialize the core, configure settings, and run a simple chat session with the AI assistant.
We welcome contributions! Please see our contribution guidelines for more information.
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of AmritaCore are released under the MIT License (Although the past versions are released under the AGPLv3 License, when this readme is created, we will release all versions under the MIT License).
- CONTRIBUTING.md - Contribution guidelines
- CODE_OF_CONDUCT.md - Code of conduct
- ZH-CN.md
- EN-US.md
Python 3.14+ Supporting: we are not sure if it will work well on Python 3.14+(No GIL Version).Anthropic Supporting: It's now only supports Completion, function calling is not supported yet.
