aegiscore-py
Official, zero-dependency Python client for AegisCore — the Deterministic Zero-Trust Policy & Cryptographic WORM Audit Gateway for AI Agents.
Installation
pip install aegiscore-ai
Note: aegiscore-ai is 100% zero-dependency, implemented purely using Python's standard library (urllib.request, json, dataclasses).
Quick Start
1. Direct Tool Proposal Dispatch
from aegiscore import AegisGateway
gateway = AegisGateway("http://localhost:8080")
# Dispatch tool intent: evaluates schema, invariants, tokenizes PII, logs WORM audit
result = gateway.dispatch(
tool="transfer_funds",
arguments={"amount": 2500, "recipient": "ACC-PAYROLL"},
session_id="sess_01"
)
if result.is_success:
print("Action Approved & Executed:", result.output)
elif result.requires_hitl:
print(f"Action escalated to human approval. Ticket ID: {result.ticket_id}")
else:
print(f"Action BLOCKED: {result.reason}")
for violation in result.violations:
print(f" - {violation}")
2. LangGraph & LangChain Integration
from aegiscore import AegisGateway
from aegiscore.integrations import AegisLangGraphWrapper
gateway = AegisGateway("http://localhost:8080")
wrapper = AegisLangGraphWrapper(gateway=gateway)
# Wrap any native function or tool
@wrapper.wrap_tool("query_database", raw_query_func)
def safe_query_database(query: str):
return raw_query_func(query)
# Calls are intercepted and verified against policy invariants before invocation
safe_query_database(query="SELECT * FROM users")
3. OpenAI Function Call Interception
from aegiscore import AegisGateway
from aegiscore.integrations import AegisOpenAIInterceptor
gateway = AegisGateway("http://localhost:8080")
interceptor = AegisOpenAIInterceptor(gateway=gateway)
# In your chat completion loop:
for tool_call in response.choices[0].message.tool_calls:
# Evaluates policy and returns tool response dict formatted for OpenAI
tool_message = interceptor.intercept_tool_call(tool_call)
messages.append(tool_message)
4. Human-in-the-Loop (HITL) Resolution
# Check pending ticket and resolve with cryptographic signature
gateway.resolve_hitl(
ticket_id="ticket-12345",
decision="APPROVED",
signature="sig-supervisor-ed25519"
)
5. Forensic Cryptographic Ledger Verification
# Verifies the tamper-evident WORM Merkle chain
audit = gateway.verify_audit_integrity()
print(f"Ledger Valid: {audit['isValid']}")
License
Apache-2.0
Metadata
Release files for aegiscore-ai 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aegiscore_ai-0.1.1.tar.gz | 10.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aegiscore_ai-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / aegiscore_ai-0.1.1.tar.gz
| Download URL | aegiscore_ai-0.1.1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
753bd9ff5cce089dc27187c6e159228be1ec5e2c890c5de698134caf140bbcca
|
|
BLAKE2b-256 checksum How to use checksums |
ead14d4b0e955fe9cf47a4ec3e577ac3c55dc0d282e89365811291c1ea347413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / aegiscore_ai-0.1.1-py3-none-any.whl
| Download URL | aegiscore_ai-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fa7a929c706daee72082b5d1b3e62a253e813680a3cd3e7160bd5c79f48a656
|
|
BLAKE2b-256 checksum How to use checksums |
5c2112d7c7d9390bdd14d45785f17aef2e9fef7084622187d89157c4d5cf61b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for aegiscore-ai 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.