.NET: Preserve and propagate CreatedAt through workflows (#3930)

* Preserve per-message CreatedAt attribute if it's available

* Add unit test

---------

Co-authored-by: Sam Chang <changsam@microsoft.com>
Co-authored-by: samchang-msft <samchang.msft@gmail.com>
This commit is contained in:
Nicole Serafino
2026-05-29 16:41:40 -05:00
committed by GitHub
Unverified
parent 07a1e83492
commit edcc786651
2 changed files with 37 additions and 1 deletions
@@ -297,7 +297,7 @@ public class AgentResponse
AgentId = this.AgentId,
ResponseId = this.ResponseId,
MessageId = message.MessageId,
CreatedAt = this.CreatedAt,
CreatedAt = message.CreatedAt ?? this.CreatedAt,
};
}