File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 246246 "youtube" : " https://www.youtube.com/@jamesbriggs"
247247 }
248248 }
249- }
249+ }
Original file line number Diff line number Diff line change @@ -77,6 +77,28 @@ Validate the graph:
7777 (optional) ** no cycles** when strict= True
7878Returns self on success; raises GraphCompileError otherwise.
7979
80+ # ### execute\_many
81+
82+ ```python
83+ async def execute_many (inputs : Iterable[dict[str , Any]],
84+ * ,
85+ concurrency : int = 5 ) -> list[Any]
86+ ```
87+
88+ Execute the graph on many inputs concurrently.
89+
90+ ** Arguments** :
91+
92+ - `inputs` (`Iterable[dict ]` ): An iterable of input dicts to feed into the graph.
93+ - `concurrency` (`int ` ): Maximum number of graph executions to run at once.
94+ - `state` (`Optional[Any]` ): Optional shared state to pass to each execution.
95+ If you want isolated state per execution, pass None
96+ and the graph& # x27;s normal semantics will apply.
97+
98+ ** Returns** :
99+
100+ `list[Any]` : The list of results in the same order as `` inputs`` .
101+
80102# ### get\_callback
81103
82104```python
You can’t perform that action at this time.
0 commit comments