About
apcore is an AI-Perceivable module standard that makes every interface naturally perceivable and understandable by AI through enforced Schema definitions and behavioral annotations. It ensures every module is inherently understandable by AI through enforced schemas, behavioral annotations, and rich intent metadata. The framework features a secured execution lifecycle with a unified APCore client, built-in Event System, and pattern-based ACL. It includes a phase-based Approval System for human-in-the-loop enforcement and a streaming execution protocol for real-time interactions. Built with enterprise-grade observability (ErrorHistory, UsageCollector) and system modules, apcore enables seamless cross-language consistency between Python, TypeScript, and Rust.
Features
Get Started
Python Implementation
Python reference implementation of the apcore specification.
pip install apcorefrom apcore import APCore
client = APCore()
@client.module(id="math.add", description="Add two numbers")
def add(a: int, b: int) -> dict:
return {"sum": a + b}
result = client.call("math.add", {"a": 10, "b": 5})