Skip to content

UploadStream

Namespace: Vercel.AI.Operations

public sealed class UploadStream

A stream the provider may take ownership of.

Inheritance: object

View source

public Exception? CancelError { get; }

Reason passed to Cancel(Exception).

Value: Exception

View source

public bool Cancelled { get; }

True after Cancel(Exception).

Value: bool

View source

public void Cancel(Exception error)

Releases the stream after a failed upload.

Parameters

Name Type Description
error Exception

View source

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