mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
27 lines
718 B
C#
27 lines
718 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.Extensions.AI.Agents.Runtime;
|
|
|
|
// External (client) interface.
|
|
|
|
/// <summary>
|
|
/// Represents an update to an actor request's status and data.
|
|
/// </summary>
|
|
public sealed class ActorRequestUpdate(RequestStatus status, JsonElement data)
|
|
{
|
|
/// <summary>
|
|
/// Gets the updated status of the request.
|
|
/// </summary>
|
|
[JsonPropertyName("status")]
|
|
public RequestStatus Status { get; } = status;
|
|
|
|
/// <summary>
|
|
/// Gets the updated data associated with the request.
|
|
/// </summary>
|
|
[JsonPropertyName("data")]
|
|
public JsonElement Data { get; } = data;
|
|
}
|