Skip to content

Commit 89c2862

Browse files
committed
Fixes parallelism action() typos
The signature was not correct.
1 parent 0eec005 commit 89c2862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/concepts/parallelism.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ This looks as follows:
372372
373373
class TestMultiplePromptsWithSubgraph(MapStates):
374374
375-
def action(self) -> Action | Callable | RunnableGraph:
375+
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
376376
return runnable_graph
377377
378378
@property
@@ -478,7 +478,7 @@ Specifying it as part of the action -- will override the global executor (note t
478478
479479
class TestMultiplePrompts(MapStates):
480480
481-
def action(self) -> Action | Callable | RunnableGraph:
481+
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
482482
return runnable_graph
483483
484484
def executor(self) -> Executor:
@@ -533,7 +533,7 @@ You can also disable it globally using the application builder:
533533
534534
class TestMultiplePrompts(MapStates):
535535
536-
def action(self) -> Action | Callable | RunnableGraph:
536+
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
537537
return runnable_graph
538538
539539
def tracker(self, context) -> TrackingBehavior | None:

0 commit comments

Comments
 (0)