mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fix: Make CheckpointInfo constructor public (#1156)
In order to be able to restore checkpoints (and even implement ICheckpointStore)
This commit is contained in:
@@ -29,8 +29,13 @@ public sealed class CheckpointInfo : IEquatable<CheckpointInfo>
|
|||||||
/// hexadecimal format and sets the timestamp to the current UTC time.</remarks>
|
/// hexadecimal format and sets the timestamp to the current UTC time.</remarks>
|
||||||
internal CheckpointInfo(string runId) : this(runId, Guid.NewGuid().ToString("N")) { }
|
internal CheckpointInfo(string runId) : this(runId, Guid.NewGuid().ToString("N")) { }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the CheckpointInfo class with the specified run and checkpoint identifiers.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="runId">The unique identifier for the run. Cannot be null or empty.</param>
|
||||||
|
/// <param name="checkpointId">The unique identifier for the checkpoint. Cannot be null or empty.</param>
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
internal CheckpointInfo(string runId, string checkpointId)
|
public CheckpointInfo(string runId, string checkpointId)
|
||||||
{
|
{
|
||||||
this.RunId = Throw.IfNullOrEmpty(runId);
|
this.RunId = Throw.IfNullOrEmpty(runId);
|
||||||
this.CheckpointId = Throw.IfNullOrEmpty(checkpointId);
|
this.CheckpointId = Throw.IfNullOrEmpty(checkpointId);
|
||||||
|
|||||||
Reference in New Issue
Block a user