mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
b25b0af49b
* refactor: Unify ExecutorIsh and ExecutorRegistration => ExecutorBinding * Switch to more modern Record type-tree for Sum Types * Unify APIs for getting ExecutorBinding * Fix an issue where workflows consisting entirely of cross-run shareable executors which are not instance-resettable do not properly clear state when running non-concurrently. * feat: Simplify function-to-executor pattern * refactor: Normalize API naming
24 lines
735 B
C#
24 lines
735 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Agents.AI.Workflows;
|
|
|
|
/// <summary>
|
|
/// Represents a placeholder entry for an <see cref="ExecutorBinding"/>, identified by a unique ID.
|
|
/// </summary>
|
|
/// <param name="Id">The unique identifier for the placeholder registration.</param>
|
|
public record ExecutorPlaceholder(string Id)
|
|
: ExecutorBinding(Id,
|
|
null,
|
|
typeof(Executor),
|
|
Id)
|
|
{
|
|
/// <inheritdoc/>
|
|
public override bool SupportsConcurrentSharedExecution => false;
|
|
|
|
/// <inheritdoc/>
|
|
public override bool SupportsResetting => false;
|
|
|
|
/// <inheritdoc/>
|
|
public override bool IsSharedInstance => false;
|
|
}
|