Skip to main content

Installation

Usage

How It Works

wrapLangChainTool wraps the tool’s call() method. When the agent invokes the tool, Sigil evaluates the intent against your warranty.md policy first. On approval, the original call() executes. On denial or hold, a typed JSON rejection is returned as the tool output.
The JSON rejection is returned as the tool output string β€” LangChain agents receive it as a tool result and adjust their reasoning accordingly. Coverage is limited to the wrapped tool object and call path. Every governed tool must use the wrapper, and the agent must not retain an unwrapped reference. Set failMode: 'closed' so a Sign outage also blocks execution.

Configuration