pub enum NodeDefinition {
Llm {
model: Option<String>,
system_prompt: String,
tools: Vec<String>,
edges: HashMap<String, String>,
},
Function {
action: String,
edges: HashMap<String, String>,
},
Condition {
expr: String,
edges: HashMap<String, String>,
},
Graph {
graph_name: String,
edges: HashMap<String, String>,
},
}Variants§
Llm
LLM-based agent node
Fields
Function
Function execution node (e.g., shell command, script)
Condition
Conditional branching node (no LLM, just logic)
Graph
Sub-graph execution
Implementations§
Trait Implementations§
Source§impl Clone for NodeDefinition
impl Clone for NodeDefinition
Source§fn clone(&self) -> NodeDefinition
fn clone(&self) -> NodeDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeDefinition
impl Debug for NodeDefinition
Source§impl<'de> Deserialize<'de> for NodeDefinition
impl<'de> Deserialize<'de> for NodeDefinition
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
Auto Trait Implementations§
impl Freeze for NodeDefinition
impl RefUnwindSafe for NodeDefinition
impl Send for NodeDefinition
impl Sync for NodeDefinition
impl Unpin for NodeDefinition
impl UnsafeUnpin for NodeDefinition
impl UnwindSafe for NodeDefinition
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