Records the state at a particular node and step in graph execution.
Usage
new_state_snapshot(state, node, step)
Arguments
- state
Named list of current state
- node
Character string naming the node
- step
Integer step number
Value
A state_snapshot S7 object.
Examples
snap <- new_state_snapshot(list(messages = list("hi")), "agent", 1L)
snap@node
#> [1] "agent"
snap@step
#> [1] 1