API reference
The API reference for Strata is generated from the doc comments in the code. This site doesn’t repeat it by hand, so it can’t drift from the code. This page tells you where each generated reference lives, and what isn’t generated yet.
docs.rs builds the rustdoc reference for every published crate. The links below are pinned to 0.9.0-preview.3, the version these docs cover.
| Crate | What it holds | Reference |
|---|---|---|
datalium-strata |
The engine: state graphs, validation, streaming, interrupts, stores, tools and the prelude |
docs.rs |
datalium-strata-memory |
In-memory, SQLite, Postgres and Redis stores, and long-term memory stores | docs.rs |
datalium-strata-ai |
Chat clients, model nodes, agents, embeddings and model routes | docs.rs |
datalium-strata-host |
Driver loops, settings and a store health probe for running Strata in a service | docs.rs |
datalium-strata-cloud |
The Strata Cloud checkpoint store, decisions client and decision worker, for the Strata Cloud private beta | docs.rs |
datalium-strata-macros |
The #[strata_tool] attribute and #[derive(StrataSchema)] |
docs.rs |
You don’t depend on datalium-strata-macros directly. datalium-strata re-exports both macros from datalium_strata::prelude, so you’ll also find them on the prelude page.
You can also build the same reference locally with cargo doc --open in your own project. It covers the exact versions in your Cargo.lock.
There is no generated web reference for the .NET packages yet. A generated API reference for .NET and Rust is on the roadmap.
Until then, the reference ships inside the packages. Each NuGet package includes the XML documentation file for its assembly, such as Datalium.Strata.xml next to Datalium.Strata.dll. Your IDE reads it, so IntelliSense, Quick Info and the metadata view behind “Go to definition” show the doc comments. The packages also publish symbols with Source Link, so your debugger can step into the Strata source.
| Package | What it holds | NuGet |
|---|---|---|
Datalium.Strata |
The engine, with the [StrataTool] source generator |
nuget.org |
Datalium.Strata.Storage |
In-memory, SQLite, Postgres and Redis stores, with leases, retries and retention | nuget.org |
Datalium.Strata.AI |
Model calls and agents over Microsoft.Extensions.AI’s IChatClient |
nuget.org |
Datalium.Strata.Hosting |
services.AddStrata(), settings from configuration, driver hosted services, health checks and OpenTelemetry wiring |
nuget.org |
Datalium.Strata.Cloud |
The Strata Cloud checkpoint store, decisions client and decision worker, for the Strata Cloud private beta | nuget.org |
Other references
Section titled “Other references”Some parts of Strata aren’t types and members, so they have their own pages:
- Configuration: every setting, for .NET (the
Strataconfiguration section) and Rust (datalium-strata-host). - Wire format: the JSON schemas both engines use for checkpoints, and which versions read which formats.
- CLI: the
stratacommands, options and exit codes.
Source and design docs
Section titled “Source and design docs”The source is on GitHub at datalium/strata. The .NET packages are in dotnet/src and the Rust crates are in rust.
The design folder explains the reasoning behind each feature. When a design doc and the code disagree, read the design doc’s “Implementation Status” section: it says what is built. The code is always the final word.