Custom slash commands in chat UI #351
Labels
enhancement
New feature or request
@jupyter-ai/chatui
project:extensibility
Extension points, routing, configuration
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 aslash_id
attribute, which may contain an alphanumeric-and-underscore name. Only one chat handler may declare a particularslash_id
.Additional context
We should use the entry points pattern to allow extension authors to provide additional chat handlers.
This was suggested by @ellisonbg.
The text was updated successfully, but these errors were encountered: