Skip to main content

GAARD - Governed AI Access to Relational Data

GAARD is a self-hosted AI SQL Gateway for governed natural-language access to relational data.

GAARD allows applications and users to ask questions about relational databases using natural language while keeping SQL generation, validation, execution, prompts, connectors, and auditability under control.

For more informacion see https://github.com/pkroliszewski/gaard

This package

gaard-api provides the GAARD FastAPI backend and bundled admin application.

After installation, start it with:

gaard-core install-example-database
gaard-core start

gaard-core install-example-database creates the bundled Medical POC SQLite database at examples/medical-poc/demo.db in the current working directory, registers it as the active default datasource in metadata.db, and matches the default datasource URL. Use gaard-core install-example-database --output /path/to/demo.db to place it elsewhere; the command prints the SQLite datasource URL saved in metadata.

gaard-core start accepts --host, --port, and --reload. By default the API is available at http://localhost:8000 and the admin application at http://localhost:8000/admin.

gaard-api start is an alias. gaard admin remains available for compatibility.

Conversation context

With context_mode: "auto", each question stores a new_topic or follow_up decision. The LLM receives all turns since the last new_topic, including that question. For a follow-up, a separate LLM call compresses this context together with the current question into one standalone sentence. Both calls use temperature zero. The resulting sentence is saved before SQL or Analysis runs; a new topic uses the current question as its context.

GET /api/v1/conversations/{conversation_id}/turns/{turn_id}/context returns the saved execution-time snapshot as JSON with context, context_decision, conversation_id, and turn_id. The IDs are available in the query response's metadata.conversation object. This authenticated endpoint only allows the conversation owner and never regenerates the context from later messages.

context_mode: "new" starts a new conversation; "off" remains stateless. Mock mode does not perform semantic context classification.

Metadata

Release files for gaard-api 0.2.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gaard-api 0.2.20
File Size Uploaded Provenance Actions
gaard_api-0.2.20.tar.gz 270.0 kB With provenance Details for gaard_api-0.2.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gaard-api 0.2.20
File Interpreter ABI Platform Actions
gaard_api-0.2.20-py3-none-any.whl Python 3 none any Details for gaard_api-0.2.20-py3-none-any.whl

Total release size: 497.0 kB

Release files / gaard_api-0.2.20.tar.gz

Download URL gaard_api-0.2.20.tar.gz
Size 270.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f12184011efc029a5647f4fd135a5bbdfafdd1c6330415dc70de22a49b384ac5
BLAKE2b-256 checksum
How to use checksums
ebc9c4ff80f6301cedfaeea3d512692943217434b40950a8963dc6eb06757b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / gaard_api-0.2.20-py3-none-any.whl

Download URL gaard_api-0.2.20-py3-none-any.whl
Size 227.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f6ca8f4022ab3a154a090505d09845ffcbf055dd4e3e62c48e2738d7304f60d
BLAKE2b-256 checksum
How to use checksums
23b34256c96c5d0a8550843889c8a7194642a2cec869882d0fb97141c15bee79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Security for gaard-api 0.2.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gaard_api-0.2.20.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page