Skip to content

AssistantTextPart

Namespace: Vercel.AI.Provider

public sealed class AssistantTextPart : AssistantContentPart

Text in an assistant message.

Inheritance: object → AssistantContentPart

View source

AssistantTextPart(string, IReadOnlyDictionary<string, JsonElement>?)

Section titled “AssistantTextPart(string, IReadOnlyDictionary<string, JsonElement>?)”
public AssistantTextPart(string text, IReadOnlyDictionary<string, JsonElement>? providerOptions = null)

Creates a text part.

Parameters

Name Type Description
text string
providerOptions 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