fix(nodes): update Invoker.invoke() docstring

This commit is contained in:
psychedelicious 2023-06-08 20:22:46 +10:00
parent 69539a0472
commit 9c57b18008

View File

@ -22,7 +22,8 @@ class Invoker:
def invoke( def invoke(
self, graph_execution_state: GraphExecutionState, invoke_all: bool = False self, graph_execution_state: GraphExecutionState, invoke_all: bool = False
) -> str | None: ) -> str | None:
"""Determines the next node to invoke and returns the id of the invoked node, or None if there are no nodes to execute""" """Determines the next node to invoke and enqueues it, preparing if needed.
Returns the id of the queued node, or `None` if there are no nodes left to enqueue."""
# Get the next invocation # Get the next invocation
invocation = graph_execution_state.next() invocation = graph_execution_state.next()