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.0.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.0-py3-none-any.whl (148.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqai-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 bfcb9eef7809520f545c8f2bb6ff6e5147c32590c11b07490a018cd8b1ab0121
MD5 cd5077c62046e4fe995fbb0750401214
BLAKE2b-256 7caaa4e7241aa30474e4f6853ea225522a03728400624bea1da7b2416867a35f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqai-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f822242d865f9748022432a5db9468d0783e5b5e5593a034c1862e29c461cb1c
MD5 b7d2d45573319667a8d0d1e591ea4fdd
BLAKE2b-256 28e60a57b248f38ee776b921c9f537a0399723aa21febb8886ee48fb1a62c22f

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