ExecutionContext
Execution context for nodes containing state and runtime data.
Generic container that holds node state and additional context data for node execution. Provides dictionary-like access to context data while maintaining type safety for the node state.
Attributes
attributenode_state= node_stateFunctions
func__init____init__(self, /, node_state, **kwargs) -> NoneInitialize execution context with node state and additional data.
Args: node_state: Node-specific state object **kwargs: Additional context data as key-value pairs
Raises: AttributeError: If a key already exists in the context
paramselfparamnode_stateNSparamkwargsAny= {}Returns
Nonefunc__getitem____getitem__(self, /, key) -> AnyGet context data by key.
Args: key: The key to retrieve from context
Returns: Value associated with the key
Raises: KeyError: If key is not found in context
paramselfparamkeystrReturns
Anyfunc__repr____repr__(self) -> strReturn string representation of the execution context.
Returns: String representation showing context ID, node state, and context data
paramselfReturns
strLast updated on