Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Hosting/WorkflowCatalog.cs
T
0331331dbc .NET [WIP]: introduce Hosting extensions for Workflows (#1359)
* 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>
2025-10-14 19:44:58 +00:00

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);
}