TranscriptStore interface

文字記錄器會儲存交談的活動以供召回。

Extends

方法

deleteTranscript(string, string)

刪除特定交談及其所有活動。

getTranscriptActivities(string, string, string, Date)

取得交談的活動(也稱為文字記錄)

listTranscripts(string, string)

列出 channelId 中的交談。

繼承的方法

logActivity(Activity)

將活動記錄至文字記錄。

方法詳細資料

deleteTranscript(string, string)

刪除特定交談及其所有活動。

function deleteTranscript(channelId: string, conversationId: string): Promise<void>

參數

channelId

string

發生交談的通道標識碼。

conversationId

string

要刪除之交談的標識碼。

傳回

Promise<void>

getTranscriptActivities(string, string, string, Date)

取得交談的活動(也稱為文字記錄)

function getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>

參數

channelId

string

通道標識碼。

conversationId

string

交談標識碼。

continuationToken

string

逐頁查看結果的接續令牌。

startDate

Date

最早包含的時間。

傳回

Promise<PagedResult<Activity>>

listTranscripts(string, string)

列出 channelId 中的交談。

function listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>

參數

channelId

string

通道標識碼。

continuationToken

string

逐頁查看結果的接續令牌。

傳回

繼承的方法的詳細資料

logActivity(Activity)

將活動記錄至文字記錄。

function logActivity(activity: Activity): void | Promise<void>

參數

activity

Activity

正在記錄的活動。

傳回

void | Promise<void>

繼承自TranscriptLogger.logActivity