CohereRerankResponse
Namespace: Vercel.AI.Cohere
public sealed class CohereRerankResponseCohere rerank HTTP response.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public JsonElement Body { get; }Raw response body.
Value: JsonElement
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Value: IReadOnlyDictionary<string, string>
public string? Id { get; }Response id, when the body includes one.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product