MCPcopy Create free account
hub / github.com/apache/maka / agentGraphIdForRootSession

Function agentGraphIdForRootSession

packages/runtime/src/stream-graph-coordinator.ts:1437–1444  ·  view source on GitHub ↗
(rootSessionId: string)

Source from the content-addressed store, hash-verified

1435}
1436
1437export function agentGraphIdForRootSession(rootSessionId: string): string {
1438 requireRootSessionId(rootSessionId);
1439 const suffix = stableHash({
1440 schemaVersion: 1,
1441 rootSessionId,
1442 }).slice('sha256:'.length, 'sha256:'.length + 32);
1443 return `agent_graph_${suffix}`;
1444}
1445
1446export function agentGraphIdForRootSessionEpoch(rootSessionId: string, epoch: number): string {
1447 requireRootSessionId(rootSessionId);

Callers 15

constructorMethod · 0.90
resolveCurrentGraphIdMethod · 0.90
withHarnessFunction · 0.90
graphSnapshotFunction · 0.90
prepareFunction · 0.90
childHeaderFunction · 0.90

Calls 2

requireRootSessionIdFunction · 0.85
stableHashFunction · 0.85

Tested by 7

withHarnessFunction · 0.72
graphSnapshotFunction · 0.72
prepareFunction · 0.72
childHeaderFunction · 0.72
seedSourceFunction · 0.72
idsForFunction · 0.72