bothy-sdk
    Preparing search index...

    Type Alias AutocompleteHandler

    AutocompleteHandler: (
        request: AutocompleteRequest,
        signal: AbortSignal,
    ) => Promise<readonly components["schemas"]["CommandChoice"][]>

    The handler of an autocomplete request: returns the choices for what was typed. It must not call a model (R-AG-14) and should stop when signal fires at expires_at.

    Type Declaration

      • (
            request: AutocompleteRequest,
            signal: AbortSignal,
        ): Promise<readonly components["schemas"]["CommandChoice"][]>
      • Parameters

        Returns Promise<readonly components["schemas"]["CommandChoice"][]>