pub struct NodeOutput {
pub outputs: IndexMap<String, Value>,
pub branch: Option<String>,
pub writes: Vec<(Selector, Value)>,
pub usage: Option<Usage>,
pub metadata: IndexMap<String, Value>,
}Expand description
Successful node result.
Fields§
§outputs: IndexMap<String, Value>Outputs stored under the node’s namespace (<node_id>.<key>).
branch: Option<String>Selected handle for branch nodes.
writes: Vec<(Selector, Value)>Writes to other namespaces (conversation variables, loop variables, …), applied in order.
usage: Option<Usage>§metadata: IndexMap<String, Value>Observability data (resolved inputs, request details…). Not stored in the pool.
Implementations§
Source§impl NodeOutput
impl NodeOutput
pub fn new() -> Self
pub fn with(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn branch(self, handle: impl Into<String>) -> Self
pub fn write(self, selector: Selector, value: Value) -> Self
pub fn usage(self, usage: Usage) -> Self
pub fn meta(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Trait Implementations§
Source§impl Clone for NodeOutput
impl Clone for NodeOutput
Source§impl Debug for NodeOutput
impl Debug for NodeOutput
Source§impl Default for NodeOutput
impl Default for NodeOutput
Source§impl From<NodeOutput> for NodeOutcome
impl From<NodeOutput> for NodeOutcome
Source§fn from(o: NodeOutput) -> Self
fn from(o: NodeOutput) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeOutput
impl PartialEq for NodeOutput
impl StructuralPartialEq for NodeOutput
Auto Trait Implementations§
impl Forget for NodeOutput
impl Freeze for NodeOutput
impl Move for NodeOutput
impl RefUnwindSafe for NodeOutput
impl Send for NodeOutput
impl Sync for NodeOutput
impl Unpin for NodeOutput
impl UnsafeUnpin for NodeOutput
impl UnwindSafe for NodeOutput
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