mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
[BREAKING] .NET: Decouple Checkpointing from Run/StreamAsync APIs (#4037)
* [BREAKING] refactor: Decouple Checkpointing and Execution APIs With this change, Checkpointing becomes an property of an IWorkflowExecutionEnvironment. This lets environments that are tightly-coupled to their CheckpointManager avoid needing to present APIs that would not work (e.g. taking in an InMemory CheckpointManager for Durable Tasks, for example) * refactor: Normalize IsCheckpointingEnabled naming
This commit is contained in:
@@ -14,11 +14,11 @@ namespace Microsoft.Agents.AI.Workflows;
|
||||
/// A <see cref="Workflow"/> run instance supporting a streaming form of receiving workflow events, and providing
|
||||
/// a mechanism to send responses back to the workflow.
|
||||
/// </summary>
|
||||
public sealed class StreamingRun : IAsyncDisposable
|
||||
public sealed class StreamingRun : CheckpointableRunBase, IAsyncDisposable
|
||||
{
|
||||
private readonly AsyncRunHandle _runHandle;
|
||||
|
||||
internal StreamingRun(AsyncRunHandle runHandle)
|
||||
internal StreamingRun(AsyncRunHandle runHandle) : base(runHandle)
|
||||
{
|
||||
this._runHandle = Throw.IfNull(runHandle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user