lloyal-agents API Reference
    Preparing search index...

    Interface DivergeOptions

    Options for multi-branch diverge

    Either parent or prompt must be provided. When parent is given, branches fork from it and no new root is created. When only prompt is given, a fresh root is created, prefilled, and cleaned up on error.

    interface DivergeOptions {
        attempts: number;
        params?: SamplingParams;
        parent?: Branch;
        prompt?: string;
    }
    Index

    Properties

    attempts: number

    Number of parallel generation attempts

    params?: SamplingParams

    Sampling parameters for all attempts

    parent?: Branch

    Parent branch to fork from (mutually exclusive with prompt)

    prompt?: string

    Pre-formatted prompt for creating a fresh root (mutually exclusive with parent)