MCPcopy Create free account
hub / github.com/astercloud/aster / getLineage

Method getLineage

client-sdks/client-js/src/resources/memory.ts:215–218  ·  view source on GitHub ↗

* 获取记忆谱系链 * 从根记忆到当前记忆的完整路径 * * @param memoryId 记忆 ID * @returns 谱系链

(memoryId: string)

Source from the content-addressed store, hash-verified

213 * @returns 谱系链
214 */
215 async getLineage(memoryId: string): Promise<Provenance[]> {
216 const result = await this.request<{ lineage: Provenance[] }>(`/v1/memory/lineage/${memoryId}`);
217 return result.lineage;
218 }
219
220 // ==========================================================================
221 // Memory Consolidation (合并) API

Callers 2

mainFunction · 0.95
memory.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected