Strata AI SDK. Enterprise AI Agents, APIs, ML Pipeline contracts
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strata_ai-0.1.0.tar.gz.
File metadata
- Download URL: strata_ai-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b603bb8e31d87e6d60792dacedbdda27a56fb0fde7d1949a5bd1573244812e
|
|
| MD5 |
35233c4aa5519bcf20764f1ebee8caa5
|
|
| BLAKE2b-256 |
667b26eda25232f710b8117c2412e06a23f63b5d230e708f7e35ff86463445aa
|
Provenance
The following attestation bundles were made for strata_ai-0.1.0.tar.gz:
Publisher:
ci-cd.yml on Felix-Mutinda/strata-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strata_ai-0.1.0.tar.gz -
Subject digest:
91b603bb8e31d87e6d60792dacedbdda27a56fb0fde7d1949a5bd1573244812e - Sigstore transparency entry: 1676963893
- Sigstore integration time:
-
Permalink:
Felix-Mutinda/strata-ai@bac089fb6ea15d85c65ae21630d8ac6e6b7b5409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Felix-Mutinda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@bac089fb6ea15d85c65ae21630d8ac6e6b7b5409 -
Trigger Event:
push
-
Statement type:
File details
Details for the file strata_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: strata_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a3d2405c5b73d9ae1d71970ff0cd53735498e760537a7e4eb4639a7f8d92e8
|
|
| MD5 |
cf9391c450910a42269d0b9348c40f4d
|
|
| BLAKE2b-256 |
10287e0b5134527519d823d9074dcae4ff9877ce7d7ff5a67a810eebc95f1a6b
|
Provenance
The following attestation bundles were made for strata_ai-0.1.0-py3-none-any.whl:
Publisher:
ci-cd.yml on Felix-Mutinda/strata-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strata_ai-0.1.0-py3-none-any.whl -
Subject digest:
23a3d2405c5b73d9ae1d71970ff0cd53735498e760537a7e4eb4639a7f8d92e8 - Sigstore transparency entry: 1676955147
- Sigstore integration time:
-
Permalink:
Felix-Mutinda/strata-ai@bac089fb6ea15d85c65ae21630d8ac6e6b7b5409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Felix-Mutinda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@bac089fb6ea15d85c65ae21630d8ac6e6b7b5409 -
Trigger Event:
push
-
Statement type: