before_model_callback and after_model_callback around every model invocation. Both callbacks scan through Dome Guardrails. Dome generates both callbacks from a Dome instance, which keeps the integration to a few lines.
Install
vijil-dome[trust-adapters] instead when you also want identity and tool access control through Trust Runtime.
Guard an Agent
Dome is asynchronous internally and ADK does not yet support asynchronous model callbacks. Apply
nest_asyncio before you build the Agent if you hit a nested event loop error.Add the Full Trust Stack
secure_agent() adds identity, constraints, tool-level access control, attestation, and audit events on top of the content Guards. It modifies the ADK Agent in place:
Deploy to Cloud Run
Follow the ADK Cloud Run deployment guide with thegcloud CLI, and add vijil-dome to your Agent’s requirements.txt. Request a container large enough for the Detector models, such as --cpu=4 --memory=8Gi.
Next Steps
Configure Guardrails
Tune the Guards behind the callbacks
Trust Runtime
Identity, tool access control, and audit events