RerankStartEvent
Namespace: Vercel.AI.Operations
public sealed class RerankStartEventStart event for rerank.
Inheritance: object
Constructors
Section titled “Constructors”RerankStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, int?, int, IReadOnlyDictionary<string, string>?, JsonElement?)
Section titled “RerankStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, int?, int, IReadOnlyDictionary<string, string>?, JsonElement?)”public RerankStartEvent(string callId, string operationId, IReadOnlyDictionary<string, object?> runtimeContext, string provider, string modelId, IReadOnlyList<object?> documents, string query, int? topN, int maxRetries, IReadOnlyDictionary<string, string>? headers, JsonElement? providerOptions)Creates a start event.
Parameters
| Name | Type | Description |
|---|---|---|
callId |
string | |
operationId |
string | |
runtimeContext |
IReadOnlyDictionary<string, object> | |
provider |
string | |
modelId |
string | |
documents |
IReadOnlyList<object> | |
query |
string | |
topN |
int? | |
maxRetries |
int | |
headers |
IReadOnlyDictionary<string, string> | |
providerOptions |
JsonElement? |
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>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; }Request headers.
Value: IReadOnlyDictionary<string, string>
MaxRetries
Section titled “MaxRetries”public int MaxRetries { get; }Retry limit.
Value: int
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
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options.
Value: JsonElement?
public string Query { get; }Query.
Value: string
RuntimeContext
Section titled “RuntimeContext”public IReadOnlyDictionary<string, object?> RuntimeContext { get; }Runtime context.
Value: IReadOnlyDictionary<string, object>
public int? TopN { get; }Maximum results.
Value: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product