Vloop API
    Preparing search index...

    Interface ChatTurnOptions

    interface ChatTurnOptions {
        forkSource?: { sessionId: string; turnId: string };
        input?: ChatInputPart[];
        prompt?: string;
        promptFile?: string;
        resumeChoice?: "resume" | "fresh" | "fork" | "own-branch";
        timeoutMs?: number;
        whenBusy?: "queue" | "steer" | "reject";
    }
    Index
    forkSource?: { sessionId: string; turnId: string }

    The completed turn that the fork starts from.

    input?: ChatInputPart[]

    Text and image parts of the prompt.

    prompt?: string

    Inline prompt; takes precedence over promptFile.

    promptFile?: string

    Prompt file when inline text is absent.

    resumeChoice?: "resume" | "fresh" | "fork" | "own-branch"

    How the turn continues the provider session. Defaults to resume. A refused turn names the choices that answer it in its choices. own-branch answers a refusal with the code VLOOPEX_BRANCH_CONFLICT, which a chat that the server runs gets when another client continued its provider session on another branch: the turn continues the chat's resume anchor, the recorded continuation point of the chat: where its last turn ended, or the head of the branch that the chat imported or opened at. A chat that its loop runs without the server checks no branches and refuses own-branch.

    timeoutMs?: number

    Turn timeout in milliseconds.

    whenBusy?: "queue" | "steer" | "reject"

    What the prompt does while another turn runs. Defaults to queue.