mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* refactor: remove unused internals * feat: Execution Mode for sharing a workflow among concurrent runs * feat: Update WorkflowHostAgent to support concurrent execution * Also update AsAgent APIs to support injecting a CheckpointManager and an IWorkflowExecutionEnvironment * fix: Make Read logic consistent in DeclarativeWorkflowContext
14 lines
470 B
C#
14 lines
470 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows;
|
|
|
|
internal sealed class AIAgentIDEqualityComparer : IEqualityComparer<AIAgent>
|
|
{
|
|
public static AIAgentIDEqualityComparer Instance { get; } = new();
|
|
public bool Equals(AIAgent? x, AIAgent? y) => x?.Id == y?.Id;
|
|
public int GetHashCode([DisallowNull] AIAgent obj) => obj?.GetHashCode() ?? 0;
|
|
}
|