Skip to main content

Agent-Based Infrastructure Core - Runtime and CLI

Project description

ABI-Core ๐Ÿค–

PyPI version Python License

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:

  1. Semantic Interoperability โ€” Agents must share meaning, not just data.
  2. Distributed Intelligence โ€” No single model owns the truth; collaboration is the substrate.
  3. 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


๐Ÿ—บ๏ธ 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

abi_core_ai-0.1.0b4.tar.gz (102.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abi_core_ai-0.1.0b4-py3-none-any.whl (127.2 kB view details)

Uploaded Python 3

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

Hashes for abi_core_ai-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 1307633015a2a8e6d5c969eaa53ce6308600287c54cdbbc0b5e7895c1abf83df
MD5 aa37b04d7d88bfbbabd0e47122ef01e5
BLAKE2b-256 0c7d9cbbe45a705d6739fe10b82afe227781c3afa1f5aae9a4d112c423a848d0

See more details on using hashes here.

File details

Details for the file abi_core_ai-0.1.0b4-py3-none-any.whl.

File metadata

File hashes

Hashes for abi_core_ai-0.1.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 987d3fc464af4352ea990850158e31b647806594530047399ef8f2f4957f06e9
MD5 4c4756e30696fbf62f23c5cdb2f7cd9d
BLAKE2b-256 33aa47f930856567d9073f7a79371c13acdcf879fc39acde27f817ac322ba7ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page