-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathSuperStepStartInfo.cs
More file actions
27 lines (22 loc) · 1.02 KB
/
SuperStepStartInfo.cs
File metadata and controls
27 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Debug information about the SuperStep starting to run.
/// </summary>
public sealed class SuperStepStartInfo(HashSet<string>? sendingExecutors = null)
{
/// <summary>
/// The unique identifiers of <see cref="Executor"/> instances that sent messages during the previous SuperStep.
/// </summary>
public HashSet<string> SendingExecutors { get; } = sendingExecutors ?? [];
/// <summary>
/// Gets a value indicating whether there are any external messages queued during the previous SuperStep.
/// </summary>
public bool HasExternalMessages { get; init; }
/// <summary>
/// Gets the <see cref="CheckpointInfo"/> corresponding to the checkpoint restored at the start of this SuperStep, if any.
/// <see langword="null"/> if checkpointing was not enabled when the run was started.
/// </summary>
public CheckpointInfo? Checkpoint { get; init; }
}