Skip to content

ProviderTextResponse

Namespace: Vercel.AI.ProviderUtils

public sealed class ProviderTextResponse

A successful JSON response body and its headers.

Inheritance: object

View source

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>

View source

public string Body { get; }

Response body.

Value: string

View source

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

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

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