Skip to content

DecisionFilePart

Namespace: Vercel.AI.Operations

public sealed class DecisionFilePart : DecisionStatePart

A file part of decision state. A URL is downloaded before the model call.

Inheritance: object → DecisionStatePart

View source

public DecisionFilePart(string mediaType, FilePartInput data)

Creates a file part.

Parameters

Name Type Description
mediaType string
data FilePartInput

View source

public FilePartInput Data { get; }

File data.

Value: FilePartInput

View source

public string? FileName { get; init; }

Optional file name.

Value: string

View source

public string MediaType { get; }

Media type. A top-level type such as image is resolved to a full type from the data.

Value: string

View source

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

Provider-specific options for this part.

Value: IReadOnlyDictionary<string, JsonElement>

View source

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