LanguageModelFilePart
Namespace: Vercel.AI.Prompt
public sealed class LanguageModelFilePartA file part in the v4 provider prompt. Maps to the result of convertToLanguageModelV4FilePart.
Inheritance: object
Constructors
Section titled “Constructors”LanguageModelFilePart(string, string?)
Section titled “LanguageModelFilePart(string, string?)”public LanguageModelFilePart(string dataType, string? mediaType)Creates a part.
Parameters
| Name | Type | Description |
|---|---|---|
dataType |
string | |
mediaType |
string |
Properties
Section titled “Properties”Base64
Section titled “Base64”public string? Base64 { get; set; }Inline base64 text.
Value: string
public byte[]? Bytes { get; set; }Inline bytes.
Value: byte[]
DataType
Section titled “DataType”public string DataType { get; }data, url, reference, or text.
Value: string
MediaType
Section titled “MediaType”public string? MediaType { get; }Media type extracted from a data URL.
Value: string
OriginalUrl
Section titled “OriginalUrl”public string? OriginalUrl { get; set; }Original URL string when parsing changed it.
Value: string
Reference
Section titled “Reference”public IReadOnlyDictionary<string, string>? Reference { get; set; }Provider reference.
Value: IReadOnlyDictionary<string, string>
public string? Text { get; set; }Text payload.
Value: string
public Uri? Url { get; set; }URL.
Value: Uri
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product