Skip to main content

builtin_race

Function builtin_race 

Source
pub async fn builtin_race(
    args: &[DslValue],
    ctx: &ReasoningBuiltinContext,
) -> Result<DslValue>
Expand description

Execute the race builtin: run multiple agent calls, return first to complete.

Arguments:

  • tasks: list of maps, each with {agent: string, message: string}

Returns the first successful result as a string.