Skip to content

feat(vanna): vanna-sqlguardllm package for Vanna 2.x - #340

Merged
jmmana merged 2 commits into
mainfrom
feat/vanna-integration
Dec 5, 2026
Merged

jmmana merged 2 commits into
mainfrom
feat/vanna-integration

Conversation

@jmmana

@jmmana jmmana commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Adds clients/vanna (PyPI vanna-sqlguardllm 0.1.0a1), modeled on the LangChain package.

  • GuardedSqlRunner: wraps any Vanna SqlRunner; checks with Guard.check and a trusted context from the authenticated Vanna user, runs only result.sql, raises SqlGuardRefusal with violation codes otherwise (Vanna's RunSqlTool returns it to the model as a failed result).
  • guarded_run_sql_tool(runner, guard): builds Vanna's own RunSqlTool.
  • Targets vanna 2.0.2 (vanna>=2.0,<3); 0.x VannaBase.run_sql not supported.
  • Tests (SQLite, no network): 4 passed. ruff check/format and mypy --strict clean; wheel builds.
  • CI: vanna-package.yml; publish: publish-vanna.yml (manual dispatch from main, like LangChain's; no tag trigger exists there).
  • docs/INTEGRATIONS.md: small appended section.

Owner step before first release

Register a pending Trusted Publisher on pypi.org for project vanna-sqlguardllm: owner jmmana, repository sqlguardllm, workflow publish-vanna.yml, environment pypi-vanna (and create the pypi-vanna environment in repo settings).

Not published, no tags created.

🤖 Generated with Claude Code

Guarded SqlRunner and RunSqlTool builder for Vanna 2.x, with SQLite tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 23:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jmmana
jmmana merged commit 991db80 into main Dec 5, 2026
22 checks passed
@jmmana
jmmana deleted the feat/vanna-integration branch December 5, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants