Skip to main content

Experimental APIs

Respire uses System.Diagnostics.CodeAnalysis.ExperimentalAttribute to identify public APIs whose contracts are still settling. They're ready to try, but they sit outside the compatibility promise and may change or be removed in any release, including a minor or patch release.

The compiler reports an error when you use one of these APIs, even without warnings-as-errors enabled. Opt in by suppressing that feature's diagnostic ID with NoWarn in your project or a scoped #pragma warning disable. Each diagnostic page shows the exact opt-in. Suppression acknowledges the compatibility risk; it does not change runtime behavior or server requirements.

DiagnosticExperimental surface
RSP0001VectorData integration
RSP0002Semantic chat caching, embedding caching, chat history, and Agent Framework history providers
RSP0003Hedged reads
RSP0004Hash import sessions
RSP0005Deferred raw commands
RSP0006StackExchange.Redis compatibility

VectorData, AI, and StackExchangeCompat carry assembly-level attributes, so their entire public surfaces are experimental. Core Respire uses type/member attributes so ordinary client, hash, batch, and transaction APIs do not require an opt-in.

The RSPxxxx IDs are compiler diagnostics for experimental features. They are distinct from the RESP0xx analyzer and source-generator diagnostics. An experimental ID remains tied to its feature and will not be reused for a different feature after stabilization.

See the C# experimental attribute specification for compiler behavior.