Neuro-symbolic guardrails for LLMs: rules + repair loops + (optional) SMT.
Project description
NeuroSym-AI
Neuro-symbolic guardrails for arbitrary information
Validate, sanitize, and enforce policies on text, JSON, and LLM outputs using symbolic rules with optional language-model-based repair loops.
Overview
NeuroSym is an information-first guardrail engine designed to enforce explicit, auditable constraints on unstructured and semi-structured data.
Unlike LLM-specific guardrail tools, NeuroSym operates independently of model providers and treats language models as optional adapters, not core dependencies.
It is suitable for:
- AI agents and tool pipelines
- Structured LLM extraction
- Compliance-sensitive systems
- Research in neuro-symbolic AI and AI safety
Key Capabilities
Input (Text / JSON / Tool Output) ↓ Deterministic Repairs (Offline) ↓ Symbolic Rule Evaluation ↓ Optional LLM Repair Loop ↓ Validated, Audited Output
Highlights
- Provider-agnostic (no model lock-in)
- Deterministic by default (no API keys required)
- Symbolic core (rules, schemas, constraints)
- Optional neuro-symbolic repair loops
- Full traceability with structured audit logs
Design Philosophy
Principle 1 — Information First
NeuroSym guards information, not prompts.
Inputs may originate from humans, tools, databases, or language models.
Principle 2 — Determinism by Default
Validation and repair operate fully offline.
Language models are invoked only when explicitly configured.
Principle 3 — Symbolic Core
Rules are explicit, testable, inspectable, and explainable.
Principle 4 — Auditability
Every decision produces a structured execution trace suitable for compliance, debugging, and research.
Installation
pip install neurosym-ai
pip install neurosym-ai[z3] # SMT / formal constraints
pip install neurosym-ai[providers] # Gemini / OpenAI adapters
Project details
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 neurosym_ai-0.1.3.tar.gz.
File metadata
- Download URL: neurosym_ai-0.1.3.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2255d7666d2f6916ea577bf527f4ae306b01482224a7fb1c47a9dd40ef80fdb7
|
|
| MD5 |
7d1a3878e8280fed13709ded1951f3d8
|
|
| BLAKE2b-256 |
8dd0b48829a0512f57fe989f93b6ead92c0acd56945d604595245536930140af
|
File details
Details for the file neurosym_ai-0.1.3-py3-none-any.whl.
File metadata
- Download URL: neurosym_ai-0.1.3-py3-none-any.whl
- Upload date:
- Size: 40.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1efb0401bf75b7f9c3870476ed4f1f15608fe41489a84b2bc7d7b537a38085
|
|
| MD5 |
526c0a308a98720e151c4bbddcce45b8
|
|
| BLAKE2b-256 |
39d02869c5101f1e17ce6c38a42b866a12fb4e30dd12d0cddb523e19560769e1
|