GeneratedText
Namespace: Vercel.AI.Provider
public class GeneratedText : GeneratedContentGenerated text.
Inheritance: object → GeneratedContent
Derived: AnthropicText, GoogleText, HuggingFaceText, OpenAIText
Constructors
Section titled “Constructors”GeneratedText(string, IReadOnlyList<Citation>?, JsonElement?)
Section titled “GeneratedText(string, IReadOnlyList<Citation>?, JsonElement?)”public GeneratedText(string text, IReadOnlyList<Citation>? citations = null, JsonElement? providerMetadata = null)Creates text content.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
citations |
IReadOnlyList<Citation> | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”Citations
Section titled “Citations”public IReadOnlyList<Citation>? Citations { get; }References supporting this text, or null when the provider sent none. They are separate from the retrieved GeneratedSource parts.
Value: IReadOnlyList<Citation>
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata for this text, keyed by provider name, such as the message itemId.
Value: JsonElement?
public string Text { get; }Generated text.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product