pub fn emitting_function_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 function node whose body can emit intermediate events
(progress, a RequestInput) through Emit before returning its output.