// Copyright (c) Microsoft. All rights reserved. using Microsoft.Agents.Workflows.Declarative.Extensions; using Microsoft.Bot.ObjectModel; namespace Microsoft.Agents.Workflows.Declarative; /// /// Event that indicates a declarative action has completed. /// public sealed class DeclarativeActionCompletedEvent : WorkflowEvent { /// /// The declarative action identifier. /// public string ActionId { get; } /// /// The declarative action type name. /// public string ActionType { get; } /// /// Identifier of the parent action. /// public string? ParentActionId { get; } internal DeclarativeActionCompletedEvent(DialogAction action) : base(action) { this.ActionId = action.GetId(); this.ActionType = action.GetType().Name; this.ParentActionId = action.GetParentId(); } }