BetaMemoryStoresOperations interface
介面代表 BetaMemoryStores 操作。
屬性
| create | 建立一個記憶體儲存資源,並依所提供的設定建立。 |
| create |
在指定的記憶體儲存中建立一個記憶體項目。 |
| delete | 刪除指定的記憶體儲存。 |
| delete |
從記憶體儲存中刪除指定的記憶體項目。 |
| delete |
刪除指定記憶儲存中與該範圍相關聯的所有記憶體。 |
| get | 擷取指定的記憶體儲存及其目前的配置。 |
| get |
從記憶體儲存中擷取指定的記憶體項目。 |
| get |
擷取記憶體儲存更新操作的狀態與結果。 |
| list | 回傳呼叫者可用的記憶體儲存。 |
| list |
從指定的記憶體儲存中回傳記憶體項目。 |
| search |
搜尋指定的記憶儲存庫,尋找與所提供對話情境相關的記憶。 |
| update | 更新指定的記憶體儲存庫,並包含所提供的設定變更。 |
| update |
啟動更新,將對話記憶寫入指定的記憶庫。 操作會回傳一個長期執行的狀態位置,用於輪詢更新結果。 |
| update |
更新記憶體儲存中指定的記憶體項目。 |
屬性詳細資料
create
建立一個記憶體儲存資源,並依所提供的設定建立。
create: (name: string, definition: MemoryStoreDefinitionUnion, options?: BetaMemoryStoresCreateOptionalParams) => Promise<MemoryStore>
屬性值
(name: string, definition: MemoryStoreDefinitionUnion, options?: BetaMemoryStoresCreateOptionalParams) => Promise<MemoryStore>
createMemory
在指定的記憶體儲存中建立一個記憶體項目。
createMemory: (name: string, scope: string, content: string, kind: MemoryItemKind, options?: BetaMemoryStoresCreateMemoryOptionalParams) => Promise<MemoryItemUnion>
屬性值
(name: string, scope: string, content: string, kind: MemoryItemKind, options?: BetaMemoryStoresCreateMemoryOptionalParams) => Promise<MemoryItemUnion>
delete
刪除指定的記憶體儲存。
delete: (name: string, options?: BetaMemoryStoresDeleteOptionalParams) => Promise<DeleteMemoryStoreResponse>
屬性值
(name: string, options?: BetaMemoryStoresDeleteOptionalParams) => Promise<DeleteMemoryStoreResponse>
deleteMemory
從記憶體儲存中刪除指定的記憶體項目。
deleteMemory: (name: string, memoryId: string, options?: BetaMemoryStoresDeleteMemoryOptionalParams) => Promise<DeleteMemoryResponse>
屬性值
(name: string, memoryId: string, options?: BetaMemoryStoresDeleteMemoryOptionalParams) => Promise<DeleteMemoryResponse>
deleteScope
刪除指定記憶儲存中與該範圍相關聯的所有記憶體。
deleteScope: (name: string, scope: string, options?: BetaMemoryStoresDeleteScopeOptionalParams) => Promise<MemoryStoreDeleteScopeResponse>
屬性值
(name: string, scope: string, options?: BetaMemoryStoresDeleteScopeOptionalParams) => Promise<MemoryStoreDeleteScopeResponse>
get
擷取指定的記憶體儲存及其目前的配置。
get: (name: string, options?: BetaMemoryStoresGetOptionalParams) => Promise<MemoryStore>
屬性值
(name: string, options?: BetaMemoryStoresGetOptionalParams) => Promise<MemoryStore>
getMemory
從記憶體儲存中擷取指定的記憶體項目。
getMemory: (name: string, memoryId: string, options?: BetaMemoryStoresGetMemoryOptionalParams) => Promise<MemoryItemUnion>
屬性值
(name: string, memoryId: string, options?: BetaMemoryStoresGetMemoryOptionalParams) => Promise<MemoryItemUnion>
getUpdateResult
擷取記憶體儲存更新操作的狀態與結果。
getUpdateResult: (name: string, updateId: string, options?: BetaMemoryStoresGetUpdateResultOptionalParams) => Promise<MemoryStoreUpdateResponse>
屬性值
(name: string, updateId: string, options?: BetaMemoryStoresGetUpdateResultOptionalParams) => Promise<MemoryStoreUpdateResponse>
list
回傳呼叫者可用的記憶體儲存。
list: (options?: BetaMemoryStoresListOptionalParams) => PagedAsyncIterableIterator<MemoryStore, MemoryStore[], PageSettings>
屬性值
(options?: BetaMemoryStoresListOptionalParams) => PagedAsyncIterableIterator<MemoryStore, MemoryStore[], PageSettings>
listMemories
從指定的記憶體儲存中回傳記憶體項目。
listMemories: (name: string, scope: string, options?: BetaMemoryStoresListMemoriesOptionalParams) => PagedAsyncIterableIterator<MemoryItemUnion, MemoryItemUnion[], PageSettings>
屬性值
(name: string, scope: string, options?: BetaMemoryStoresListMemoriesOptionalParams) => PagedAsyncIterableIterator<MemoryItemUnion, MemoryItemUnion[], PageSettings>
searchMemories
搜尋指定的記憶儲存庫,尋找與所提供對話情境相關的記憶。
searchMemories: (name: string, scope: string, options?: BetaMemoryStoresSearchMemoriesOptionalParams) => Promise<MemoryStoreSearchResponse>
屬性值
(name: string, scope: string, options?: BetaMemoryStoresSearchMemoriesOptionalParams) => Promise<MemoryStoreSearchResponse>
update
更新指定的記憶體儲存庫,並包含所提供的設定變更。
update: (name: string, options?: BetaMemoryStoresUpdateOptionalParams) => Promise<MemoryStore>
屬性值
(name: string, options?: BetaMemoryStoresUpdateOptionalParams) => Promise<MemoryStore>
updateMemories
啟動更新,將對話記憶寫入指定的記憶庫。 操作會回傳一個長期執行的狀態位置,用於輪詢更新結果。
updateMemories: (name: string, scope: string, options?: BetaMemoryStoresUpdateMemoriesOptionalParams) => PollerLike<OperationState<MemoryStoreUpdateCompletedResult>, MemoryStoreUpdateCompletedResult>
屬性值
(name: string, scope: string, options?: BetaMemoryStoresUpdateMemoriesOptionalParams) => PollerLike<OperationState<MemoryStoreUpdateCompletedResult>, MemoryStoreUpdateCompletedResult>
updateMemory
更新記憶體儲存中指定的記憶體項目。
updateMemory: (name: string, memoryId: string, content: string, options?: BetaMemoryStoresUpdateMemoryOptionalParams) => Promise<MemoryItemUnion>
屬性值
(name: string, memoryId: string, content: string, options?: BetaMemoryStoresUpdateMemoryOptionalParams) => Promise<MemoryItemUnion>