// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; namespace Microsoft.Extensions.AI.Agents.Runtime; /// /// Represents an operation to remove a key from an actor's state. /// /// The key to remove from the actor's state. public sealed class RemoveKeyOperation(string Key) : ActorStateWriteOperation { /// /// Gets the key for the state operation. /// [JsonPropertyName("key")] public string Key { get; } = Key; /// /// Gets the type of the write operation. /// public override ActorWriteOperationType Type => ActorWriteOperationType.RemoveKey; }