chatgpt / Exports
Ƭ GetMessageByIdFunction: (id
: string
) => Promise
<ChatMessage
>
▸ (id
): Promise
<ChatMessage
>
Returns a chat message from a store by it's ID (or null if not found).
Name | Type |
---|---|
id |
string |
Promise
<ChatMessage
>
Ƭ Role: "user"
| "assistant"
Ƭ SendMessageOptions: Object
Name | Type |
---|---|
abortSignal? |
AbortSignal |
conversationId? |
string |
messageId? |
string |
onProgress? |
(partialResponse : ChatMessage ) => void |
parentMessageId? |
string |
promptPrefix? |
string |
promptSuffix? |
string |
stream? |
boolean |
timeoutMs? |
number |
Ƭ UpsertMessageFunction: (message
: ChatMessage
) => Promise
<void
>
▸ (message
): Promise
<void
>
Upserts a chat message to a store.
Name | Type |
---|---|
message |
ChatMessage |
Promise
<void
>