• Fetches AI-generated suggestions based on a given prompt.

    Logs the suggestion generation event with timing information.

    Parameters

    • prompt: string

      The user-provided prompt.

    Returns Promise<{ error?: string; suggestions?: string[] }>

    A promise resolving to an array of suggestions or an error message.