AssetDownloadCall
Namespace: Vercel.AI.Util
public sealed class AssetDownloadCallArguments passed to a single asset download.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”AbortSignal
Section titled “AbortSignal”public CancellationToken AbortSignal { get; }Cancellation signal forwarded from the caller.
Value: CancellationToken
IsUrlSupportedByModel
Section titled “IsUrlSupportedByModel”public bool IsUrlSupportedByModel { get; }Whether the model can read the URL itself.
Value: bool
public Uri Url { get; }URL to download.
Value: Uri
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product