RestoreContext
RestoreContext
Section titled “RestoreContext”Kind: class
Source: src/graphrefly/_facade.py:311
Description
Section titled “Description”Descriptor construction context with no raw Node/Ctx/native handles.
Attributes
Section titled “Attributes”| Name | Type | Description |
|---|---|---|
id | str | Return the checkpoint node id being restored. |
name | `str | None` |
deps | list[str] | Return dependency ids recorded for the checkpoint node. |
config | `object | None` |
config_version | `object | None` |
checkpoint | GraphCheckpoint | Return the full loaded graph checkpoint material. |
Methods
Section titled “Methods”register_state
Section titled “register_state”register_state() -> NoneRegister the checkpoint node as a restored state node.
Source: src/graphrefly/_facade.py:344
register_node
Section titled “register_node”register_node(callback: Callable[[Ctx], object], factory: str | None = None) -> NoneRegister the checkpoint node as a restored callback node.
Source: src/graphrefly/_facade.py:348