mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET: feat: Improve Support for AIAgent-as-Executor (#432)
* feat: Support Executor-targeted messages This adds support for only sending a message to a given executor. Messages will still only route through connected edges. * feat: Support sending all valid input types after starting a run * feat: Normalize AIAgent-as-Executor Message Protocol to use MEAI types
This commit is contained in:
@@ -23,9 +23,11 @@ internal class MessageRouter
|
||||
{
|
||||
this._typedHandlers = Throw.IfNull(handlers);
|
||||
this._hasCatchall = this._typedHandlers.ContainsKey(typeof(object));
|
||||
|
||||
this.IncomingTypes = [.. this._typedHandlers.Keys];
|
||||
}
|
||||
|
||||
public HashSet<Type> IncomingTypes => [.. this._typedHandlers.Keys];
|
||||
public HashSet<Type> IncomingTypes { get; }
|
||||
|
||||
public bool CanHandle(object message) => this.CanHandle(Throw.IfNull(message).GetType());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user