Member Junction
    Preparing search index...

    A decision driver that answers every question at once, with no provider. A Likelihood gets ScriptedDecision.LikelihoodFor of its instructions; a Choice or Score its first option or level, with all the probability on it. Calls are recorded on Calls.

    While disarmed it fails every call instead: a name that had no real registration before the bundle keeps resolving to the stand-in after the restore, and must not hand later bundles an answer.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    LikelihoodFor: (instructions: string) => number = ...

    The probability every Likelihood gets, given its instructions. Defaults to a confident yes, which passes a finishIf gate at its 0.9 threshold.

    Accessors

    • get apiKey(): string

      Only sub-classes can access the API key

      Returns string

    Methods

    • Executes a typed decision request across one or more questions about a given state. This method wraps driver execution with input validation, output verification, execution timing, and structured error handling. It never throws.

      Parameters

      • params: DecisionParams

        Decision request parameters including state, questions, and model.

      Returns Promise<DecisionResult>

      A Promise resolving to a DecisionResult.

    • Validates driver output DecisionResult against the requested questions.

      Parameters

      Returns string[]

      An array of error descriptions, empty if valid.

    • Validates input DecisionParams against the decision contract.

      Parameters

      Returns string[]

      An array of error descriptions, empty if valid.