Skip to content

TextContentPart

Namespace: Vercel.AI.Provider

public sealed class TextContentPart : UserContentPart

Text in a user message.

Inheritance: object → UserContentPart

View source

public TextContentPart(string text)

Creates a text part.

Parameters

Name Type Description
text string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }

Provider-specific options for this part, such as the Amazon Bedrock guardContent or cachePoint.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string Text { get; }

Text.

Value: string

View source

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