InputFileDownloader interface

Interface for downloading input files in a specific turn context and state.

Methods

downloadAndStoreFiles(TurnContext, TState)

Downloads files based on the provided turn context and store them in the provided state.

downloadFiles(TurnContext)

Downloads files based on the provided turn context.

Method Details

downloadAndStoreFiles(TurnContext, TState)

Downloads files based on the provided turn context and store them in the provided state.

function downloadAndStoreFiles(context: TurnContext, state: TState): Promise<void>

Parameters

context
TurnContext

The turn context for the current operation.

state

TState

The state associated with the current turn.

Returns

Promise<void>

A promise that resolves once the files have been saved into state (void).

downloadFiles(TurnContext)

Downloads files based on the provided turn context.

function downloadFiles(context: TurnContext): Promise<InputFile[]>

Parameters

context
TurnContext

The turn context for the current operation.

Returns

Promise<InputFile[]>

A promise that resolves to an array of input files.