Expand description
Function nodes: nodes that run a function body.
Structs§
- Function
Node - A node that runs a function. The constructors return it as
Arc<dyn Node>.
Functions§
- emitting_
function_ node - A function node whose body can emit intermediate events
(progress, a RequestInput) through
Emitbefore returning its output. - emitting_
function_ node_ with_ schema - As
emitting_function_node, with input and output schemas. - function_
node - A node that runs
fon its (converted) input. - function_
node_ from_ state - A node whose
Paramsstruct is filled from session state, one field per state key (name the key with#[serde(rename = "key")]); a field namednode_inputreceives the node’s input instead. The output schema is inferred fromOut. - function_
node_ with_ schema - As
function_node, with input and output schemas.
Type Aliases§
- Emit
- The callback an emitting node body uses: forwards an event to the node’s consumer and resolves once the consumer took it (an error once the consumer is gone).