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.3.tar.gz (154.2 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.3-py3-none-any.whl (151.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqai-0.1.3.tar.gz
  • Upload date:
  • Size: 154.2 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.3.tar.gz
Algorithm Hash digest
SHA256 7f40663d0fd24520fde5ed0df395e21ead1ee255c9d98d3c7e91f72a0215b29f
MD5 c664af176af6b11f24403fea692a9ede
BLAKE2b-256 28a8eec4f5fe67aeedb75028a33edb8a924c29f23b63e329e169b84a7b605303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 151.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef93671958806b2f25c026198821ef15450978025bca1b08c0405b575dfd0a46
MD5 0f0ecaeb4be6a0a632e37b47391e6a90
BLAKE2b-256 000aabedb5c3f18f9b5b6c58bd2344eb74bf82c1c576d5f2217983602aabcdd3

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