mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows * Removing local settings. * Removing remining old files from merge.
18 lines
492 B
C#
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);
|
|
}
|