Skip to content

AssistantContentPart

Namespace: Vercel.AI.Provider

public abstract class AssistantContentPart

One part of an assistant message, kept in the order the model produced it.

Inheritance: object

Derived: AssistantCustomPart, AssistantFilePart, AssistantReasoningPart, AssistantTextPart, AssistantToolApprovalRequestPart, AssistantToolCallPart, AssistantToolResultPart

View source

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

Section titled “AssistantContentPart(string, IReadOnlyDictionary<string, JsonElement>?)”
protected AssistantContentPart(string type, IReadOnlyDictionary<string, JsonElement>? providerOptions)

Creates a part.

Parameters

Name Type Description
type string
providerOptions IReadOnlyDictionary<string, JsonElement>

View source

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

Provider-specific options for this part, such as an itemId.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string Type { get; }

Part type: text, file, reasoning, reasoning-file, tool-call, tool-result, or custom.

Value: string

View source

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