File: Agents\IAgentEnvironmentDetector.cs
Web Access
Project: src\src\Aspire.Cli\Aspire.Cli.Tool.csproj (aspire)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Aspire.Cli.Agents;
 
/// <summary>
/// Interface for detecting agent environments in the current context.
/// </summary>
internal interface IAgentEnvironmentDetector
{
    /// <summary>
    /// Detects available agent environments by running all registered scanners.
    /// </summary>
    /// <param name="context">The scan context containing directories and user preferences.</param>
    /// <param name="cancellationToken">A token to cancel the operation.</param>
    /// <returns>An array of applicators for detected agent environments.</returns>
    Task<AgentEnvironmentApplicator[]> DetectAsync(
        AgentEnvironmentScanContext context,
        CancellationToken cancellationToken);
}