Agent-Based Infrastructure Core - Runtime and CLI
Project description
ABI-Core ๐ค
ABI-Core-AI โ The foundation for building Agent-Based Infrastructure (ABI) โ a new architectural paradigm where intelligent agents collaborate through semantic context, policy-driven governance, and modular orchestration.
Agent-Based Infrastructure Core โ A comprehensive framework for building, deploying, and managing AI agent systems with semantic layers, orchestration, and security policies.
๐งญ Core Philosophy
ABI-Core is built on three fundamental principles:
- Semantic Interoperability โ Agents must share meaning, not just data.
- Distributed Intelligence โ No single model owns the truth; collaboration is the substrate.
- Governed Autonomy โ Security and compliance must evolve as fast as intelligence itself.
โ ๏ธ Beta Release: This is a beta version. APIs may change and some features are experimental.
๐ Quick Start
Installation
pip install abi-core-ai
Create Your First Project
# Create a new ABI project
abi-core-ai create project my-ai-system
# Navigate to your project
cd my-ai-system
# Create an agent
abi-core-ai create agent my-agent
# Run your project
docker-compose up
๐ฏ What is ABI-Core?
ABI-Core-AI is a production-ready framework for building Agent-Based Infrastructure systems that combine:
- ๐ค AI Agents โ LangChain-powered agents with A2A (Agent-to-Agent) communication
- ๐ง Semantic Layer โ Vector embeddings and distributed knowledge management
- ๐ Security โ OPA-based policy enforcement and access control
- ๐ Web Interfaces โ FastAPI-based REST APIs and real-time dashboards
- ๐ฆ Containerization โ Docker-ready deployments with orchestration
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ AI Agents โโโโโบโ Semantic Layer โโโโโบโ Guardian โ
โ โ โ โ โ Security โ
โ โข LangChain โ โ โข Vector DB โ โ โข OPA Policies โ
โ โข A2A Protocol โ โ โข Embeddings โ โ โข Access Controlโ
โ โข Custom Logic โ โ โข Knowledge โ โ โข Monitoring โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโ
โ Web Interface โ
โ โ
โ โข FastAPI โ
โ โข Real-time UI โ
โ โข Monitoring โ
โโโโโโโโโโโโโโโโโโโ
๐ Features
๐ค Agent System
- Multi-Agent Architecture โ Create specialized agents for different tasks
- A2A Communication โ Agents can communicate and collaborate
- LangChain Integration โ Leverage the full LangChain ecosystem
- Custom Tools โ Extend agents with domain-specific capabilities
๐ง Semantic Layer
- Vector Storage โ Weaviate integration for semantic search
- Embedding Management โ Automatic text-to-vector conversion
- Knowledge Graphs โ NetworkX-based relationship modeling
- Context Awareness โ Agents understand semantic relationships
๐ Security & Governance
- Policy Engine โ Open Policy Agent (OPA) integration
- Access Control โ Fine-grained permissions and roles
- Audit Logging โ Complete activity tracking
- Compliance โ Built-in security best practices
๐ Web & APIs
- REST APIs โ FastAPI-based service endpoints
- Real-time Updates โ WebSocket support for live data
- Admin Dashboard โ Monitor and manage your agent system
- Custom UIs โ Build domain-specific interfaces
๐ ๏ธ CLI Commands
Project Management
abi-core-ai create project <name>
abi-core-ai status
abi-core-ai run
Agent Development
abi-core-ai create agent <name>
abi-core-ai info agents
abi-core-ai agent <name> status
Services
abi-core-ai create service semantic-layer
abi-core-ai create service guardian
๐ Project Structure
When you create a new project, you get:
my-project/
โโโ agents/ # Your AI agents
โ โโโ my-agent/
โ โโโ agent.py # Agent implementation
โ โโโ main.py # Entry point
โ โโโ models.py # Data models
โโโ services/ # Supporting services
โ โโโ semantic-layer/ # Vector DB & embeddings
โ โโโ guardian/ # Security & policies
โโโ config/ # Configuration
โ โโโ config.py
โโโ docker-compose.yml # Container orchestration
โโโ README.md # Project documentation
๐ง Configuration
ABI-Core uses environment variables and YAML configuration files:
# .abi/runtime.yaml
agents:
my-agent:
model: "llama3.2:3b"
port: 8000
semantic_layer:
provider: "weaviate"
host: "localhost:8080"
security:
opa_enabled: true
policies_path: "./policies"
๐ Deployment
Docker (Recommended)
docker-compose up --build
docker-compose up --scale my-agent=3
Kubernetes
abi-core-ai deploy kubernetes
kubectl apply -f ./k8s/
๐งช Examples
Simple Agent
from abi_core_ai.agent.agent import AbiAgent
from abi_core_ai.common.utils import abi_logging
class MyAgent(AbiAgent):
def __init__(self):
super().__init__(
agent_name='my-agent',
description='A helpful AI assistant'
)
async def stream(self, query: str, context_id: str, task_id: str):
abi_logging(f"Processing: {query}")
response = await self.llm.ainvoke(query)
yield {
'content': response.content,
'response_type': 'text',
'is_task_completed': True
}
Agent Communication
await self.send_message(
target_agent="agent-b",
message="Process this data",
data={"items": [1, 2, 3]}
)
๐ Documentation
๐ค Contributing
We welcome contributions! This is a beta release, so your feedback is especially valuable.
Development Setup
git clone https://github.com/Joselo-zn/abi-core-ai
cd abi-core-ai
uv sync --dev
Running Tests
uv run pytest
๐ License
Apache 2.0 License โ see LICENSE for details.
๐ Support
- Issues โ GitHub Issues
- Discussions โ GitHub Discussions
- Email โ jl.mrtz@gmail.com
๐บ๏ธ Roadmap
| Milestone | Description | Status |
|---|---|---|
| v0.2.0 | Enhanced agent orchestration | ๐ In progress |
| v0.3.0 | Advanced semantic search | ๐ง Planned |
| v0.4.0 | Multi-cloud deployment | ๐งฉ Planned |
| v1.0.0 | Production-ready stable release | ๐ Target Q3 2026 |
Built with โค๏ธ by Josรฉ Luis Martรญnez
Creator of ABI (Agent-Based Infrastructure) โ redefining how intelligent systems interconnect.
โจ From Curiosity to Creation: A Personal Note
I first saw a computer in 1995. My dad had received a Windows 3.11 machine as payment for a job. I was fascinated. At the time, I wanted to study robotics โ but when I touched that machine, everything changed.
I didn't understand what the Internet was, and I had no idea where to goโฆ but even in that confusion, I felt something big. When I wrote my first Visual C++ program in 1999, I felt like a hacker. When I built my first web page, full of GIFs, I was flying.
Nobody taught me. I just read manuals. And now, years later, that journey continues โ not just as a coder, but as the creator of ABI. This is for the kids like me, then and now.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abi_core_ai-0.1.0b4.tar.gz.
File metadata
- Download URL: abi_core_ai-0.1.0b4.tar.gz
- Upload date:
- Size: 102.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1307633015a2a8e6d5c969eaa53ce6308600287c54cdbbc0b5e7895c1abf83df
|
|
| MD5 |
aa37b04d7d88bfbbabd0e47122ef01e5
|
|
| BLAKE2b-256 |
0c7d9cbbe45a705d6739fe10b82afe227781c3afa1f5aae9a4d112c423a848d0
|
File details
Details for the file abi_core_ai-0.1.0b4-py3-none-any.whl.
File metadata
- Download URL: abi_core_ai-0.1.0b4-py3-none-any.whl
- Upload date:
- Size: 127.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
987d3fc464af4352ea990850158e31b647806594530047399ef8f2f4957f06e9
|
|
| MD5 |
4c4756e30696fbf62f23c5cdb2f7cd9d
|
|
| BLAKE2b-256 |
33aa47f930856567d9073f7a79371c13acdcf879fc39acde27f817ac322ba7ac
|