pub async fn execute_capability(
agent_id: &str,
capability_id: &str,
step_inputs: Value,
) -> Result<Value, String>Expand description
Execute an agent capability asynchronously
§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
§Note
This is an async function. Sync capabilities are automatically wrapped
with tokio::task::spawn_blocking by the #[capability] macro.