before_model_callback and after_model_callback hooks that run immediately before and after the model is invoked. Dome plugs into both. You have two levels of protection.
Choosing a Protection Level
- Content Guards
- Trust Runtime
Add Dome input and output Guardrails as ADK callbacks. Install the ADK dependency first (Both factories accept optional
pip install google-adk).blocked_message (a custom message returned when content is blocked) and additional_callback (another callback to chain after Dome):Deployment
To deploy an ADK Agent protected with Dome, follow ADK’s Cloud Run deployment guide via the gcloud CLI and addvijil-dome to your Agent’s requirements.txt. Use a container large enough for Dome’s models: we recommend --cpu=4 --memory=8Gi.
For a full walkthrough of guarding and deploying a multi-agent ADK setup, see the Vijil blog post.
Next Steps
Trust Runtime
Identity, tool permissions, and attestation
Configure Guardrails
Choose which Guards run