Skip to main content

# 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.
  • Action Gatekeeper: A deeply integrated, ultra-fast IntentShield system intercepts the AI's intended actions.
  • Local First: Runs purely on your local graphics card natively via Ollama out of the box.
  • B2B Cloud Scaling: Seamlessly route thousands of requests per second to the SovereignShield enterprise Cloud API.

Quick Start (Local Setup)

Sovereign Engine connects directly to Local Ollama by default.

from sovereign_engine.engine import ProceduralDialogueEngine

# Defaults to localhost:11434 with llama3.1:8b
engine = ProceduralDialogueEngine()

scene = engine.generate_node(
    player_state={"level": 5, "inventory": ["Iron Sword"]},
    recent_history=["You enter a dark cavern and hear a low growl."],
    player_action="I walk forward."
)

Changing the Local Ollama Model

If you want to use a different model installed on your machine:

engine = ProceduralDialogueEngine(ollama_model="mistral:latest")

Connecting to SovereignShield SaaS (Cloud Routing)

If you don't want to run the engine locally on player hardware, you can instantly proxy all logic up to the centralized enterprise API layer:

engine = ProceduralDialogueEngine(
    cloud_proxy_url="https://engine-api-467902938909.us-central1.run.app/v1/engine/generate",
    api_key="your-commercial-license-key"
)

Customizing Rules (LogicShield) & Actions (IntentShield)

Expand the engines mathematical mechanics to fit your custom game:

from sovereign_engine.logicshield.rules import Rule

my_rules = [
    Rule.less_than("gold_dropped", "max_loot")
]

engine = ProceduralDialogueEngine(
    ollama_model="llama3.1:8b",
    custom_actions=["STEAL", "CRAFT", "PERSUADE"], 
    custom_rules=my_rules
)

License

Released under the Business Source License 1.1 (BSL 1.1). Non-production and personal use is completely free.
For commercial licensing or production API integration, contact: contact@sovereign-shield.net

Metadata

Release files for sovereign-engine 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sovereign-engine 1.0.8
File Size Uploaded
sovereign_engine-1.0.8.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sovereign-engine 1.0.8
File Interpreter ABI Platform
sovereign_engine-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 27.2 kB

Release files / sovereign_engine-1.0.8.tar.gz

Download URL sovereign_engine-1.0.8.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d10c37b51b3c0b9c7fcca0fd707577a8cbf52e1aa8496c7395d47a2acfe508b2
BLAKE2b-256 checksum
How to use checksums
705b8b4f1aa11b93fc7dcfb8012a35d3597dff3655a7b40e90b87741188bbb1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / sovereign_engine-1.0.8-py3-none-any.whl

Download URL sovereign_engine-1.0.8-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99ffb19b7a8da3b508eeeef9c3847612d1cf75b047d26db2eecedbb6354e7ed9
BLAKE2b-256 checksum
How to use checksums
5e4512bb87854308786c5755c995f37a7e75453baf791e598fe56420b6ba12cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page