Documentation - v1.2.0-alpha.3
    Preparing search index...

    Interface InputFileDownloader<TState>

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

    interface InputFileDownloader<TState extends TurnState = TurnState> {
        downloadAndStoreFiles(
            context: TurnContext,
            state: TState,
        ): Promise<void>;
        downloadFiles(context: TurnContext): Promise<InputFile[]>;
    }

    Type Parameters

    Implemented by

    Index

    Methods

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

      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).