Tamper-proof memory, chain-of-custody, and OS-grade runtime for AI agents
Project description
connector-oss — Python SDK
Tamper-proof memory, chain-of-custody, and OS-grade runtime for AI agents. Native Rust kernel via PyO3 — ~140 methods, zero Python overhead.
Install
pip install connector-oss
Prebuilt wheels available for:
- Linux x86_64 / aarch64
- macOS x86_64 / Apple Silicon (aarch64)
- Windows x86_64
Quick Start
import os
from connector_oss import Connector
# 3 lines: agent with trusted memory
c = Connector("deepseek", "deepseek-chat", os.environ["DEEPSEEK_API_KEY"])
result = c.agent("bot", "You are helpful").run("Hello!", "user:alice")
print(result.text) # LLM response
print(result.trust) # 0-100 kernel-verified trust score
print(result.trust_grade) # "A+" | "A" | "B" | "C" | "D" | "F"
From YAML Config
c = Connector.from_config("connector.yaml")
Memory & Knowledge
# Write tamper-proof memory (CID-addressed)
c.memory_write("pid:bot", "text", "Patient has fever", "user:nurse", "ns:er")
# Search memory
packets = c.search_namespace("ns:er", limit=10)
# Knowledge graph + RAG
c.knowledge_ingest("ns:er")
ctx = c.rag_retrieve("pid:bot", "ns:er", entities=["fever"], max_facts=10)
# Cognitive cycle
report = c.cognitive_cycle("pid:bot", "ns:er", "Diagnose patient")
Multi-Agent Pipeline
pipe = c.pipeline("support")
pipe.agent("triage", "Classify tickets")
pipe.agent("resolver", "Find answers")
pipe.route("triage -> resolver")
pipe.hipaa()
result = pipe.run("My account is locked", user="user:bob")
print(result.to_json()) # machine-parseable with provenance tags
Custom Folders (OS mkdir model)
c.create_agent_folder("nurse", "notes", "Patient notes")
c.folder_put("agent:nurse/notes", "p123", '{"bp": "140/90"}')
val = c.folder_get("agent:nurse/notes", "p123")
Observability
result.to_json() # every field tagged with source (kernel/llm/derived/user)
result.to_otel() # OTLP-compatible trace export
result.to_llm() # LLM-friendly summary
result.provenance() # {"kernel_verified": 5, "trust_percentage": 100.0}
result.is_verified() # True = zero-fake guarantee
What Makes This Different
| LangChain | CrewAI | connector-oss | |
|---|---|---|---|
| Tamper-proof memory | ❌ | ❌ | ✅ CID-addressed, kernel-verified |
| Audit trail | ❌ | ❌ | ✅ Ed25519-signed, append-only |
| HIPAA/SOC2/GDPR | ❌ | ❌ | ✅ Built-in compliance |
| Trust scoring | ❌ | ❌ | ✅ Per-response, 0-100 |
| Policy enforcement | ❌ | ❌ | ✅ Non-bypassable 5-layer guard |
Links
License
Apache-2.0
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 Distributions
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 connector_agent_oss-0.2.0.tar.gz.
File metadata
- Download URL: connector_agent_oss-0.2.0.tar.gz
- Upload date:
- Size: 591.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee763a19847c428c41d0df146c80f7e1fa5b0366a16d1bdce81f32ac049772b
|
|
| MD5 |
8c73214508f18b595471c084cd1182da
|
|
| BLAKE2b-256 |
2b949a94b69eb2f0582d05327f819be75699c705a31694c44704d84b3336319a
|
File details
Details for the file connector_agent_oss-0.2.0-cp313-cp313-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: connector_agent_oss-0.2.0-cp313-cp313-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9692bc1b062294b9c05cd249a3dcfcb0046dce80bf4558e792d4945f8ea19e8a
|
|
| MD5 |
365a32a84b1f896aad197419cf0fe759
|
|
| BLAKE2b-256 |
0e2e69542177a07976ed39f1f8c23d736bb653c82dd8eb9aae9ddda4d9ba2d0e
|
File details
Details for the file connector_agent_oss-0.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: connector_agent_oss-0.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
552ff5944e43c0ce6850155059adb491370ab5975bd10ee4e34151f4c77b0a1b
|
|
| MD5 |
b30fa0acf942fc902a64faf72123df8c
|
|
| BLAKE2b-256 |
7f0f54386fe7e7304f04571cad347836cbcb2779b64d41398567993be242a757
|
File details
Details for the file connector_agent_oss-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: connector_agent_oss-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c778b2d25aeba69a988f84b1a56ff4877ca560430f492272876ebce1e1ec0ef7
|
|
| MD5 |
33d90582ddb08175f7566634a832fcb0
|
|
| BLAKE2b-256 |
ad13a9c3109614eeebd53d5645e1a7b7cfbbefe2d92b598d0e9b34290edd5e77
|
File details
Details for the file connector_agent_oss-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: connector_agent_oss-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
314f69857956c8e450a1532ed05b85158f15197930a505ac31bf9b9120f45801
|
|
| MD5 |
8a3df66b42c7b808166e8184ac106cc8
|
|
| BLAKE2b-256 |
1c449f7bd0c465c6503bea124c1a966e5f7259e629f4ba383a63d1245144cf75
|
File details
Details for the file connector_agent_oss-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: connector_agent_oss-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
932e4900140e6a210e7519b7a32bd3d60306e3c662cda4658ba093c94417f29f
|
|
| MD5 |
7a8f58e9e31c0593663952911b2c5755
|
|
| BLAKE2b-256 |
4e59a560fb078ad3d80ce6e974ce0e922fcda138548fcac830e28e5ac0fd88e8
|