MCPcopy Create free account
hub / github.com/InferCore/InferCore / ItemsFromRequestRows

Function ItemsFromRequestRows

internal/eval/ledger_export.go:41–53  ·  view source on GitHub ↗

ItemsFromRequestRows converts ledger rows to eval items, skipping rows that fail conversion.

(rows []requests.RequestRow)

Source from the content-addressed store, hash-verified

39
40// ItemsFromRequestRows converts ledger rows to eval items, skipping rows that fail conversion.
41func ItemsFromRequestRows(rows []requests.RequestRow) ([]Item, []error) {
42 var items []Item
43 var errs []error
44 for _, row := range rows {
45 it, err := ItemFromRequestRow(row)
46 if err != nil {
47 errs = append(errs, err)
48 continue
49 }
50 items = append(items, it)
51 }
52 return items, errs
53}

Callers

nothing calls this directly

Calls 1

ItemFromRequestRowFunction · 0.85

Tested by

no test coverage detected