AnthropicText
Namespace: Vercel.AI.Anthropic
public sealed class AnthropicText : GeneratedTextGenerated text that also carries Anthropic provider metadata, such as citations.
Inheritance: object → GeneratedContent → GeneratedText
Constructors
Section titled “Constructors”AnthropicText(string, JsonElement?, IReadOnlyList<Citation>?)
Section titled “AnthropicText(string, JsonElement?, IReadOnlyList<Citation>?)”public AnthropicText(string text, JsonElement? providerMetadata, IReadOnlyList<Citation>? citations = null)Creates text content.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
providerMetadata |
JsonElement? | |
citations |
IReadOnlyList<Citation> |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product