DownloadFunction
Namespace: E2E.Decision.Sdk
public delegate Task<IReadOnlyList<DownloadedFile?>> DownloadFunction(IReadOnlyList<DownloadRequest> requests, CancellationToken cancellationToken)The AI SDK’s DownloadFunction (util/download/download-function.ts), experimental. Called with the requested URLs, it answers
one entry for each, in the same order: the downloaded file, or null when the URL goes to the model as is. It throws
DownloadException when a download fails.
Parameters
| Name | Type | Description |
|---|---|---|
requests |
IReadOnlyList<DownloadRequest> | |
cancellationToken |
CancellationToken |
Returns: Task<IReadOnlyList<DownloadedFile>>