execute_capability

Function execute_capability 

Source
pub fn execute_capability(
    agent_id: &str,
    capability_id: &str,
    step_inputs: Value,
) -> Result<Value, String>
Expand description

Execute an agent capability

§Arguments

  • agent_id - The agent name (e.g., “utils”, “transform”, “csv”)
  • capability_id - The capability name (e.g., “random-double”, “extract”)
  • step_inputs - The input data as JSON Value

§Returns

Result containing the capability result as JSON Value or an error