Skip to main content

SQAI — the deterministic, read-only structured-data SDK for AI agents, powered by Algenta execution and provenance.

Project description

sqai

SQAI — the deterministic, read-only structured-data SDK for AI agents, powered by Algenta execution and provenance. Python twin of @thyn-ai/sqai: same vocabulary, same error codes, same golden numbers, cross-language-identical hashes.

from sqai import create_sqai

sq = create_sqai()  # zero-config: SQAI_ENGINE_URL -> self_hosted, SQAI_API_KEY -> api, else local
sq.connect(orders, name="orders")

outcome = sq.ask({"metric": "revenue", "aggregation": "sum", "group_by": "region",
                  "source_name": "orders"})

result = sq.compute(module="stats", function="median", args=[[1.0, 2.0, 3.0], 3])
print(result["value"], result["invocation_hash"], result["computation_hash"])
  • Query planeconnect / resolve / query / verify / ask, in-process via Algenta.
  • Computation plane — validated against the embedded capability contract, delegated to the managed runtime; results pass through verbatim with a two-hash determinism envelope (invocation_hash before execution, computation_hash after).
  • Policy — allow-lists for sources, fields, and functions; the default surface is read-only deterministic capabilities, and policy can only narrow it.
  • Errors — Algenta codes pass through verbatim (source="algenta"); SQAI codes share the same snake_case vocabulary (source="sqai"). Messages never leak absolute paths.

The unsafe escape hatch (from sqai.unsafe import get_unsafe_algenta_runtime) bypasses every guarantee above and is deliberately not exported from the package root.

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqai-0.1.2.tar.gz (150.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqai-0.1.2-py3-none-any.whl (149.4 kB view details)

Uploaded Python 3

File details

Details for the file sqai-0.1.2.tar.gz.

File metadata

  • Download URL: sqai-0.1.2.tar.gz
  • Upload date:
  • Size: 150.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sqai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1664a3caad9264b4fb4e82f46cfbaa8aeb8f73bceb672515efae73e7c6e9feb7
MD5 a635d4f7c425e7bf4e77ce1e95806534
BLAKE2b-256 99992a7189ffe3279bec6c01ce5658fcb0dff9af72ff6382c684677e6d84ce1f

See more details on using hashes here.

File details

Details for the file sqai-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sqai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 149.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sqai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4612765c2e091368fd68c2bae0ad0fc614e1a9a3694bb32c519528840eb9d8e1
MD5 ded26a4ec66b2d1f9712db352dc2f8e0
BLAKE2b-256 845115b78a8b739a403cc12bd98572b12f63281e24ef6a258f9025fc87dffd10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page