Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Workflows/Execution/MessageDelivery.cs
T
Ben Thomas 647db9635a .NET: Rename workflows projects (#975)
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows

* Removing local settings.

* Removing remining old files from merge.
2025-09-29 18:30:45 +00:00

29 lines
743 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.AI.Workflows.Execution;
internal sealed class MessageDelivery
{
[JsonConstructor]
internal MessageDelivery(MessageEnvelope envelope, string targetId)
{
this.Envelope = Throw.IfNull(envelope);
this.TargetId = Throw.IfNull(targetId);
}
internal MessageDelivery(MessageEnvelope envelope, Executor target)
: this(envelope, target.Id)
{
this.TargetCache = Throw.IfNull(target);
}
public string TargetId { get; }
public MessageEnvelope Envelope { get; }
[JsonIgnore]
internal Executor? TargetCache { get; set; }
}