Member Junction
    Preparing search index...

    Interface RerankResponse

    Response from a rerank operation.

    interface RerankResponse {
        durationMs: number;
        errorInfo?: AIErrorInfo;
        errorMessage?: string;
        modelName?: string;
        results: RerankResult[];
        success: boolean;
        Usage?: ModelUsage;
    }
    Index

    Properties

    durationMs: number

    Time taken to perform the reranking in milliseconds

    errorInfo?: AIErrorInfo

    The classification of the failure, when the reranker knows it. Set for a request its CancellationToken ended: Cancelled for a caller cancellation, a retriable network error when the signal was aborted by a timeout.

    errorMessage?: string

    Error message if the operation failed

    modelName?: string

    Model name used for reranking (for logging/debugging)

    results: RerankResult[]

    Reranked results sorted by relevance (highest first)

    success: boolean

    Whether the rerank operation succeeded

    Usage?: ModelUsage

    Optional token usage and cost of the call, for cost tracking. Set by a driver that knows them, such as one that reranks through a chat prompt; absent when the driver reports none.