You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This specification outlines the implementation of the save-message event handler. The save-message event is triggered from the frontend Vue application and contains content, messageId, and threadId. The handler will open a new document containing the provided content and metadata, allowing the user to save the document.
This logic is already implemented in the Visual Studio Code extension and can be found here for reference.
Overview
This specification outlines the implementation of the
save-message
event handler. Thesave-message
event is triggered from the frontend Vue application and containscontent
,messageId
, andthreadId
. The handler will open a new document containing the provided content and metadata, allowing the user to save the document.This logic is already implemented in the Visual Studio Code extension and can be found here for reference.
Message handling:
https://github.com/getappmap/vscode-appland/blob/076746891e254ca46a592658641918253d0c81ed/src/webviews/chatSearchWebview.ts#L322-L338
Message forwarding from frontend to backend extension:
https://github.com/getappmap/vscode-appland/blob/076746891e254ca46a592658641918253d0c81ed/web/src/chatSearchView.js#L139-L141
Requirements
Event Handling:
save-message
will be forwarded from the frontend.content
: The main content to be displayed in the document.messageId
: A unique identifier for the message.threadId
: A unique identifier for the thread.Document Creation:
Metadata Format:
Example:
Hello world
, thread idexample-thread-id
, and message idexample-message-id
, the document should contain:The text was updated successfully, but these errors were encountered: