BetaMemoryStoresOperations interface
表示 BetaMemoryStorage作的接口。
属性
| 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>