UNPKG

traceprompt-node

Version:

Client-side encrypted, audit-ready logging for LLM applications

15 lines (12 loc) 364 B
import { QueueItem } from "../types"; import { ConfigManager } from "../config"; import { Transport } from "../network/transport"; export async function flushBatch(batch: QueueItem[]): Promise<void> { const body = { records: batch.map(({ payload, leafHash }) => ({ payload, leafHash, })), }; await Transport.post("/v1/ingest", body); }