Skip to main content

No project description provided

Project description

Vijil Dome

License Python Version Downloads Docs

Vijil Dome is a fast, lightweight, and highly configurable library for adding runtime guardrails to your AI agents. It combines top open-source LLM safety tools with proprietary Vijil models to detect and respond to unsafe content — with built-in support for observability, tracing, and popular agent frameworks.

🚀 Installation

Install the core library:

pip install vijil-dome

Optional extras for common integrations:

  • opentelemetry – OTel-compatible tracing/logging
  • google – GCP-native metrics and logging
  • langchain – Seamless integration with LangChain/LangGraph
  • embeddings – Fast similarity search using annoy

⚠️ Note: annoy is not currently compatible with agents built using Google ADK + Cloud Run. Use in-memory embeddings in those cases.

🔒 Guarding Agents in One Line

from vijil_dome import Dome

dome = Dome()

query = "How can I rob a bank?"
input_scan = dome.guard_input(query)
print(input_scan.is_safe(), input_scan.guarded_response())

# Get a response from your agent 

response = "Here's how to rob a bank!"
output_scan = dome.guard_output(response)
print(output_scan.is_safe(), output_scan.guarded_response())

By default, Dome:

  • Scans inputs for prompt injections, jailbreaks, and toxicity
  • Scans outputs for toxicity and masks PII

⚙️ Configuration Options

You can configure Dome using a TOML file or a Python dictionary.

Example TOML

[guardrail]
input-guards = ["prompt-injection", "input-toxicity"]
output-guards = ["output-toxicity"]
input-early-exit = false

[prompt-injection]
type = "security"
early-exit = false
methods = ["prompt-injection-deberta-v3-base", "security-llm"]

[prompt-injection.security-llm]
model_name = "gpt-4o"

[input-toxicity]
type = "moderation"
methods = ["moderations-oai-api"]

[output-toxicity]
type = "moderation"
methods = ["moderation-prompt-engineering"]

Same Configuration in Python

config = {
    "input-guards": ["prompt-injection", "input-toxicity"],
    "output-guards": ["output-toxicity"],
    "input-early-exit": False,
    "prompt-injection": {
        "type": "security",
        "early-exit": False,
        "methods": ["prompt-injection-deberta-v3-base", "security-llm"],
        "security-llm": {
            "model_name": "gpt-4o"
        }
    },
    "input_toxicity": {
        "type": "moderation",
        "methods": ["moderations-oai-api"]
    },
    "output_toxicity": {
        "type": "moderation",
        "methods": ["moderation-prompt-engineering"]
    },
}

Dome includes nearly 20 prebuilt guardrails and supports building your own!

👉 For the full list of guardrail methods, advanced config options, and extensibility, check out the Docs.

🔌 Compatibility

Dome works with any agent framework or LLM — it operates directly on strings, so there's no dependency on your stack!

For popular frameworks, we provide dedicated wrappers and tutorials to make integration seamless:

Observability Integrations:

Dome is compatible with the following observability framworks out of the box

  • OpenTelemetry
  • Weave (Weights & Biases)
  • AgentOps
  • Google Cloud Trace

See the documentation for more details

📚 Learn More

Get detailed guides, examples, and custom guardrail walkthroughs in the official documentation →

Have more questions, or want us to include another guardrailing technique? Reach out to us at contact@vijil.ai!

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

vijil_dome-1.0.1.tar.gz (442.5 kB view details)

Uploaded Source

Built Distribution

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

vijil_dome-1.0.1-py3-none-any.whl (490.5 kB view details)

Uploaded Python 3

File details

Details for the file vijil_dome-1.0.1.tar.gz.

File metadata

  • Download URL: vijil_dome-1.0.1.tar.gz
  • Upload date:
  • Size: 442.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1015-azure

File hashes

Hashes for vijil_dome-1.0.1.tar.gz
Algorithm Hash digest
SHA256 577737793d5cbbd13a85d0f0aea28f29ac0f4b4d7d2f84f8e4eb2414d0fdc6af
MD5 4f40821abc1c705ad7ee90048fefb841
BLAKE2b-256 bd6e8dad2094ffb7fc2759918263c6273e4f45fba3e86ab5085718f60d6dce1c

See more details on using hashes here.

File details

Details for the file vijil_dome-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vijil_dome-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 490.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.11.0-1015-azure

File hashes

Hashes for vijil_dome-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44c2abc72e8e8d3b1081e1ef81d67fa76111db8c5705a5fcbe697e411ea0a50f
MD5 c5752c2b01611bc6eb364ef4f61a7fe5
BLAKE2b-256 cc89df67f7c3a5b4179a2c7f027872f1f4cd49166f4ab535b708e6691b52a5de

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