Skip to content

UploadData

Namespace: Vercel.AI.Operations

public sealed class UploadData

Tagged file bytes, text, or a stream.

Inheritance: object

View source

public UploadData(string type, object? data)

Creates tagged upload data.

Parameters

Name Type Description
type string
data object

View source

public object? Data { get; }

Bytes, base64 text, or a UploadStream.

Value: object

View source

public string Type { get; }

data, text, or stream.

Value: string

View source

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