tripy-constraints
Installation
SKILL.md
Authoring Constraints for nvtripy Operations
When to Use
- Defining type constraints for a new or existing operation
- Writing
input_requirementsoroutput_guaranteesfor@wrappers.interface - Debugging constraint validation errors at runtime
- Understanding auto-type-casting behavior
Architecture Overview
The constraint system lives in nvtripy/frontend/constraints/ and consists of:
- Fetchers (
fetcher.py): Extract values from function arguments or return values - Logic (
logic.py): Compose constraints with boolean operators - Base (
base.py): Abstract base class for all constraints - Wrappers (
nvtripy/frontend/wrappers.py): The@interfacedecorator that applies constraints