Skip to main content
Strands Agents accept hook providers. Dome ships DomeHookProvider, which registers callbacks on BeforeModelCallEvent and AfterModelCallEvent and replaces flagged content with a blocked message.

Install

See Install Dome for the other extras.

Guard an Agent

DomeHookProvider accepts the identity arguments agent_id, team_id, and user_id, and runs the Guards defined in your configuration. Dome attaches them to every scan, which keeps Vijil Console telemetry attributed to the right Agent. The provider scans the last user message before the model call and the model response after it. When a Guard flags content, the provider replaces the message with the corresponding blocked message rather than raising an exception.

Add the Full Trust Stack

secure_agent() adds identity, tool access control, attestation, and audit events on top of the content Guards. It registers a trust hook provider on the Strands Agent and returns the same Agent:
See Trust Runtime for constraint sources, enforcement modes, and audit sinks.

Next Steps

Configure Guardrails

Choose the Guards behind the hooks

Trust Runtime

Identity, tool access control, and audit events
Last modified on August 12, 2026