pub struct FrameSnapshot {
pub pool: PoolSnapshot,
pub nodes: IndexMap<String, NodeSnapshot>,
pub edges: IndexMap<String, EdgeStatus>,
pub outputs: IndexMap<String, Value>,
pub writes: Vec<(Selector, Value)>,
pub broke: bool,
pub usage: Usage,
}Expand description
Persisted state of one execution frame (the root graph, or one container body run).
Fields§
§pool: PoolSnapshot§nodes: IndexMap<String, NodeSnapshot>Per-node state, keyed by node id. Nodes absent from the map have not been reached.
edges: IndexMap<String, EdgeStatus>Edge states, keyed by edge id.
outputs: IndexMap<String, Value>Accumulated response outputs of this frame (answer text, end outputs).
writes: Vec<(Selector, Value)>Writes to namespaces outside this frame’s scope, in commit order (child frames only).
broke: boolWhether a loop-end node completed in this frame.
usage: UsageUsage accumulated by this frame’s nodes.
Trait Implementations§
Source§impl Clone for FrameSnapshot
impl Clone for FrameSnapshot
Source§impl Debug for FrameSnapshot
impl Debug for FrameSnapshot
Source§impl Default for FrameSnapshot
impl Default for FrameSnapshot
Source§impl<'de> Deserialize<'de> for FrameSnapshot
impl<'de> Deserialize<'de> for FrameSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameSnapshot
impl PartialEq for FrameSnapshot
Source§impl Serialize for FrameSnapshot
impl Serialize for FrameSnapshot
impl StructuralPartialEq for FrameSnapshot
Auto Trait Implementations§
impl Forget for FrameSnapshot
impl Freeze for FrameSnapshot
impl Move for FrameSnapshot
impl RefUnwindSafe for FrameSnapshot
impl Send for FrameSnapshot
impl Sync for FrameSnapshot
impl Unpin for FrameSnapshot
impl UnsafeUnpin for FrameSnapshot
impl UnwindSafe for FrameSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more