Skip to content

createChunkId

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/semantic/types.ts

Create a deterministic chunk ID from file path, start line, and content. Returns first 12 hex chars of a SHA-256 hash.

Signature

ts
function createChunkId(file: string, startLine: number, content: string): string

Parameters

NameType
filestring
startLinenumber
contentstring

Returns: string

Was this page helpful?

Download as PDF