Skip to main content

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 LogicShield backend forces the LLM to output perfect JSON that maps exactly to your defined game state parameters (e.g. npc_level must be less than player level + 5).
  • Action Gatekeeper: A deeply integrated, ultra-fast IntentShield system 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovereign_engine-1.0.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovereign_engine-1.0.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for sovereign_engine-1.0.2.tar.gz
Algorithm Hash digest
SHA256 914f78da5f4626f8193fa26bdce8e8897c35308e67072d045ff4878f689667d0
MD5 c29bbb3fbb89f610fe24bbbdd8b329e7
BLAKE2b-256 a2363d969405952ef494c10530421e9a2ed3d04416412277ed5e5839d976579d

See more details on using hashes here.

File details

Details for the file sovereign_engine-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sovereign_engine-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5e4a68a3fc161a3bd362ee12bcb1ee77ddea502c8ff492ea99e168087789dc9
MD5 08d0d9d270f584f83162c644b76de232
BLAKE2b-256 ee2155329ec550f86c42792e31f94bcbfe35e5098708376d0787bbbe93533a5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page