BetaMemoryStoresOperations interface
表示 BetaMemoryStorage作的接口。
属性
| create | 创建内存存储。 |
| delete | 删除内存存储。 |
| delete |
从内存存储中删除与特定作用域关联的所有内存。 |
| get | 检索内存存储。 |
| get |
获取内存存储更新结果。 |
| list | 列出所有内存存储。 |
| search |
根据对话上下文从内存存储中搜索相关记忆。 |
| update | 更新内存存储。 |
| update |
使用对话记忆更新内存存储。 |
属性详细信息
create
创建内存存储。
create: (name: string, definition: MemoryStoreDefinitionUnion, options?: BetaMemoryStoresCreateOptionalParams) => Promise<MemoryStore>
属性值
(name: string, definition: MemoryStoreDefinitionUnion, options?: BetaMemoryStoresCreateOptionalParams) => Promise<MemoryStore>
delete
删除内存存储。
delete: (name: string, options?: BetaMemoryStoresDeleteOptionalParams) => Promise<DeleteMemoryStoreResponse>
属性值
(name: string, options?: BetaMemoryStoresDeleteOptionalParams) => Promise<DeleteMemoryStoreResponse>
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>
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>
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>