nemoguardrails.server.hooks.adapters
Each agent’s hook interface: the event its path handles, the tool call that event asks to check, and its answer.
Module Contents
Classes
Functions
Data
API
One agent’s path: the event it handles, the tool call that event’s body carries, and each outcome’s response.
The tool call body asks to check, as this path’s event; error locations are relative to the body.
Bases: Exception
A hook_event_name that the agent’s path doesn’t handle.
The tool call a Claude Code or Codex PreToolUse hook asks to check.
Claude Code’s and Codex’s PreToolUse output: no decision for an allow, the deny shape for a deny.
The verdict the Relay plugin turns into its guardrail callback’s Ok(None) or Ok(Some(reason)).
The tool call a NeMo Relay guardrail asks to check, with no id: Relay passes its guardrail callback none.
Raise for an error outcome, which is answered with an error status, not a 200 body.