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

Custom slash commands in chat UI #351

Open
JasonWeill opened this issue Aug 18, 2023 · 0 comments
Open

Custom slash commands in chat UI #351

JasonWeill opened this issue Aug 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request @jupyter-ai/chatui project:extensibility Extension points, routing, configuration

Comments

@JasonWeill
Copy link
Collaborator

JasonWeill commented Aug 18, 2023

Problem

The slash commands provided are hard-coded, and cannot be extended.

Proposed Solution

Let users register new slash commands using classes that extend the BaseChatHandler class. This class should contain a slash_id attribute, which may contain an alphanumeric-and-underscore name. Only one chat handler may declare a particular slash_id.

Additional context

We should use the entry points pattern to allow extension authors to provide additional chat handlers.

This was suggested by @ellisonbg.

@JasonWeill JasonWeill added enhancement New feature or request @jupyter-ai/chatui project:extensibility Extension points, routing, configuration labels Aug 18, 2023
@JasonWeill JasonWeill self-assigned this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @jupyter-ai/chatui project:extensibility Extension points, routing, configuration
Projects
None yet
Development

No branches or pull requests

1 participant