Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Workflows/IMessageRouter.cs
T
Ben ThomasandGitHub 647db9635a .NET: Rename workflows projects (#975)
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows

* Removing local settings.

* Removing remining old files from merge.
2025-09-29 18:30:45 +00:00

18 lines
492 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.AI.Workflows;
internal interface IMessageRouter
{
HashSet<Type> IncomingTypes { get; }
bool CanHandle(object message);
bool CanHandle(Type candidateType);
ValueTask<CallResult?> RouteMessageAsync(object message, IWorkflowContext context, bool requireRoute = false);
}