Strata AI SDK
Core contract layer for AI agents. Runtime-agnostic. Enterprise-ready by default.
📦 Installation
uv add strata-ai
🧩 Module Structure
| Package | Purpose |
|---|---|
strata_ai.core |
StrataAIApp.build(), lifespan, DI, OTel, security, governance, RFC 9457, StateMigrationRegistry, TaskQueueAdapter |
strata_ai.agent |
BaseAgent, ReActAgent, HITLAgent, OrchestratorAgent, @tool, AgentState, MemoryAdapter |
strata_ai.api |
FastAPI middleware stack, task routers, sync/async polling contracts |
strata_ai.batch |
BasePipeline, async queue adapters, feature store IO, eval golden runners |
strata_ai.runtime |
AgentRuntime ABC, LangGraphAdapter, MockRuntime (strict mode), checkpoint/resume |
🔁 Runtime Inversion
Agent patterns never import framework internals. The runtime is injected:
from strata_ai import ReActAgent, AgentConfig
from strata_ai.runtime import LangGraphAdapter
agent = ReActAgent(
config=AgentConfig(name="analyst", model="openai:gpt-4o", instructions="..."),
runtime=LangGraphAdapter(checkpointer=postgres),
tools=[sql_query, web_search]
)
result = await agent.run({"question": "What is the GDP of Kenya?"})
Swap runtimes in config. Zero pattern refactors.
🛡️ Enterprise Defaults
- Observability: OTel spans auto-emitted on every
run(),stream(),tool.call. Ships to MLflow/Langfuse/OTLP. - Security:
PIIFilter(MSISDN, ID, email, refs) +Guardrailmiddleware. Enabled whenpii_sensitive=True. - Governance:
AuditLog(immutable) +LineageTracker(MLflow-backed). GDPR-compliant sink adapters. - Errors:
StrataBaseErrorhierarchy → RFC 9457ProblemDetailat API edge. Zero 500 leaks.
🧪 Testability
from strata_ai.runtime import MockRuntime
# Strict mode enforces 5 invariants: state immutability, tool-result pairing, checkpoint-before-resume, audit-on-violation, deterministic threads
agent = ReActAgent(config=..., runtime=MockRuntime(strict=True), tools=[...])
result = await agent.run({"input": "test"})
Zero LLM calls. Fast CI. Pattern parity verified via tests/integration/test_runtime_parity.py.
Metadata
Release files for strata-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| strata_ai-0.1.0.tar.gz | 10.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strata_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.4 kB
Release files / strata_ai-0.1.0.tar.gz
| Download URL | strata_ai-0.1.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b603bb8e31d87e6d60792dacedbdda27a56fb0fde7d1949a5bd1573244812e
|
|
BLAKE2b-256 checksum How to use checksums |
667b26eda25232f710b8117c2412e06a23f63b5d230e708f7e35ff86463445aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / strata_ai-0.1.0-py3-none-any.whl
| Download URL | strata_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23a3d2405c5b73d9ae1d71970ff0cd53735498e760537a7e4eb4639a7f8d92e8
|
|
BLAKE2b-256 checksum How to use checksums |
10287e0b5134527519d823d9074dcae4ff9877ce7d7ff5a67a810eebc95f1a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logSecurity for strata-ai 0.1.0
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.
Attestation for strata_ai-0.1.0.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 May 31, 2026.
Transparency logA 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.