Skip to content

CreateDefaultDownloadFunction

Namespace: E2E.Decision.Sdk

public static class CreateDefaultDownloadFunction

The AI SDK’s createDefaultDownloadFunction (util/download/download-function.ts).

Inheritance: object

View source

public static DownloadFunction Create(DownloadFile? download = null, CancellationToken? cancellationToken = null)

Default download function. Downloads the file if it is not supported by the model. <code class=“paramref”>cancellationToken</code> (upstream’s abortSignal) wins over the token of the call.

Parameters

Name Type Description
download DownloadFile The single-request download. Defaults to the AI SDK’s download.
cancellationToken CancellationToken? A token passed to every download instead of the call’s.

Returns: DownloadFunction