proposit-core
    Preparing search index...

    Function retrieveResponse

    • Retrieve a stored OpenAI response by id. Surfaces the current status, output text (when completed), and token usage.

      Throws ResponseNotFoundError when the response is not found (HTTP 404), which typically means the ~10-minute retention window has elapsed. Callers should clear the stored id, settle the associated stage as failed, and surface a retry prompt.

      Parameters

      • id: string

        The OpenAI response id to retrieve.

      • options: { apiKey: string; baseUrl?: string; fetch?: TOpenAiFetch; signal?: AbortSignal }

        Provider configuration (apiKey, optional baseUrl and fetch).

      Returns Promise<TRetrievedResponse>