Skip to content

AnthropicText

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicText : GeneratedText

Generated text that also carries Anthropic provider metadata, such as citations.

Inheritance: object → GeneratedContent → GeneratedText

View source

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>

View source

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