rednode API - v0.50.0
    Preparing search index...

    Interface AskOptions

    Options for agent.ask.

    interface AskOptions {
        context?: unknown;
        onText?: (text: string) => void;
        signal?: AbortSignal;
    }
    Index
    context?: unknown

    Data the assistant needs, such as the mod's state. Sent as JSON beside the question.

    onText?: (text: string) => void

    Called with each piece of the answer as it is written, for showing it while it streams.

    signal?: AbortSignal

    Stops the question. The promise then rejects.