DecisionFilePart
Namespace: Vercel.AI.Operations
public sealed class DecisionFilePart : DecisionStatePartA file part of decision state. A URL is downloaded before the model call.
Inheritance: object → DecisionStatePart
Constructors
Section titled “Constructors”DecisionFilePart(string, FilePartInput)
Section titled “DecisionFilePart(string, FilePartInput)”public DecisionFilePart(string mediaType, FilePartInput data)Creates a file part.
Parameters
| Name | Type | Description |
|---|---|---|
mediaType |
string | |
data |
FilePartInput |
Properties
Section titled “Properties”public FilePartInput Data { get; }File data.
Value: FilePartInput
FileName
Section titled “FileName”public string? FileName { get; init; }Optional file name.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }Media type. A top-level type such as image is resolved to a full type from the data.
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