mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
30 lines
812 B
C#
30 lines
812 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AGUIDojoClient.Components.Demos.AgenticGenerativeUI;
|
|
|
|
/// <summary>
|
|
/// Represents a single step in a plan.
|
|
/// </summary>
|
|
public sealed class Step
|
|
{
|
|
/// <summary>
|
|
/// The description of the step.
|
|
/// </summary>
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// The status of the step (pending or completed).
|
|
/// </summary>
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; set; } = "pending";
|
|
|
|
/// <summary>
|
|
/// Gets whether this step is completed.
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public bool IsCompleted => string.Equals(this.Status, "completed", StringComparison.OrdinalIgnoreCase);
|
|
}
|