Anchorage API reference
    Preparing search index...
    interface BackgroundTaskRoutesOptions {
        basePath?: string;
        manager: BackgroundTaskReads;
        authorize(scope: { runId?: string; threadId?: string }): Promise<boolean>;
    }
    Index

    Properties

    Methods

    Properties

    basePath?: string

    Route prefix. Default '/background-tasks'.

    The read surface to serve — WRAPPED, never exposed over the wire.

    Methods

    • Host-owned authorization for the run/thread scope of every returned row.

      Parameters

      • scope: { runId?: string; threadId?: string }

      Returns Promise<boolean>