Skip to content

Commit

Permalink
update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed May 10, 2024
1 parent 5b60578 commit efa20f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export declare class SectorFlow {
* Sends a message to a project, returning the responses.
* @param {string} projectId - The project id.
* @param {string} message - The message.
* @param {string} threadId - The optional thread id, to continue a chain of messages.
* @param {object} options - Optional.
* @param {string} options.threadId - The optional thread id, to continue a chain of messages.
* @param {string} options.collectionName - The optional SectorFlow collection name that contains the file. Used with the fileName option.
* @param {string} options.fileName - The optional SectorFlow file name. Used with the collectionName option.
* @returns {Promise<ChatMessageResponse>} - The responses to the message.
*/
sendChatMessage(projectId: string, message: string, options?: {
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ export class SectorFlow {
* Sends a message to a project, returning the responses.
* @param {string} projectId - The project id.
* @param {string} message - The message.
* @param {string} threadId - The optional thread id, to continue a chain of messages.
* @param {object} options - Optional.
* @param {string} options.threadId - The optional thread id, to continue a chain of messages.
* @param {string} options.collectionName - The optional SectorFlow collection name that contains the file. Used with the fileName option.
* @param {string} options.fileName - The optional SectorFlow file name. Used with the collectionName option.
* @returns {Promise<ChatMessageResponse>} - The responses to the message.
*/
async sendChatMessage(projectId, message, options) {
Expand Down
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ export class SectorFlow {
* Sends a message to a project, returning the responses.
* @param {string} projectId - The project id.
* @param {string} message - The message.
* @param {string} threadId - The optional thread id, to continue a chain of messages.
* @param {object} options - Optional.
* @param {string} options.threadId - The optional thread id, to continue a chain of messages.
* @param {string} options.collectionName - The optional SectorFlow collection name that contains the file. Used with the fileName option.
* @param {string} options.fileName - The optional SectorFlow file name. Used with the collectionName option.
* @returns {Promise<ChatMessageResponse>} - The responses to the message.
*/
async sendChatMessage(
Expand Down

0 comments on commit efa20f7

Please sign in to comment.