JsonStreams.JsonBody
Namespace: Vercel.AI.ProviderUtils
public sealed class JsonStreams.JsonBodyA parsed JSON body and the headers that came with it.
Inheritance: object
Constructors
Section titled “Constructors”JsonBody(JsonElement, JsonElement, IReadOnlyDictionary<string, string>)
Section titled “JsonBody(JsonElement, JsonElement, IReadOnlyDictionary<string, string>)”public JsonBody(JsonElement value, JsonElement rawValue, IReadOnlyDictionary<string, string> headers)Creates a body.
Parameters
| Name | Type | Description |
|---|---|---|
value |
JsonElement | |
rawValue |
JsonElement | |
headers |
IReadOnlyDictionary<string, string> |
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Value: IReadOnlyDictionary<string, string>
RawValue
Section titled “RawValue”public JsonElement RawValue { get; }Parsed JSON before projection.
Value: JsonElement
public JsonElement Value { get; }Value after the schema projection.
Value: JsonElement
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product