Skip to content

DecisionModelFilePart

Namespace: Vercel.AI.Operations

public sealed class DecisionModelFilePart : DecisionModelStatePart

A file part the model receives. Maps to LanguageModelV4FilePart.

Inheritance: object → DecisionModelStatePart

View source

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

View source

public LanguageModelFilePart Data { get; }

File data: inline bytes or base64, a URL, a provider reference, or text.

Value: LanguageModelFilePart

View source

public string? FileName { get; init; }

Optional file name.

Value: string

View source

public string MediaType { get; }

Media type. It is a full type after CancellationToken).

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