RubyGems Navigation menu

prompt_guard 1.0.0

Detect prompt injection attacks using ONNX models from Hugging Face Hub. Models are lazily downloaded and cached locally. Protects LLM applications from malicious prompts with fast local inference (~10-20ms after initial load).

Gemfile:
=

install:
=

Versions:

  1. 1.0.2 February 13, 2026 (32.5 KB)
  2. 1.0.1 February 13, 2026 (32 KB)
  3. 1.0.0 February 10, 2026 (28 KB)
  4. 0.1.0 February 04, 2026 (9.5 KB)

Runtime Dependencies (3):

logger >= 0
onnxruntime ~> 0.9
tokenizers ~> 0.5

Development Dependencies (3):

bundler ~> 2.0
minitest ~> 5.0
rake ~> 13.0

Owners:

Pushed by:

Authors:

  • Klara

SHA 256 checksum:

=

Total downloads 517

For this version 130

Version Released:

License:

MIT

Required Ruby Version: >= 3.0

Links: