CreateDefaultDownloadFunction
Namespace: E2E.Decision.Sdk
public static class CreateDefaultDownloadFunctionThe AI SDK’s createDefaultDownloadFunction (util/download/download-function.ts).
Inheritance: object
Methods
Section titled “Methods”Create(DownloadFile?, CancellationToken?)
Section titled “Create(DownloadFile?, CancellationToken?)”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