// Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Microsoft.Extensions.AI.Agents.Runtime;
///
/// Represents a batch of write operations to be performed atomically on an actor.
///
/// The ETag for optimistic concurrency control.
/// The collection of write operations to perform.
public sealed class ActorWriteOperationBatch(string eTag, IReadOnlyCollection operations)
{
///
/// Gets the collection of write operations to perform.
///
[JsonPropertyName("operations")]
public IReadOnlyCollection Operations { get; } = operations;
///
/// Gets the ETag for optimistic concurrency control.
///
[JsonPropertyName("etag")]
public string ETag { get; } = eTag;
}