From cfcb90bfe0bfddd205b2f3ccfaffac2fc5076d78 Mon Sep 17 00:00:00 2001 From: Jacob Alber Date: Fri, 3 Oct 2025 11:42:04 -0400 Subject: [PATCH] fix: Make CheckpointInfo constructor public (#1156) In order to be able to restore checkpoints (and even implement ICheckpointStore) --- dotnet/src/Microsoft.Agents.AI.Workflows/CheckpointInfo.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/CheckpointInfo.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/CheckpointInfo.cs index 33fd9c8e3a..25b1d8ce82 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/CheckpointInfo.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/CheckpointInfo.cs @@ -29,8 +29,13 @@ public sealed class CheckpointInfo : IEquatable /// hexadecimal format and sets the timestamp to the current UTC time. internal CheckpointInfo(string runId) : this(runId, Guid.NewGuid().ToString("N")) { } + /// + /// Initializes a new instance of the CheckpointInfo class with the specified run and checkpoint identifiers. + /// + /// The unique identifier for the run. Cannot be null or empty. + /// The unique identifier for the checkpoint. Cannot be null or empty. [JsonConstructor] - internal CheckpointInfo(string runId, string checkpointId) + public CheckpointInfo(string runId, string checkpointId) { this.RunId = Throw.IfNullOrEmpty(runId); this.CheckpointId = Throw.IfNullOrEmpty(checkpointId);