BlobsTranscriptStore class
A class that implements the TranscriptStore interface using Azure Blob Storage.
Constructors
| Blobs |
Constructs a new instance of the BlobsTranscriptStore class. |
Methods
| delete |
Deletes all transcripts for a specific conversation. |
| get |
Retrieves transcript activities for a specific conversation. |
| list |
Lists all transcripts for a specific channel. |
| log |
Logs an activity to the transcript store. |
Constructor Details
BlobsTranscriptStore(string, string, BlobsTranscriptStoreOptions, string, StorageSharedKeyCredential | AnonymousCredential | TokenCredential)
Constructs a new instance of the BlobsTranscriptStore class.
new BlobsTranscriptStore(connectionString: string, containerName: string, options?: BlobsTranscriptStoreOptions, blobServiceUri?: string, tokenCredential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential)
Parameters
- connectionString
-
string
The connection string for the Azure Blob Storage account.
- containerName
-
string
The name of the container to use for storing transcripts.
- options
- BlobsTranscriptStoreOptions
Optional configuration options for the store.
- blobServiceUri
-
string
Optional URI for the blob service.
- tokenCredential
-
StorageSharedKeyCredential | AnonymousCredential | TokenCredential
Optional credentials for authenticating with the blob service.
Method Details
deleteTranscript(string, string)
Deletes all transcripts for a specific conversation.
function deleteTranscript(channelId: string, conversationId: string): Promise<void>
Parameters
- channelId
-
string
The ID of the channel.
- conversationId
-
string
The ID of the conversation.
Returns
Promise<void>
A promise that resolves when the deletion is complete.
getTranscriptActivities(string, string, string, Date)
Retrieves transcript activities for a specific conversation.
function getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>
Parameters
- channelId
-
string
The ID of the channel.
- conversationId
-
string
The ID of the conversation.
- continuationToken
-
string
Optional token for paginated results.
- startDate
-
Date
Optional start date to filter activities.
Returns
Promise<PagedResult<Activity>>
A promise resolving to a paged result of activities.
listTranscripts(string, string)
Lists all transcripts for a specific channel.
function listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>
Parameters
- channelId
-
string
The ID of the channel.
- continuationToken
-
string
Optional token for paginated results.
Returns
Promise<PagedResult<TranscriptInfo>>
A promise resolving to a paged result of transcript information.
logActivity(Activity, BlobsTranscriptStoreOptions)
Logs an activity to the transcript store.
function logActivity(activity: Activity, options?: BlobsTranscriptStoreOptions): Promise<void>
Parameters
- activity
- Activity
The activity to log.
- options
- BlobsTranscriptStoreOptions
Optional configuration options for the operation.
Returns
Promise<void>
A promise that resolves when the activity is logged.