(prompt: string, params: AgentRunParams)
| 15 | |
| 16 | /** Determinism key for an agent() call (sha256 of prompt + canonical params). */ |
| 17 | export 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. */ |
| 24 | export function createFileJournalStore(runsDir: string): JournalStore { |
no test coverage detected