AssistantContentPart
Namespace: Vercel.AI.Provider
public abstract class AssistantContentPartOne part of an assistant message, kept in the order the model produced it.
Inheritance: object
Derived: AssistantCustomPart, AssistantFilePart, AssistantReasoningPart, AssistantTextPart, AssistantToolApprovalRequestPart, AssistantToolCallPart, AssistantToolResultPart
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; }Provider-specific options for this part, such as an itemId.
Value: IReadOnlyDictionary<string, JsonElement>
public string Type { get; }Part type: text, file, reasoning, reasoning-file, tool-call, tool-result, or custom.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product