Files
agent-framework/dotnet/src/Microsoft.Agents.AI.DurableTask/DurableWorkflowRunResult.cs
T
Shyju Krishnankutty 00650f2525 Minor cleanups
2026-01-20 20:20:15 -08:00

35 lines
1.0 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
namespace Microsoft.Agents.AI.DurableTask;
/// <summary>
/// Represents the result of a durable workflow orchestration execution.
/// </summary>
public sealed class DurableWorkflowRunResult
{
/// <summary>
/// Initializes a new instance of the <see cref="DurableWorkflowRunResult"/> class.
/// </summary>
/// <param name="workflowName">The name of the workflow that was executed.</param>
/// <param name="output">The output from the workflow execution.</param>
public DurableWorkflowRunResult(string workflowName, string output)
{
this.WorkflowName = workflowName;
this.Output = output;
}
/// <summary>
/// Gets the name of the workflow that was executed.
/// </summary>
[JsonPropertyName("workflowName")]
public string WorkflowName { get; }
/// <summary>
/// Gets the output from the workflow execution.
/// </summary>
[JsonPropertyName("output")]
public string Output { get; }
}