TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Interface AIGenerateAndWaitOptions

    interface AIGenerateAndWaitOptions {
        idempotencyKey?: string;
        timeout?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    idempotencyKey?: string

    Key that makes the request safe to retry: a repeated key returns the existing job instead of starting a new one, even if the body differs. Letters, digits, _ and -, up to 64 characters. Kept for 1 hour. When omitted, the SDK generates one per call so its own retries never start a second generation.

    timeout?: number

    Seconds to wait for the generation to finish. At the timeout, the job is returned as it is, possibly still queued or in_progress. Defaults to 25, which leaves room inside the default 30 s Analysis timeout. 0 checks once without waiting. Must be finite.