proposit-core
    Preparing search index...

    Type Alias TRetrievedResponse

    Framework-side structural mirror of a retrieved background-response shape, consumed by completeStage. The OpenAI extension's retrieveResponse returns a structurally-compatible object (it carries every field below), so a consumer can pass its result straight into completeStage — without src/lib/ importing the extension type. output is the raw assistant text (not a parsed object); completeStage parses it against the stage's schema.

    type TRetrievedResponse = {
        errorMessage?: string;
        incompleteReason?: string;
        output?: string;
        rawResponseId: string;
        status: TResponseStatus;
        tokenUsage?: TLlmTokenUsage;
    }
    Index

    Properties

    errorMessage?: string

    The provider's error message, present when status === "failed".

    incompleteReason?: string

    The provider's incomplete_details.reason, present when status === "incomplete" (e.g. max_output_tokens, content_filter). Drives completeStage's classification.

    output?: string

    Raw assistant text output, present when status === "completed".

    rawResponseId: string

    The provider response id that was retrieved.

    Current status of the stored response.

    tokenUsage?: TLlmTokenUsage

    Token usage reported by the provider, when available.