Skip to content

DownloadRequestItem

Namespace: Vercel.AI.Util

public sealed class DownloadRequestItem

One URL passed to DefaultDownloadFunction.

Inheritance: object

View source

public DownloadRequestItem(Uri url, bool isUrlSupportedByModel)

Creates a request item.

Parameters

Name Type Description
url Uri
isUrlSupportedByModel bool

View source

public bool IsUrlSupportedByModel { get; }

When true, the model accepts the URL and the download function returns null.

Value: bool

View source

public Uri Url { get; }

URL to download or pass through.

Value: Uri

View source

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