Skip to content

CohereRerankResponse

Namespace: Vercel.AI.Cohere

public sealed class CohereRerankResponse

Cohere rerank HTTP response.

Inheritance: object

View source

CohereRerankResponse(string?, IReadOnlyDictionary<string, string>, JsonElement)

Section titled “CohereRerankResponse(string?, IReadOnlyDictionary<string, string>, JsonElement)”
public CohereRerankResponse(string? id, IReadOnlyDictionary<string, string> headers, JsonElement body)

Creates response metadata.

Parameters

Name Type Description
id string
headers IReadOnlyDictionary<string, string>
body JsonElement

View source

public JsonElement Body { get; }

Raw response body.

Value: JsonElement

View source

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

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string? Id { get; }

Response id, when the body includes one.

Value: string

View source

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