Skip to content

Commit 35219e1

Browse files
committed
chore: update graphai docs
1 parent 26eba31 commit 35219e1

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@
246246
"youtube": "https://www.youtube.com/@jamesbriggs"
247247
}
248248
}
249-
}
249+
}

graphai/client-reference/graph.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,28 @@ Validate the graph:
7777
(optional) **no cycles** when strict=True
7878
Returns 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'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

0 commit comments

Comments
 (0)