.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:
Jacob Alber
2025-08-19 20:04:03 +00:00
committed by GitHub
parent 953ed7560d
commit baaa9c0aee
21 changed files with 595 additions and 52 deletions
@@ -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());