mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Add basic Workflow telemetry * Add sample * Add source propagation for executor spans * Fix tests and address comments * Fix formatting * Fix declarative unit tests * Address comments * Remove Microsoft.Extensions.AI.Agents.EnableTelemetry * Formatting * Formatting * Formatting * fix solution * Address comments * Add workflow json definition for serialization * Formmating * Address comments
31 lines
986 B
C#
31 lines
986 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Observability;
|
|
|
|
internal enum EdgeRunnerDeliveryStatus
|
|
{
|
|
Delivered,
|
|
DroppedTypeMismatch,
|
|
DroppedTargetMismatch,
|
|
DroppedConditionFalse,
|
|
Exception,
|
|
Buffered
|
|
}
|
|
|
|
internal static class EdgeRunnerDeliveryStatusExtensions
|
|
{
|
|
public static string ToStringValue(this EdgeRunnerDeliveryStatus status)
|
|
{
|
|
return status switch
|
|
{
|
|
EdgeRunnerDeliveryStatus.Delivered => "delivered",
|
|
EdgeRunnerDeliveryStatus.DroppedTypeMismatch => "dropped type mismatch",
|
|
EdgeRunnerDeliveryStatus.DroppedTargetMismatch => "dropped target mismatch",
|
|
EdgeRunnerDeliveryStatus.DroppedConditionFalse => "dropped condition false",
|
|
EdgeRunnerDeliveryStatus.Exception => "exception",
|
|
EdgeRunnerDeliveryStatus.Buffered => "buffered",
|
|
_ => throw new System.NotImplementedException(),
|
|
};
|
|
}
|
|
}
|