You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support null (~) for fallback agents in handoffs configuration
- Allow using ~ (null) in addition to [] for agents with no specific triggers
- Automatically convert null to empty array in processMultiAgentConfig
- Update demo and documentation to use cleaner ~ syntax for fallback agents
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
general: ~# Fallback when no specific conditions match
455
455
456
456
Each multi-agent configuration automatically registers a service with the ID pattern ``ai.multi_agent.{name}``.
457
457
@@ -484,7 +484,7 @@ For the example above, the service ``ai.multi_agent.support`` is registered and
484
484
Handoff rules are defined as a key-value mapping where:
485
485
486
486
* **Key**: The name of the target agent (automatically prefixed with ``ai.agent.``)
487
-
* **Value**: An array of keywords or phrases that trigger this handoff. When the orchestrator identifies these keywords in the user's request, it delegates to the specified agent. An empty array acts as a fallback for requests that don't match other rules.
487
+
* **Value**: An array of keywords or phrases that trigger this handoff. When the orchestrator identifies these keywords in the user's request, it delegates to the specified agent. Use ``~`` (null) or ``[]`` (empty array) for fallback agents that handle requests not matching other rules.
488
488
489
489
.. note::
490
490
@@ -513,10 +513,10 @@ Handoff rules are defined as a key-value mapping where:
0 commit comments