nemoguardrails.server.hooks
Agent hook requests and responses for nemoguardrails hooks-server.
Submodules
nemoguardrails.server.hooks.adaptersnemoguardrails.server.hooks.appnemoguardrails.server.hooks.checkingnemoguardrails.server.hooks.schemasnemoguardrails.server.hooks.tool_policy
Package 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: enum.Enum
The error.code of a hooks request that ends in an error rather than an allow or a deny.
A check’s verdict on a tool call, before it becomes the agent’s response.
Refuse any field the outcome’s kind doesn’t have, so only a valid allow, deny or error exists.
Raise unless the field name holds a non-empty string.
Raise when any of the fields names is set, since this kind of outcome has none of them.
Bases: Exception
A hook_event_name that the agent’s path doesn’t handle.
The one assistant message carrying call, as check_async() takes it; with no id when the call has none.
A compatibility declaration of the tool call names, as check_async() takes tools, for per-tool rails.
The verdict a tool-call check’s result gives: allow, deny, or an error when no rail decided.