mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
75a8335af5
* Builds locally and tests pass * Fix typo * Reverted nuget config change to remove internal feed and map to new public object model package with renames. * Renaming Bot object model in additional sample. --------- Co-authored-by: Peter Ibekwe <peibekwe@microsoft.com>
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
|
|
using Microsoft.Agents.ObjectModel;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative;
|
|
|
|
/// <summary>
|
|
/// Event that indicates a declarative action has completed.
|
|
/// </summary>
|
|
public sealed class DeclarativeActionInvokedEvent : WorkflowEvent
|
|
{
|
|
/// <summary>
|
|
/// The declarative action identifier.
|
|
/// </summary>
|
|
public string ActionId { get; }
|
|
|
|
/// <summary>
|
|
/// The declarative action type name.
|
|
/// </summary>
|
|
public string ActionType { get; }
|
|
|
|
/// <summary>
|
|
/// Identifier of the parent action.
|
|
/// </summary>
|
|
public string? ParentActionId { get; }
|
|
|
|
/// <summary>
|
|
/// Identifier of the previous action.
|
|
/// </summary>
|
|
public string? PriorActionId { get; }
|
|
|
|
internal DeclarativeActionInvokedEvent(DialogAction action, string? priorActionId) : base(action)
|
|
{
|
|
this.ActionId = action.GetId();
|
|
this.ActionType = action.GetType().Name;
|
|
this.ParentActionId = action.GetParentId();
|
|
this.PriorActionId = priorActionId;
|
|
}
|
|
}
|