Skip to main content

start_agent_drone_run

Function start_agent_drone_run 

Source
pub(crate) async fn start_agent_drone_run(
    state: &AppState,
    drone: &DroneDefinition,
    input: Value,
    by_agent: &str,
) -> Result<String, String>
Expand description

Start a run an agent fires with Drone fire: the ledger row says which agent did it (by_agent is the agent’s id), as agent:<id> like every other path, so no agent id can read as the operator.

It runs drone as the caller loaded and checked it: the graph is not fetched again, so a drone saved in between is not the one that runs.