pub enum NodeKind {
Show 15 variants
Start,
End,
LLM(LlmConfig),
Retriever(VectorConfig),
Code(ScriptConfig),
IfElse(Condition),
Tool(McpConfig),
Loop(LoopConfig),
TryCatch(TryCatchConfig),
SubWorkflow(SubWorkflowConfig),
Switch(SwitchConfig),
Parallel(ParallelConfig),
Approval(ApprovalConfig),
Form(FormConfig),
Vision(VisionConfig),
}Expand description
Types of nodes available in the workflow
Variants§
Start
Start node - entry point of the workflow
End
End node - exit point of the workflow
LLM(LlmConfig)
LLM invocation node
Retriever(VectorConfig)
Vector database retrieval node
Code(ScriptConfig)
Code execution node (Rust script or Wasm)
IfElse(Condition)
Conditional branching node
Tool(McpConfig)
MCP (Model Context Protocol) tool invocation
Loop(LoopConfig)
Loop/iteration node
TryCatch(TryCatchConfig)
Error handling node (try-catch-finally)
SubWorkflow(SubWorkflowConfig)
Sub-workflow execution node
Switch(SwitchConfig)
Switch/Case multi-branch routing
Parallel(ParallelConfig)
Parallel execution node (fan-out/fan-in)
Approval(ApprovalConfig)
Human approval node (wait for approval before continuing)
Form(FormConfig)
Human form input node (wait for form submission)
Vision(VisionConfig)
Vision/OCR node for image text extraction
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
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 NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnwindSafe for NodeKind
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