Skip to content

Commit

Permalink
Fixes parallelism action() typos
Browse files Browse the repository at this point in the history
The signature was not correct.
  • Loading branch information
skrawcz committed Dec 5, 2024
1 parent 0eec005 commit 1075a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/concepts/parallelism.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ This looks as follows:
class TestMultiplePromptsWithSubgraph(MapStates):
def action(self) -> Action | Callable | RunnableGraph:
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
return runnable_graph
@property
Expand Down Expand Up @@ -478,7 +478,7 @@ Specifying it as part of the action -- will override the global executor (note t
class TestMultiplePrompts(MapStates):
def action(self) -> Action | Callable | RunnableGraph:
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
return runnable_graph
def executor(self) -> Executor:
Expand Down Expand Up @@ -533,7 +533,7 @@ You can also disable it globally using the application builder:
class TestMultiplePrompts(MapStates):
def action(self) -> Action | Callable | RunnableGraph:
def action(self, state: State, inputs: Dict[str, Any]) -> Action | Callable | RunnableGraph:
return runnable_graph
def tracker(self, context) -> TrackingBehavior | None:
Expand Down

0 comments on commit 1075a1c

Please sign in to comment.