Skip to content

FileStreamPart

Namespace: Vercel.AI.Google

public sealed class FileStreamPart : LanguageModelStreamPart

A streamed file part. The shared stream model has no file delta, so this carries the bytes.

Inheritance: object → LanguageModelStreamPart

View source

public FileStreamPart(byte[] data, string mediaType)

Creates a file part.

Parameters

Name Type Description
data byte[]
mediaType string

View source

public byte[] Data { get; }

File bytes.

Value: byte[]

View source

public string MediaType { get; }

IANA media type.

Value: string

View source

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