mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
17 lines
512 B
C#
17 lines
512 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Agents.AI.Workflows;
|
|
|
|
namespace SingleAgent;
|
|
|
|
/// <summary>
|
|
/// Event emitted to report cancellation progress.
|
|
/// </summary>
|
|
public sealed class CancellationProgressEvent(string orderId, int percentComplete, string status)
|
|
: WorkflowEvent($"Cancellation {percentComplete}%: {status}")
|
|
{
|
|
public string OrderId { get; } = orderId;
|
|
public int PercentComplete { get; } = percentComplete;
|
|
public string Status { get; } = status;
|
|
}
|