Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / synthesisCandidatesFromJournal

Function: synthesisCandidatesFromJournal()

ts
function synthesisCandidatesFromJournal(entries, priceUsd?): JournaledSynthesisCandidateReport;

Defined in: packages/core/src/stores/synthesis-candidates.ts:280

Fold the finish candidates (RV2902) out of a run's journal: each journaled validation verdict with the window of wall, wires, usage, and priced cost that produced the candidate it judged.

Parameters

ParameterTypeDescription
entriesreadonly JournalEntry[]the journal of one run, in any order
priceUsd?(servedBy, usage) => number | undefinedprices one call's usage at its serving model, the same shape invoiceFromJournal takes; omit to fold without money

Returns

JournaledSynthesisCandidateReport