Aggregator Node
graphorchestrator.nodes.nodes.AggregatorNode
Bases: Node
A node that aggregates multiple states into a single state.
This node takes a list of State objects, aggregates them, and returns a new State object representing the aggregated result.
Source code in graphorchestrator\nodes\nodes.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
execute(states)
async
Executes the aggregation logic of the node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
states
|
List[State]
|
The list of states to aggregate. |
required |
Returns:
Name | Type | Description |
---|---|---|
State |
State
|
The aggregated state. |
Source code in graphorchestrator\nodes\nodes.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|