OpenAIText
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIText : GeneratedTextGenerated text that carries the Responses output item id and its annotations.
Inheritance: object → GeneratedContent → GeneratedText
Constructors
Section titled “Constructors”OpenAIText(string, IReadOnlyList<Citation>?, JsonElement)
Section titled “OpenAIText(string, IReadOnlyList<Citation>?, JsonElement)”public OpenAIText(string text, IReadOnlyList<Citation>? citations, JsonElement providerMetadata)Creates text.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
citations |
IReadOnlyList<Citation> | |
providerMetadata |
JsonElement |
Properties
Section titled “Properties”ProviderMetadata
Section titled “ProviderMetadata”public JsonElement ProviderMetadata { get; }Provider metadata: openai.itemId, openai.phase when the message has one, and, when the text is annotated, openai.annotations.
Value: JsonElement
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product