intellibrix v1.0.0
    Preparing search index...

    Function runAgentLoop

    • Runs a single agent loop: generate -> append -> (if tool calls) execute in parallel, gated by approval -> append results -> repeat, until the model stops calling tools, stopWhen returns true, maxSteps is reached, or the loop is aborted.

      Parameters

      Returns Promise<LoopResult>