Observed since 21 Oct, 09:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Aibaba AI Core library for building AI Agents
pip install aibaba_ai_core
Aibaba AI Core provides fundamental building blocks that serve as the foundation for the entire Aibaba AI ecosystem.
These foundational components are intentionally kept minimal and modular. They include essential abstractions for various components such as language models, document processing, embedding systems, vector databases, retrieval mechanisms, and more.
By establishing these standard interfaces, any provider can implement them and seamlessly integrate with the broader Aibaba AI ecosystem.
For comprehensive documentation, visit the API reference.
Runnables form the backbone of Aibaba AI Core. This interface is implemented by most components, providing:
Learn more in the runnable documentation. Key components implementing this interface include: LLMs, Chat Models, Prompts, Retrievers, Tools, and Output Parsers.
Two approaches to using Aibaba AI Core:
Direct (Imperative): Straight function calls like model.invoke(...)
Compositional (Declarative): Using Aibaba AI Expression Language (LCEL)
Hybrid: Combine both approaches by including custom functions within LCEL sequences
| Capability | Direct Method | Compositional Method |
|---|---|---|
| Code Style | Standard Python | LCEL |
| Tracing | ✅ – Built-in | ✅ – Built-in |
| Parallel | ✅ – Via threads/coroutines | ✅ – Automatic |
| Streaming | ✅ – Through yield | ✅ – Automatic |
| Async | ✅ – Using async/await | ✅ – Automatic |
Aibaba AI Expression Language (LCEL) is a declarative approach for combining Aibaba AI Core components into sequences or directed acyclic graphs (DAGs), addressing common LLM integration patterns.
LCEL sequences are automatically optimized for execution, featuring parallel processing, streaming capabilities, tracing, and asynchronous operations.
Explore more in the LCEL documentation.
For complex workflows requiring cycles or recursion, consider LangGraph.
Current version: 0.1.x
As the foundational layer of Aibaba AI, we maintain strict version control with advance notifications of changes. The aibaba_ai_core.beta module is exempt from this policy to allow rapid innovation.
Version increment guidelines:
Minor versions (0.x.0):
aibaba_ai_core.betaPatch versions (0.0.x):
aibaba_ai_core.beta modificationsWe actively encourage contributions to this open-source project, whether through new features, infrastructure improvements, or documentation enhancements.
See our Contributing Guide for details.
As the foundation for the entire Aibaba AI ecosystem, building on Aibaba AI Core offers several advantages:
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.33 | 26 Jan 2025 | 7 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d94111c8a5060544e3c081ed65ae1a318bb3b5793e0063202e2b227382171456