// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.Agents.AI.DurableTask.Workflows; /// /// Wraps the orchestration output to include both the workflow result and accumulated events. /// /// /// The Durable Task framework clears SerializedCustomStatus when an orchestration /// completes. To ensure streaming clients can retrieve events even after completion, /// the accumulated events are embedded in the orchestration output alongside the result. /// internal sealed class DurableWorkflowResult { /// /// Gets or sets the serialized result of the workflow execution. /// public string? Result { get; set; } /// /// Gets or sets the serialized workflow events emitted during execution. /// public List Events { get; set; } = []; }