Initial draft of actor runtime abstractions (#197)

* Initial draft of actor runtime abstractions
This commit is contained in:
Reuben Bond
2025-07-22 16:05:58 -04:00
committed by GitHub
parent 8f2d3da80d
commit 41d441420e
108 changed files with 7445 additions and 58 deletions
@@ -0,0 +1,23 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
namespace Microsoft.Extensions.AI.Agents.Runtime;
/// <summary>
/// Represents an operation to remove a key from an actor's state.
/// </summary>
/// <param name="Key">The key to remove from the actor's state.</param>
public sealed class RemoveKeyOperation(string Key) : ActorStateWriteOperation
{
/// <summary>
/// Gets the key for the state operation.
/// </summary>
[JsonPropertyName("key")]
public string Key { get; } = Key;
/// <summary>
/// Gets the type of the write operation.
/// </summary>
public override ActorWriteOperationType Type => ActorWriteOperationType.RemoveKey;
}