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.1.tar.gz (150.1 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.1-py3-none-any.whl (148.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqai-0.1.1.tar.gz
  • Upload date:
  • Size: 150.1 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.1.tar.gz
Algorithm Hash digest
SHA256 e93d5ba7d84689c3cefcacede545996618f1fd41abb88d114ddd83c37e359425
MD5 ad1350868901812f2882dcb3a4351658
BLAKE2b-256 e4cdc3c58ba8e719ccdf620610062869ece9bac9d44cdbd963d3c48965f422f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 148.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0924599fa3bfbcb3dd7dfed181292fc03fde58c49755ace493beae2d5544042b
MD5 f5abf099d845964dc03abb913fd80745
BLAKE2b-256 3b6a74e8107fa82d981ba152918fbe7cbb61615d3db45b419ca03a6ec12a8a65

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