Member Junction
    Preparing search index...
    interface RunDecisionParams {
        PromptID?: string;
        PromptName?: string;
        Questions: Record<string, DecisionQuestion>;
        State: string | Record<string, unknown>;
        TimeoutMS?: number;
    }
    Index

    Properties

    PromptID?: string

    The ID of the Decision-typed prompt to run. Takes precedence over PromptName.

    PromptName?: string

    The name of the Decision-typed prompt to run, matched case-insensitively. The server uses Default Decision when neither this nor PromptID is set.

    Questions: Record<string, DecisionQuestion>

    The questions, keyed by a short label for code, answered together in one call. Write the instructions and option descriptions for the model: it never reads the keys.

    State: string | Record<string, unknown>

    The state the questions are about: text, or an object (sent as JSON). Keep it to what the questions need.

    TimeoutMS?: number

    Bounds each model call on the server, in milliseconds. Unset or not positive, the server uses its default, RunDecisionResolver.DEFAULT_TIMEOUT_MS; a value over RunDecisionResolver.MAX_TIMEOUT_MS is cut to it. A call is never unbounded.