Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subissue: Allow command providers to be initialized async #174

Open
dlqqq opened this issue Feb 17, 2025 · 0 comments
Open

Subissue: Allow command providers to be initialized async #174

dlqqq opened this issue Feb 17, 2025 · 0 comments
Labels

Comments

@dlqqq
Copy link
Member

dlqqq commented Feb 17, 2025

Problem

Chat command providers may need to make a network request to get its list of commands when the application starts. For example:

  • Jupyter Chat's emoji provider could make an async dynamic import (e.g. via import(...)) to import a library package of emojis.
  • Jupyter AI's slash command provider needs to fetch the list of slash commands from the backend.

Proposed Solution

Add a ready: Promise<void> property or an initialize(): Promise<void> method to IChatCommandProvider.

Additional context

None.

@dlqqq dlqqq added the enhancement New feature or request label Feb 17, 2025
@dlqqq dlqqq moved this to Todo in Jupyter AI Feb 17, 2025
@dlqqq dlqqq added this to Jupyter AI Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Active
Development

No branches or pull requests

1 participant