orkes.graph.NodePoolItem#

pydantic model orkes.graph.NodePoolItem[source]#

Represents an item in the node pool, which is a collection of nodes and their associated edges within the graph. Each item encapsulates a node and an optional edge, defining a step in the graph’s execution path.

node#

The node in the graph.

Type:

Node

edge#

The edge originating from the node. It can be an Edge object or a string identifier. Defaults to None if there’s no outgoing edge from this node.

Type:

Optional[Union[Edge, str]]

Config:
  • arbitrary_types_allowed: bool = True

Fields:
  • edge (Edge | str | None)

  • node (Node)

field edge: Edge | str | None = None#
field node: Node [Required]#