Server mode: sqlguardllm serve with an HTTP API and a Docker image

Aperta
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, python, yaml
Ambito
api, devops

Direzione di ricerca

Start with src/sqlguardllm/server.py, Dockerfile and .github/workflows/release.yml, plus docs/DESIGN.md for the CheckResult JSON shape. The issue depends on #12 and #11, which are not in the payload, so read those first. Done means both endpoints return CheckResult JSON, the OpenAPI document and GHCR image publish on release, and a localhost benchmark shows p50 under 2 ms.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:integrations size:m type:feature
Goal

Use the same engine from any language as a sidecar (docs/DESIGN.md#other-languages).

Acceptance criteria
  • sqlguardllm serve --policy FILE exposes POST /v1/check and POST /v1/explain with the same JSON as CheckResult
  • Named policies loaded at startup; no SQL or context is logged
  • OpenAPI document and a Docker image published to GHCR on release
  • p50 under 2 ms per check on localhost in a benchmark
Relevant files
  • src/sqlguardllm/server.py
  • Dockerfile
  • .github/workflows/release.yml
Size

M (1-2 days)

Notes
Lingua principale
Python
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jmmana/sqlguardllm

Tutte le issue di jmmana/sqlguardllm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.