FileStreamPart
Namespace: Vercel.AI.Google
public sealed class FileStreamPart : LanguageModelStreamPartA streamed file part. The shared stream model has no file delta, so this carries the bytes.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”FileStreamPart(byte[], string)
Section titled “FileStreamPart(byte[], string)”public FileStreamPart(byte[] data, string mediaType)Creates a file part.
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | |
mediaType |
string |
Properties
Section titled “Properties”public byte[] Data { get; }File bytes.
Value: byte[]
MediaType
Section titled “MediaType”public string MediaType { get; }IANA media type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product