chimera_constrain
Validate tool outputs by checking confidence thresholds, forbidden capabilities, and hallucinations. Returns pass/fail with an audit trace.
Instructions
Apply constraint middleware to a tool output. Checks confidence, forbidden capabilities, hallucinations. Returns pass/fail with audit trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_name | Yes | ||
| output | Yes | Raw tool output to constrain | |
| input_confidence | No | Caller confidence this was the right call | |
| min_confidence | No | Minimum confidence to accept output | |
| output_forbidden | No | Forbidden capability markers (e.g. file_write, pii) | |
| detect_strategy | No | confidence_threshold | |
| detect_threshold | No | ||
| strict | No | True = violations raise exceptions, not just warnings | |
| namespace | No | Optional persistence namespace for audit and trace state. | default |