RerankEndEvent
Namespace: Vercel.AI.Operations
public sealed class RerankEndEventEnd event for rerank.
Inheritance: object
Constructors
Section titled “Constructors”RerankEndEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, IReadOnlyList<RankedDocument>, IReadOnlyList<OperationWarning>, JsonElement?, RerankResponseInfo)
Section titled “RerankEndEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, IReadOnlyList<RankedDocument>, IReadOnlyList<OperationWarning>, JsonElement?, RerankResponseInfo)”public RerankEndEvent(string callId, string operationId, IReadOnlyDictionary<string, object?> runtimeContext, string provider, string modelId, IReadOnlyList<object?> documents, string query, IReadOnlyList<RankedDocument> ranking, IReadOnlyList<OperationWarning> warnings, JsonElement? providerMetadata, RerankResponseInfo response)Creates an end event.
Parameters
| Name | Type | Description |
|---|---|---|
callId |
string | |
operationId |
string | |
runtimeContext |
IReadOnlyDictionary<string, object> | |
provider |
string | |
modelId |
string | |
documents |
IReadOnlyList<object> | |
query |
string | |
ranking |
IReadOnlyList<RankedDocument> | |
warnings |
IReadOnlyList<OperationWarning> | |
providerMetadata |
JsonElement? | |
response |
RerankResponseInfo |
Properties
Section titled “Properties”CallId
Section titled “CallId”public string CallId { get; }Call id.
Value: string
Documents
Section titled “Documents”public IReadOnlyList<object?> Documents { get; }Submitted documents.
Value: IReadOnlyList<object>
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
OperationId
Section titled “OperationId”public string OperationId { get; }ai.rerank.
Value: string
Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
public string Query { get; }Query.
Value: string
Ranking
Section titled “Ranking”public IReadOnlyList<RankedDocument> Ranking { get; }Ranking visible to the callback. The result keeps its own copy.
Value: IReadOnlyList<RankedDocument>
Response
Section titled “Response”public RerankResponseInfo Response { get; }Response metadata.
Value: RerankResponseInfo
RuntimeContext
Section titled “RuntimeContext”public IReadOnlyDictionary<string, object?> RuntimeContext { get; }Runtime context.
Value: IReadOnlyDictionary<string, object>
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product