Microsoft.Agents.Storage.CosmosDb 1.2.27-beta

Prefix Reserved
This is a prerelease version of Microsoft.Agents.Storage.CosmosDb.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Agents.Storage.CosmosDb --version 1.2.27-beta
                    
NuGet\Install-Package Microsoft.Agents.Storage.CosmosDb -Version 1.2.27-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Agents.Storage.CosmosDb" Version="1.2.27-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Agents.Storage.CosmosDb" Version="1.2.27-beta" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Agents.Storage.CosmosDb" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Agents.Storage.CosmosDb --version 1.2.27-beta
                    
#r "nuget: Microsoft.Agents.Storage.CosmosDb, 1.2.27-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Agents.Storage.CosmosDb@1.2.27-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Agents.Storage.CosmosDb&version=1.2.27-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Agents.Storage.CosmosDb&version=1.2.27-beta&prerelease
                    
Install as a Cake Tool

Microsoft.Agents.Storage.CosmosDb

About

  • An Agent is inherently stateless. Once your Agent is deployed, it may not run in the same process or on the same machine from one turn to the next. However, your Agent may need to track the context of a conversation so that it can manage its behavior and remember answers to previous questions. The state and storage features of the Agents SDK allow you to add state to your Agent.
  • Microsoft.Agents.State use Storage to persist state to memory, Azure Blobs, or CosmosDb.

Main Types

  • CosmosDbPartitionedStorage
  • CosmosDbPartitionedStorageOptions

Registering CosmosDbPartitionedStorage

appsettings.json

{
  "CosmosDbPartitionedStorageOptions": {
    "CosmosDbEndpoint": "{db_endpoint}",
    "DatabaseId": "{db_id}",
    "ContainerId": "{container_id}"
  }
}

Program.cs

builder.Services.AddSingleton<IStorage>((sp) => new CosmosDbPartitionedStorage(
    builder.Configuration.GetSection(nameof(CosmosDbPartitionedStorageOptions))
        .Get<CosmosDbPartitionedStorageOptions>()));

CosmosDbPartitionedStorageOptions.AuthKey or CosmosDbPartitionedStorageOptions.TokenCredential should be defined.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Microsoft.Agents.Storage.CosmosDb:

Package Downloads
Encamina.Enmarcha.Agents

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.47-beta 96 9/20/2025
1.3.22-beta 208 9/15/2025
1.3.20-beta 54 9/13/2025
1.3.17-beta 143 9/4/2025
1.3.15-beta 141 9/3/2025
1.3.13-beta 65 8/23/2025
1.3.10-beta 97 8/22/2025
1.3.9-beta 125 8/20/2025
1.3.1-beta 144 8/19/2025
1.2.41 594 8/19/2025
1.2.40-beta 65 8/16/2025
1.2.36-beta 100 8/15/2025
1.2.32-beta 180 8/8/2025
1.2.29-beta 117 7/31/2025
1.2.27-beta 94 7/30/2025
1.2.21-beta 94 7/29/2025
1.2.19-beta 75 7/19/2025
1.2.17-beta 107 7/18/2025
1.2.10-beta 149 7/16/2025
1.2.3-beta 142 7/15/2025
1.2.1-beta 111 7/13/2025
1.1.151 420 7/15/2025
1.1.150-beta 126 7/12/2025
1.1.147-beta 110 7/11/2025
1.1.145-beta 144 7/8/2025
1.1.139-beta 103 7/4/2025
1.1.136-beta 153 7/2/2025
1.1.128-beta 167 6/26/2025
1.1.127-beta 157 6/24/2025
1.1.126-beta 104 6/21/2025
1.1.125-beta 349 6/13/2025
1.1.113-beta 290 6/11/2025
1.1.110-beta 117 6/6/2025
1.1.109-beta 150 6/4/2025
1.1.107-beta 79 5/31/2025
1.1.103-beta 155 5/29/2025
1.1.100-beta 149 5/28/2025
1.1.95-beta 78 5/24/2025
1.1.93-beta 149 5/20/2025
1.1.91-beta 114 5/17/2025
1.1.81-beta 196 5/16/2025
1.1.68-beta 225 5/15/2025
1.1.67-beta 230 5/14/2025
1.1.51-beta 234 5/13/2025
1.1.47-beta 77 5/10/2025
1.1.45-beta 125 5/9/2025
1.1.40-beta 156 5/8/2025
1.1.32-beta 156 5/7/2025
1.1.30-beta 160 5/6/2025
1.1.28-beta 158 5/4/2025
1.1.25-beta 90 5/3/2025
1.1.18-beta 125 5/2/2025
1.1.17-beta 168 5/1/2025
1.1.10-beta-g85ab16e4d9 153 4/30/2025
1.1.1-beta 175 4/24/2025
1.0.1 242 4/24/2025
0.2.361-alpha 176 4/23/2025
0.2.358-alpha 170 4/22/2025
0.2.346-alpha 106 4/19/2025
0.2.343-alpha 160 4/18/2025
0.2.339-alpha 201 4/17/2025
0.2.315-alpha 199 4/16/2025
0.2.314-alpha 110 4/12/2025
0.2.308-alpha 173 4/10/2025
0.2.295-alpha 174 4/9/2025
0.2.290-alpha 170 4/8/2025
0.2.287-alpha 110 4/5/2025
0.2.286-alpha 141 4/4/2025
0.2.282-alpha 178 4/3/2025
0.2.277-alpha 165 4/1/2025
0.2.271-alpha 121 3/29/2025
0.2.267-alpha 142 3/28/2025
0.2.257-alpha 153 3/27/2025
0.2.180-alpha 481 3/26/2025
0.2.171-alpha 129 3/21/2025
0.2.162-alpha 161 3/19/2025
0.2.154-alpha 157 3/18/2025
0.2.153-alpha 88 3/15/2025
0.2.151-alpha 127 3/14/2025
0.2.146-alpha 172 3/12/2025
0.2.141-alpha 181 3/8/2025
0.2.137-alpha 219 3/7/2025