MCPcopy
hub / github.com/claude-code-best/claude-code / agentCallKey

Function agentCallKey

packages/workflow-engine/src/engine/journal.ts:17–21  ·  view source on GitHub ↗
(prompt: string, params: AgentRunParams)

Source from the content-addressed store, hash-verified

15
16/** Determinism key for an agent() call (sha256 of prompt + canonical params). */
17export function agentCallKey(prompt: string, params: AgentRunParams): string {
18 return createHash('sha256')
19 .update(prompt + '\n' + canonicalParams(params))
20 .digest('hex')
21}
22
23/** File-based JournalStore (jsonl, one directory per run). Pure fs, no core dependencies. */
24export function createFileJournalStore(runsDir: string): JournalStore {

Callers 4

agentFunction · 0.85
hooks.test.tsFile · 0.85
journal.test.tsFile · 0.85

Calls 1

canonicalParamsFunction · 0.85

Tested by

no test coverage detected