Skip to main content

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) + Guardrail middleware. Enabled when pii_sensitive=True.
  • Governance: AuditLog (immutable) + LineageTracker (MLflow-backed). GDPR-compliant sink adapters.
  • Errors: StrataBaseError hierarchy → RFC 9457 ProblemDetail at 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strata_ai-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strata_ai-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

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

Hashes for strata_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91b603bb8e31d87e6d60792dacedbdda27a56fb0fde7d1949a5bd1573244812e
MD5 35233c4aa5519bcf20764f1ebee8caa5
BLAKE2b-256 667b26eda25232f710b8117c2412e06a23f63b5d230e708f7e35ff86463445aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for strata_ai-0.1.0.tar.gz:

Publisher: ci-cd.yml on Felix-Mutinda/strata-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for strata_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23a3d2405c5b73d9ae1d71970ff0cd53735498e760537a7e4eb4639a7f8d92e8
MD5 cf9391c450910a42269d0b9348c40f4d
BLAKE2b-256 10287e0b5134527519d823d9074dcae4ff9877ce7d7ff5a67a810eebc95f1a6b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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