pub fn dynamic_node<In, Out, F, Fut>(
name: &str,
f: F,
cfg: NodeConfig,
) -> Arc<dyn Node> ⓘwhere
In: DeserializeOwned + JsonSchema + Send + 'static,
Out: Serialize + Send + 'static,
F: Fn(Context, In, Emit) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Out, AgentError>> + Send + 'static,Expand description
A node whose body orchestrates children with run_node. Its rerun_on_resume defaults to
true.