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