Member Junction
    Preparing search index...

    Interface DecisionParams

    Parameters for a decision operation.

    interface DecisionParams {
        CancellationToken?: AbortSignal;
        Model: string;
        Questions: Record<string, DecisionQuestion>;
        State: string | Record<string, unknown>;
    }
    Index

    Properties

    CancellationToken?: AbortSignal

    Optional signal for cancelling the request. The driver is responsible for honoring it: BaseDecision.Decide() does not check it and calls the driver even when it is already aborted, as BaseLLM does with ChatParams.cancellationToken. A driver that stops because the signal fired either returns a failed result or throws; in both cases Decide() resolves with success: false and empty Answers.

    Model: string

    Provider API name (AIModelVendor.APIName) passed to the driver.

    Questions: Record<string, DecisionQuestion>

    Named questions, answered in one call. Question keys identify answers in code and are NOT instructions to the model.

    State: string | Record<string, unknown>

    The state the questions are asked about. Keep it narrow to avoid state projection degradation. Can be a non-empty string or an object with at least one key.