File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1010- Autonomous agent collaboration without central control
1111- Dynamic task distribution based on agent capabilities
1212- Collective intelligence through shared context
13+ - Human input via user interrupts raised in BeforeNodeCallEvent hooks and agent nodes
1314"""
1415
1516import asyncio
@@ -676,6 +677,9 @@ def _build_node_input(self, target_node: SwarmNode) -> str:
676677 def _activate_interrupt (self , node : SwarmNode , interrupts : list [Interrupt ]) -> MultiAgentNodeInterruptEvent :
677678 """Activate the interrupt state.
678679
680+ Note, a Swarm may be interrupted either from a BeforeNodeCallEvent hook or from within an agent node. In either
681+ case, we must manage the interrupt state of both the Swarm and the individual agent nodes.
682+
679683 Args:
680684 node: The interrupted node.
681685 interrupts: The interrupts raised by the user.
You can’t perform that action at this time.
0 commit comments