Procedural Game Engine powered by IntentShield and LogicShield (BSL 1.1)
Project description
# Sovereign Engine
The Zero-Trust Procedural Game Engine. Built securely on the IntentShield and LogicShield architectures.
Sovereign Engine allows game developers to seamlessly integrate LLMs (Large Language Models) into their games to generate procedural dialogue, dynamic quests, and complex NPC interactions while absolutely guaranteeing that the AI's output mathematically adheres to your game's rules.
Installation
pip install sovereign-engine
Features
- Deterministic Validation: The
LogicShieldbackend forces the LLM to output perfect JSON that maps exactly to your defined game state parameters (e.g.npc_levelmust be less than player level + 5). - Action Gatekeeper: A deeply integrated, ultra-fast
IntentShieldsystem intercepts the AI's intended actions, instantly rejecting anything that isn't functionally possible in your game (preventing AI hallucinations where an NPC tries to "fly" when no flying mechanic exists). - Engine Agnostic: Can be imported seamlessly into Unity (via Python backends), Unreal Engine, Godot, or standalone Python architectures.
Quick Start
from sovereign_engine.engine import ProceduralDialogueEngine
# The engine routes through OpenRouter automatically
engine = ProceduralDialogueEngine(api_key="sk-or-your-developer-key")
# Pass the player's current environment directly to the engine
scene = engine.generate_node(
player_state={"level": 5, "inventory": ["Iron Sword", "Shield"]},
recent_history=["You enter a dark cavern and hear a low growl."],
player_action="I walk forward with my shield raised."
)
print(scene)
License
This project is licensed under the Business Source License 1.1 (BSL 1.1). For production or commercial use, you must obtain a separate commercial license from SovereignShield.
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 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 sovereign_engine-1.0.2.tar.gz.
File metadata
- Download URL: sovereign_engine-1.0.2.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
914f78da5f4626f8193fa26bdce8e8897c35308e67072d045ff4878f689667d0
|
|
| MD5 |
c29bbb3fbb89f610fe24bbbdd8b329e7
|
|
| BLAKE2b-256 |
a2363d969405952ef494c10530421e9a2ed3d04416412277ed5e5839d976579d
|
File details
Details for the file sovereign_engine-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sovereign_engine-1.0.2-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e4a68a3fc161a3bd362ee12bcb1ee77ddea502c8ff492ea99e168087789dc9
|
|
| MD5 |
08d0d9d270f584f83162c644b76de232
|
|
| BLAKE2b-256 |
ee2155329ec550f86c42792e31f94bcbfe35e5098708376d0787bbbe93533a5d
|