Versions and upgrades
AgentPrism is a pre-1.0 package family. Treat version selection as part of your application architecture, not as a restore detail.
Which version do these docs describe?
Section titled “Which version do these docs describe?”This site is built from the repository’s main branch. The .NET reference is generated
from the assemblies built from that same source, and the HTTP reference is generated from
the OpenAPI snapshot in that source tree.
That makes the site the best description of the next build. It can also document a public API that is newer than the preview package you installed. When exact reproducibility matters, pin every AgentPrism package and read the documentation from the matching source tag or commit.
Install the newest preview
Section titled “Install the newest preview”Use NuGet’s pre-release selection explicitly:
dotnet add package AgentPrism --prereleaseThe project template resolves pre-release packages by default, but pinning it makes a team build reproducible:
AGENTPRISM_VERSION=1.0.0-preview.N # replace N with the published previewdotnet new install "AgentPrism.Templates@$AGENTPRISM_VERSION"dotnet new agentprism-api --AgentPrismVersion "$AGENTPRISM_VERSION"Pin the whole package family
Section titled “Pin the whole package family”Do not mix AgentPrism preview versions. The packages share public contracts, DI registrations, database migrations, and generated code. A mixed graph can restore but fail during startup or at runtime.
With Central Package Management, keep the versions in one place:
<ItemGroup> <PackageVersion Include="AgentPrism" Version="1.0.0-preview.N" /> <PackageVersion Include="AgentPrism.PostgreSql" Version="1.0.0-preview.N" /> <PackageVersion Include="AgentPrism.OpenAI" Version="1.0.0-preview.N" /> <PackageVersion Include="AgentPrism.UI" Version="1.0.0-preview.N" /></ItemGroup>If you reference individual packages directly, pin each one to the same version. Avoid floating ranges in production.
Upgrade safely
Section titled “Upgrade safely”- Create a branch and update all AgentPrism packages together.
- Read the source diff for public API, configuration, and migration changes.
- Build with warnings as errors and run the full test suite.
- Start a disposable environment against a copy of production-shaped data.
- Inspect
/api/meta, health checks, provider health, and migration diagnostics. - Exercise one synchronous run, one streamed run, every enabled background service, and your approval and guard paths.
- Back up the database before the production migration. Deploy API and worker processes from the same artifact.
- Watch run failures, provider latency, queue depth, webhook delivery, and cost after the rollout.
Database migrations are forward-only. Do not assume that rolling back the application also rolls back the schema. See Production deployment for the migration and backup contract.
Record the version in incident reports
Section titled “Record the version in incident reports”Include these facts when you report a defect:
- the exact AgentPrism package versions from
dotnet list package; - the .NET target framework and deployment runtime;
- the model provider, model or Azure deployment name, and provider SDK version;
- the storage engine and migration state;
- the failing endpoint or .NET API and a minimal reproduction;
- redacted diagnostics, logs, trace ids, and run ids.
Never attach credentials, connection strings, raw API keys, or unreviewed prompt and tool content.
Read next
Section titled “Read next”- Compatibility matrices — the framework, runtime, and protocol versions each release supports
- Choosing packages — which packages you actually take a version of
- Configuration — the options an upgrade can move