verify_snippet
Catch hallucinations by verifying code imports and API calls against actually-installed packages, flagging missing items with typo/slopsquat suggestions.
Instructions
Verify code against the ACTUALLY-INSTALLED packages to catch hallucinations.
Call this after generating code to check that the imports and API calls it uses really exist in this environment. Flags: imported packages that aren't installed (with typo/slopsquat suggestions) and attributes/methods that can't be found on installed modules/classes. Static analysis only — treat 'medium' findings as "verify", not "definitely wrong".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | No | python |