Private beta. Inference hooks are not generally available. Contact your Dust team or email inference-hooks@dust.com to request access. We will help you choose a configuration suited to your security requirements and expected usage.
Available providers
Datadog AI Guard is the first third-party integration, available in private beta. Follow the Datadog AI Guard setup guide for prerequisites, credentials, and provider-specific configuration.Get started
Once access is enabled, go to Admin > Security > Inference Hooks and add a hook. Follow your provider’s setup guide to connect it, then select the checkpoints, evaluation context, and enforcement mode described below. Start in monitor mode and review findings from actual agent activity before turning on blocking.Choose evaluation checkpoints
Under Events, select when the hook should evaluate agent activity. An agent turn starts with a user request and can include several rounds of tool calls before the agent finishes answering.
You can enable any combination. Tool-call and tool-result checkpoints can run multiple times in one turn. A checkpoint with no content to evaluate does not run.
For example, a request to research a company can produce a user-request check, a check before a web search, a check of the search results, and a check of the completed answer. If the agent makes more tool calls, the corresponding checks run again.
Choose evaluation context
Every evaluation includes the content being checked. Evaluation context selects which earlier messages accompany it:
Earlier content replaced by a summary or removed to fit token limits is not sent verbatim or restored for evaluation. Only the checkpoint’s target is evaluated; the surrounding conversation provides context.
The content being checked is still sent when you choose User messages. For example, at a tool-result checkpoint, the tool results are evaluated with user messages as context; selecting this option does not replace the tool results with user text.
One context setting applies to every event selected on a hook. To use different context settings for different checkpoints, create separate hooks with the relevant events.
More context can help the provider interpret an interaction, but it also sends more information and tokens for evaluation. Review the data-sharing and billing implications before enabling checks on sensitive workflows.
Start in monitor mode
In Monitor mode, the agent continues working while the evaluation runs in the background. Dust records the result without interrupting the user. Provider failures and timeouts also let the agent continue. We recommend starting in monitor mode. Review findings and false positives before switching to Block. In Block mode, Dust waits for the provider’s verdict before moving past the selected checkpoint. If the provider returns a denial, Dust blocks the agent interaction. Blocking can add latency. Configure what happens if the provider fails or times out:- Let the agent continue: the run continues, and the evaluation records an error.
- Block the agent: the run is blocked, and the evaluation records an error.
Review evaluations
Open Admin > Security > Inference Hooks and look at Evaluations. The findings view highlights blocked activity, flagged activity, and provider errors. It is not a list of every successful check.
Open an evaluation to see its agent, user when available, checkpoint, reason, duration, and references. Opening the conversation still depends on your access to that conversation. See your provider’s setup guide for any provider-specific investigation tools.
When a user reports a blocked run, ask for the Dust reference shown with the error. Search for that reference in Evaluations. Detailed provider reasons are available to admins rather than exposed in the user’s error message.
Manage a hook
Use the hook’s menu to Edit its configuration or Archive it. Archiving stops future checks for that hook and keeps its past evaluations. Excluded groups skips the hook for runs by members of those groups. Runs without a user, such as triggers and API calls, are still checked.Troubleshooting
Share false positives, missed findings, and onboarding issues with your Dust team or inference-hooks@dust.com.