RerankModelResponse
Namespace: Vercel.AI.Operations
public sealed class RerankModelResponseModel response for doRerank.
Inheritance: object
Constructors
Section titled “Constructors”RerankModelResponse(IReadOnlyList<RerankModelRank>, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)
Section titled “RerankModelResponse(IReadOnlyList<RerankModelRank>, IReadOnlyList<OperationWarning>?, JsonElement?, ProviderResponse?)”public RerankModelResponse(IReadOnlyList<RerankModelRank> ranking, IReadOnlyList<OperationWarning>? warnings = null, JsonElement? providerMetadata = null, ProviderResponse? response = null)Creates a model response.
Parameters
| Name | Type | Description |
|---|---|---|
ranking |
IReadOnlyList<RerankModelRank> | |
warnings |
IReadOnlyList<OperationWarning> | |
providerMetadata |
JsonElement? | |
response |
ProviderResponse |
Properties
Section titled “Properties”ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
Ranking
Section titled “Ranking”public IReadOnlyList<RerankModelRank> Ranking { get; }Ranked indexes.
Value: IReadOnlyList<RerankModelRank>
Response
Section titled “Response”public ProviderResponse? Response { get; }Raw response.
Value: ProviderResponse
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