Skip to content

RerankResponseInfo

Namespace: Vercel.AI.Operations

public sealed class RerankResponseInfo

Response metadata for a rerank call.

Inheritance: object

View source

RerankResponseInfo(string?, DateTime, string, IReadOnlyDictionary<string, string>?, JsonElement?)

Section titled “RerankResponseInfo(string?, DateTime, string, IReadOnlyDictionary<string, string>?, JsonElement?)”
public RerankResponseInfo(string? id, DateTime timestamp, string modelId, IReadOnlyDictionary<string, string>? headers, JsonElement? body)

Creates response metadata.

Parameters

Name Type Description
id string
timestamp DateTime
modelId string
headers IReadOnlyDictionary<string, string>
body JsonElement?

View source

public JsonElement? Body { get; }

Response body.

Value: JsonElement?

View source

public IReadOnlyDictionary<string, string>? Headers { get; }

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string? Id { get; }

Provider response id.

Value: string

View source

public string ModelId { get; }

Model id.

Value: string

View source

public DateTime Timestamp { get; }

Response timestamp.

Value: DateTime

View source

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