ProviderTextResponse
Namespace: Vercel.AI.ProviderUtils
public sealed class ProviderTextResponseA successful JSON response body and its headers.
Inheritance: object
Constructors
Section titled “Constructors”ProviderTextResponse(string, IReadOnlyDictionary<string, string>)
Section titled “ProviderTextResponse(string, IReadOnlyDictionary<string, string>)”public ProviderTextResponse(string body, IReadOnlyDictionary<string, string> headers)Creates a text response.
Parameters
| Name | Type | Description |
|---|---|---|
body |
string | |
headers |
IReadOnlyDictionary<string, string> |
Properties
Section titled “Properties”public string Body { get; }Response body.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product