lloyal-agents API Reference
    Preparing search index...

    Interface DivergeResult

    Aggregate result from diverge

    The best branch is still alive; all other attempt branches have been pruned. The caller owns cleanup — typically via Session.promote to make the best branch the new conversation trunk.

    interface DivergeResult {
        attempts: DivergeAttempt[];
        best: Branch;
        bestOutput: string;
        prefixLength: number;
        steps: number;
        totalTokens: number;
    }
    Index

    Properties

    attempts: DivergeAttempt[]

    All attempts (losers already pruned, branches disposed)

    best: Branch

    Lowest-perplexity branch — still alive, caller owns cleanup

    bestOutput: string

    Text output from the best attempt

    prefixLength: number

    Shared prefix length in tokens (for KV savings calculation)

    steps: number

    Number of batched commit steps

    totalTokens: number

    Sum of all attempt token counts