nemoguardrails.library.tool_safety_check.actions
nemoguardrails.library.tool_safety_check.actions
Module Contents
Functions
Data
API
Checks a tool call’s arguments against per-tool safety instructions using a specified LLM.
Parameters:
ToolCall — The tool call to check.
Optional[ Tool ] — The declared tool, used only by @tool_call_validation.
The judge model, from $model= on the flow.
Selects which config.prompts task to render, from $variant= on the flow.
Narrows the arguments sent to the judge to one named argument, from
$argument= on the flow. Absent, the full arguments dict is sent.
Checks a tool result’s content against per-tool safety instructions using a specified LLM.
Parameters:
ToolCall — The prior call this result answers, used to resolve the tool name.
ToolResult — The tool result to check.
The judge model, from $model= on the flow.
Selects which config.prompts task to render, from $variant= on the flow.