Skip to content

OpenAIText

Namespace: Vercel.AI.OpenAI

public sealed class OpenAIText : GeneratedText

Generated text that carries the Responses output item id and its annotations.

Inheritance: object → GeneratedContent → GeneratedText

View source

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

View source

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

View source

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