Skip to main content

run_node

Function run_node 

Source
pub async fn run_node(
    ctx: &Context,
    child: Arc<dyn Node>,
    input: Value,
    opts: RunNodeOptions,
) -> Result<Value, AgentError>
Expand description

Schedules child under the dynamic node whose context ctx is, and returns its output (Value::Null for none). Callers convert the value to their type.