nemoguardrails.server.hooks.schemas
Request models for the agent hooks the hooks server checks, one interface per agent path.
Module Contents
Classes
API
Bases: BaseModel
Claude Code’s PreToolUse hook input, requiring only the fields the server reads.
hook_event_name
model_config
tool_name
tool_use_id
Bases: BaseModel
Codex’s PreToolUse hook input, requiring only the fields the server reads.
hook_event_name
model_config
tool_name
tool_use_id
Bases: BaseModel
The field every hook body carries, read before the body is validated as its event.
hook_event_name
Bases: enum.Enum
The error.code of a hooks request that ends in an error rather than an allow or a deny.
QUEUE_FULL
RAIL_FAILED
UNSUPPORTED_HOOK_EVENT
Bases: BaseModel
NeMo Relay tool conditional-execution guardrail callback receives: the tool name and its arguments.
hook_event_name
model_config
tool_name