Skip to content

RerankModelCallEvent

Namespace: Vercel.AI.Operations

public sealed class RerankModelCallEvent

Inner rerank telemetry event.

Inheritance: object

View source

RerankModelCallEvent(string, string, string, string, string?, IReadOnlyList<RerankModelRank>?)

Section titled “RerankModelCallEvent(string, string, string, string, string?, IReadOnlyList<RerankModelRank>?)”
public RerankModelCallEvent(string callId, string operationId, string provider, string modelId, string? documentsType, IReadOnlyList<RerankModelRank>? ranking)

Creates the event.

Parameters

Name Type Description
callId string
operationId string
provider string
modelId string
documentsType string
ranking IReadOnlyList<RerankModelRank>

View source

public string CallId { get; }

Call id.

Value: string

View source

public string? DocumentsType { get; }

text or object.

Value: string

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string OperationId { get; }

ai.rerank.doRerank.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public IReadOnlyList<RerankModelRank>? Ranking { get; }

Ranking, on the end event.

Value: IReadOnlyList<RerankModelRank>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product