This PR is the result of a change request in #800 . It was deemed a large enough change to warrant a second PR. This branch came of the branch for the first PR. This PR should be merged after #800.
Description
Tightens up the types for the backend's chat message history. No functional change.
Notes
Renames ChatHistoryMessage to ChatMessage
Introduces individual types for each of the CHAT_MESSAGE_TYPEs (enum). These specify which CHAT_MESSAGE_TYPEs need completions and which need info messages, and lets us be more specific about our completion types.
ChatMessage is now a union of the above types, and all of them live in their own new file, chatMessage.ts
This PR is the result of a change request in #800 . It was deemed a large enough change to warrant a second PR. This branch came of the branch for the first PR. This PR should be merged after #800.
Description
Tightens up the types for the backend's chat message history. No functional change.
Notes
ChatHistoryMessage
toChatMessage
CHAT_MESSAGE_TYPE
s (enum). These specify whichCHAT_MESSAGE_TYPE
s need completions and which need info messages, and lets us be more specific about our completion types.ChatMessage
is now a union of the above types, and all of them live in their own new file, chatMessage.tsChecklist
Have you done the following?