Skip to content

AssetDownloadCall

Namespace: Vercel.AI.Util

public sealed class AssetDownloadCall

Arguments passed to a single asset download.

Inheritance: object

View source

AssetDownloadCall(Uri, bool, CancellationToken)

Section titled “AssetDownloadCall(Uri, bool, CancellationToken)”
public AssetDownloadCall(Uri url, bool isUrlSupportedByModel, CancellationToken abortSignal)

Creates the call.

Parameters

Name Type Description
url Uri
isUrlSupportedByModel bool
abortSignal CancellationToken

View source

public CancellationToken AbortSignal { get; }

Cancellation signal forwarded from the caller.

Value: CancellationToken

View source

public bool IsUrlSupportedByModel { get; }

Whether the model can read the URL itself.

Value: bool

View source

public Uri Url { get; }

URL to download.

Value: Uri

View source

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