mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* skeleton * wip * rename + fix tests * implement workflow tests * fix comments * Update dotnet/src/Microsoft.Agents.AI.Hosting/HostApplicationBuilderWorkflowExtensions.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fixes * fix worfklow build logic * rollback + new overload on workflow builder * address PR comments * :) --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
27 lines
901 B
C#
27 lines
901 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using Microsoft.Agents.AI.Workflows;
|
|
|
|
namespace Microsoft.Agents.AI.Hosting;
|
|
|
|
/// <summary>
|
|
/// Provides a catalog of registered workflows within the hosting environment.
|
|
/// </summary>
|
|
public abstract class WorkflowCatalog
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="WorkflowCatalog"/> class.
|
|
/// </summary>
|
|
protected WorkflowCatalog()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Asynchronously retrieves all registered workflows from the catalog.
|
|
/// </summary>
|
|
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
|
|
public abstract IAsyncEnumerable<Workflow> GetWorkflowsAsync(CancellationToken cancellationToken = default);
|
|
}
|