Skip to content

Support pre-filling chat input via public command API #307

@MUFFANUJ

Description

@MUFFANUJ

Third-party extensions need a stable public API to open JupyterLite AI chat and pre-fill the prompt text (for example i was working on jupyterlab/plugin-playground#136, which requires pre-filling the chat with a prompt).
For now, we rely on tracker/model internals (IChatTracker -> widget.model.input) after opening chat.

Current behavior

@jupyterlite/ai:open-chat supports:

  • area
  • name
  • provider

It does not support pre-filling input directly.

A possible solution could be:

To support one of these public APIs:

  1. Extend @jupyterlite/ai:open-chat args with:
  • input?: string
  • focus?: boolean (default true)
  • autoSend?: boolean (default false)

or

  1. Add a dedicated command, e.g.:
    @jupyterlite/ai:open-chat-with-message

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions