DecisionModelFilePart
Namespace: Vercel.AI.Operations
public sealed class DecisionModelFilePart : DecisionModelStatePartA file part the model receives. Maps to LanguageModelV4FilePart.
Inheritance: object → DecisionModelStatePart
Constructors
Section titled “Constructors”DecisionModelFilePart(string, LanguageModelFilePart)
Section titled “DecisionModelFilePart(string, LanguageModelFilePart)”public DecisionModelFilePart(string mediaType, LanguageModelFilePart data)Creates a file part.
Parameters
| Name | Type | Description |
|---|---|---|
mediaType |
string | |
data |
LanguageModelFilePart |
Properties
Section titled “Properties”public LanguageModelFilePart Data { get; }File data: inline bytes or base64, a URL, a provider reference, or text.
Value: LanguageModelFilePart
FileName
Section titled “FileName”public string? FileName { get; init; }Optional file name.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }Media type. It is a full type after CancellationToken).
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }Provider-specific options for this part.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product